I'm working on creating an application that uses both PhoneGap to build the app and CocoaPods to manage external dependencies. Up front, this works fine -- PhoneGap generates the project on the first phonegap install ios
, and CocoaPods correctly takes that generated project and generates an xcworkspace.
Unfortunately, subsequent calls to phonegap build ios
fail because they're trying to build the xcodeproj still, which has dependencies that are only available through the xcworkspace.
To me, it seems like this would be a common problem, as they both seem to be fairly common tools for this iOS development, but I haven't been able to find anyone having similar issues.
It seems, after several years, that the short answer to this question is: the default Cordova CLI tools do not properly handle workspaces. There is an open issue to handle this, but as of April 2016, this is not possible by default.
However, you can work around this by using the Cordova Cocoapod. This does not fix the CLI tools, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With