cordova-plugin-webserver
cordova-plugin-webserver copied to clipboard
'GCDWebServer.h' file not found
#46 caused the following error with ionic environment.
platforms/ios/MyApp/Bridging-Header.h:29:
#import "./Plugins/cordova-plugin-webserver/GCDWebServer-Bridging-Header.h"
^
.../platforms/ios/MyApp/./Plugins/cordova-plugin-webserver/GCDWebServer-Bridging-Header.h:1:9: error: '<GCDWebServer/GCDWebServer.h>' file not found
#import <GCDWebServer/GCDWebServer.h>
^
1 error generated.
<unknown>:0: error: failed to emit precompiled header '...platforms/ios/build/sharedpch/Bridging-Header-swift_1UWTFZ0A2P88V-clang_1UVAGXMHPL745.pch' for bridging header '../platforms/ios/MyApp/Bridging-Header.h'
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
** ARCHIVE FAILED **
I used previous version to void this problem:
ionic cordova plugin add https://github.com/bykof/cordova-plugin-webserver.git#c509f3d87260ae4a91cd1810b7be33442decdc45
Please check if this is a bug or how to fix it.
I would suggest requesting the ownership of cordova-plugin-webserver npm to be official so that users don't have to install it by typing the GitHub address. You can find more help here: https://docs.npmjs.com/transferring-a-package-from-a-user-account-to-another-user-account.
Still the problem. Even c509f3d87260ae4a91cd1810b7be33442decdc45 commit doesn't fix it for me.
Just found out. To fix it: try to open .xcworkspace instead of project file.
Thanks @Ovilia
The commit c509f3d87260ae4a91cd1810b7be33442decdc45
works.
If it don't, try to update cocoapods: sudo gem install cocoapods
Worked for me ^^
This repo doesn't seem to be active anymore... Does anyone know its alternatives?