PhoneGap 2.0 iOS error: / VERSION: No such file or directory

when installing a new phone call, i.e. phonegap 2.0 I got this error, please help me resolve this iam error using xcode 4.3.2 ios 5.1:

Missing dependency target "CordovaLib (on CordovaLib.xcodeproj)"

CpResource / VERSION / Users / arjun / Library / Developer / Xcode / DerivedData / MenuApp-emlsuylgddtbitggsiybbtqsxxmb / Build / Products / Debug-iphonesimulator / MenuApp.app / VERSION

cd /Users/arjun/Desktop/MenuApp 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 /Users/arjun/Library/Developer/Xcode/DerivedData/MenuApp-emlsuylgddtbitggsiybbtqsxxmb/Build/Products/Debug-iphonesimulator/MenuApp.app 

error: / VERSION: No such file or directory

+6
source share
5 answers

I am also a completely new PhoneGap in this world, and I had the same issue with the iOS version.

Make sure you are using version 2.0.0, as version 2.0.1 is currently missing a .pkg file. Follow the instructions at Phonegap.com.

When you run ./create /user/myhome/documents/HelloWorld com.mydomain.HelloWorld HelloWorld and open HelloWorld.xcodeproj , select the HelloWorld project, then go to Targets , click on HelloWorld , then go to the Build Phases tab. Expand the Target Dependencies parameter. There must be a CordobaLib item listed, and if there is one, delete it and add it again.

It took me a few hours to find out, hope this saves others time!

+4
source

Edit your_project_folder/www/config.xml

and change

 preference name="phonegap-version" value="1.9.0" 

to

 preference name="phonegap-version" value="2.0.0" 
+1
source

If you installed the Cordova-2.0.0 development kit, it is caused by the incorrect loading of the Phonegap JavaScript file in the index.html file. Make sure the following instruction

 <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script> 

downloads the jg phonegap file corresponding to the SDK used.

+1
source

Try moving the “Your project” root folder to the same “CordovaLib” root folder.

0
source

Source: https://habr.com/ru/post/921264/


All Articles