I followed the instructions in the PhoneGap 2.0.0 getting started with iOS guide. It seems not update to date, because some files in the created project have other names than in the guide. Apart from this, a warning and error occures while building.
- Warning: Check dependencies: Missing dependency target "CordovaLib (from CordovaLib.xcodeproj)"
- Error: CpResource /VERSION /<...>/Test.app/VERSION cd /<...>/test-phonegap setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip /VERSION /<...>/Build/Products/Debug-iphonesimulator/Test.app
error: /VERSION: No such file or directory
Do you have any ideas how get it working? Thanks and best regards.
-- Guide: http://docs.phonegap.com/en/2.0.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS
After downloading and decompressing PhoneGap 2.0.0, open "phonegap-phonegap-ff91e6e/lib/ios/Cordova-2.0.0.dmg" and then install the "Cordova-2.0.0.pkg". Close and re-open your project. It should work.
You need to manually set the CORDOVALIB setting:
Open XCode -> Preferences, go to Locations -> Source Trees
If you don't have a CORDOVALIB entry there, create one:
Click "+" at the bottom, enter:
The "Path" should point to the folder created by the Cordova Installer (Cordova-2.0.0.pkg).
found Solution for me : The CordovaLib.xcodeproj is imported in to the workspace of your project. If you've got 2 open PhoneGap projects open at the same time, the CordovaLib will only be available for one of the two... close all phonegap projects and open only one at a time.
I just cleaned the project and it worked: Product -> Clean
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