-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
iOS builds fail if first build is from CLI #22
Comments
Some extra info: When running
I believe that's coming from the build.json config, documented here. |
Same here |
As documented this fork of This requires you to have Cocoapods installed and updated as instructed.
Clone and build the test project to validate your build environment. |
@dpa99c all good. Didn't have to do anything. Just ran these:
|
If the test project is building & running OK, then you're build env is fine so there must be something in your other project which is causing the problem.
|
Yeah.. I've done that dozen times.. still got the same behavior. There has to be a plugin conflict. Do you have a magic technique to identify those? |
The error you posted in Xcode indicates So I would check the console output for any errors after running Also check if any of your included plugins themselves use Cocoapods to satisfy library dependencies and if so check that the libraries and versions don't conflict with this plugin. |
What solved the issue for me was adding the $(inherited) to Library Search Path as mentioned over here: |
@yosikal are you referring to this answer? How does that translate in cordova setup? I don't wanna be modifying uncommitable sources. |
@dpa99c awesomeness. |
Just published |
Since the test project works fine in your build environment, I would guess another plugin in your project is conflicting with this one.
|
I have same problem (3.0.7)
|
@AMerkuri I recommend cloning and building the test project then adding each of the plugins above one-at-a-time, building & running after each, to identify which plugin(s) cause the conflict. |
I guess I'll need to do that some day. As a temporary workaround I have downgraded cordova-ios to 5.0.0. |
I finally managed to localize the problem. In the test project, change the
Phew. Does it look fixable? I see that some sort of namespace is created based on the app name, but somewhere along the way, the encoding does not translate properly. @AMerkuri does your app have a non-latin name? |
I'm referring to the accepted answer. I added $(inherited) to Library Search Path. |
@Birowsky |
Aight Dave, I'm done with the renaming, no problem there. However I'm hitting the next wall. And I have a minimal reproducible config for ya:
Makes me wonder, why did you not notice this? Do you not use the |
Normally I build via Xcode so I can upload direct to App Store (Archive > Upload) or test on devices/simulators so I hadn't noticed this issue. However I followed your steps above and I can reproduce the issue. Interestingly if I re-add the iOS platform ( I believe that the Xcode project is somehow being misconfigured by Cordova on the initial CLI build because if the initial build is done via Xcode, the first build (and subsequent builds) then succeed. It may be related to this issue: blakgeek/cordova-plugin-cocoapods-support#9 Further evidence that the Cordova build is the cause in this comment which indicates building the workspace with So I don't think this issue is caused directly by this plugin ( The question is whether I can do anything to resolve the issue in When I can make some time, I'll try to create an isolated test case using |
Sorry, I wish I could help with any of this, but I only have shallow knowledge of the platform-specific intricacies. I'm hoping that Cordova can keep it that way for the forceable future :} The reason I'm not at liberty to switch to xCode for deploys, but rely on Thank you for your dedication! Does this look like a different issue to you? Do you want me to open one? |
If it helps in any way, I tried the test project with this version of the firebase plugin. Build went fine. Have yet to start testing the app. |
That version doesn't use I may be able to modify |
@dpa99c |
Reopening this as there's an underlying issue that needs fixing |
I've published the fix to this as |
Oh boy oh boy, a successful build! Next wall, cordova-plugin-googleplus. Great. So, um.. when do you plan to fork it? Or do you handle google auth differently in your apps? |
I had an out of date cordova plugin, |
…ies. Instead set min supported versions to cordova@9 and cordova-ios@5 and update plugin.xml to use podspec formatting as required by cordova-ios@5. Remove iOS plugin variables as these are not (currently) supported by cordova-ios@5 Resolves dpa99c#22.
Thanx a ton for reviving this plugin!
I managed to make it work for android, as described here.
However, I fail to do so for ios.
When I run
cordova run ios
, the app starts and immediately crashes.When I try to run it from xCode, this is what I get:
The text was updated successfully, but these errors were encountered: