PhoneGap 2.0 iOS getting started guide buggy?

Bernd picture Bernd · Jul 24, 2012 · Viewed 11.7k times · Source

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.

  1. Warning: Check dependencies: Missing dependency target "CordovaLib (from CordovaLib.xcodeproj)"
  2. 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

Answer

srhom picture srhom · Jul 24, 2012

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.