Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'GCDWebServer.h' file not found #49

Open
Ovilia opened this issue Nov 1, 2019 · 4 comments
Open

'GCDWebServer.h' file not found #49

Ovilia opened this issue Nov 1, 2019 · 4 comments

Comments

@Ovilia
Copy link

Ovilia commented Nov 1, 2019

#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.

@Neschastje
Copy link

Still the problem. Even c509f3d commit doesn't fix it for me.

@Neschastje
Copy link

Just found out. To fix it: try to open .xcworkspace instead of project file.

@Speuta
Copy link

Speuta commented Jun 12, 2020

Thanks @Ovilia
The commit c509f3d87260ae4a91cd1810b7be33442decdc45 works.
If it don't, try to update cocoapods: sudo gem install cocoapods
Worked for me ^^

@Ovilia
Copy link
Author

Ovilia commented Apr 25, 2021

This repo doesn't seem to be active anymore... Does anyone know its alternatives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants