Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap 2.0 iOS getting started guide buggy?

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

like image 666
Bernd Avatar asked Jul 24 '12 07:07

Bernd


4 Answers

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.

like image 97
srhom Avatar answered Nov 20 '22 19:11

srhom


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:

  • Setting Name: CORDOVALIB
  • Display Name: CORDOVALIB
  • Path: /Users/[your_user_name]/Documents/CordovaLib

The "Path" should point to the folder created by the Cordova Installer (Cordova-2.0.0.pkg).

like image 40
hegemon Avatar answered Nov 20 '22 19:11

hegemon


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.

like image 31
Tibi Avatar answered Nov 20 '22 19:11

Tibi


I just cleaned the project and it worked: Product -> Clean

like image 2
borisdiakur Avatar answered Nov 20 '22 17:11

borisdiakur