Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap build iOS xcworkspace instead of xcodeproj

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.

like image 290
shortstuffsushi Avatar asked Jan 28 '14 16:01

shortstuffsushi


1 Answers

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.

like image 92
shortstuffsushi Avatar answered Oct 28 '22 06:10

shortstuffsushi