Ho già creato un progetto Xcode senza phoneGap, ma il client vuole aggiungere alcune nuove funzionalità. Così ho deciso di usare phoneGap per farlo, non so come importare PhoneGap sul mio vecchio progetto Xcode. Come posso fare questo?Come installare phoneGap in un progetto Xcode esistente
risposta
È possibile incorporare una WebView Cordova in qualsiasi progetto ios seguente questa procedura: (Passi per Cordova versione < 2.3, 2.3 la sua un po 'diverso, si veda il link qui sotto)
Aggiunta Cleaver al progetto Xcode (sotto-progetto CordovaLib)
Install Cordova
Copy the Cordova.plist file into your project folder on disk
Drag and drop the Cordova.plist file into the Project Navigator of Xcode
Choose the radio-button "Create groups for any added folders"
Press the key combination Option-Command-A, which should drop down a sheet to add files to your project (the "Add Files..." sheet). Make sure the "Created groups for any added folders" radio-button is selected
Press the key combination Shift-Command-G, which should drop down another sheet for you to go to a folder (the "Go to the folder:" sheet)
Enter ~/Documents/CordovaLib/ in the "Go to the folder:" sheet and then press the "Go" button
Select the VERSION file in the the "Add Files..." sheet
Press the "Add" button in the "Add Files..." sheet
Press the key combination Option-Command-A, which should drop down a sheet to add files to your project (the "Add Files..." sheet). Make sure the "Created groups for any added folders" radio-button is selected
Press the key combination Shift-Command-G, which should drop down another sheet for you to go to a folder (the "Go to the folder:" sheet)
Enter ~/Documents/CordovaLib/CordovaLib.xcodeproj in the "Go to the folder:" sheet and then press the "Go" button
Press the "Add" button in the "Add Files..." sheet
Select CordovaLib.xcodeproj in the Project Navigator
Press the key combination Option-Command-1 to show the File Inspector
Choose "Relative to CORDOVALIB" in the File Inspector for the drop-down menu for Location
Click on the project icon in the Project Navigator, select your Project, then select the "Build Settings" tab
Add -all_load and -Obj-C - for the "Other Linker Flags" value
Click on the project icon in the Project Navigator, select your Target, then select the "Build Phases" tab
Expand "Link Binaries with Libraries"
Click on the "+" button, and add these frameworks (and optionally in the Project Navigator, move them under the Frameworks group):
AddressBook.framework
AddressBookUI.framework
AudioToolbox.framework
AVFoundation.framework
CoreLocation.framework
MediaPlayer.framework
QuartzCore.framework
SystemConfiguration.framework
MobileCoreServices.framework
CoreMedia.framework
Expand "Target Dependencies" - the top box labeled like this if you have multiple boxes!
Click on the "+" button, and add the CordovaLib build product
Expand "Link Binaries with Libraries" - the top box labeled like this if you have multiple boxes!
Click on the "+" button, and add libCordova.a
per ulteriori informazioni
ho ottenuto questo errore "[__NSCFDictionary dictionaryWithLowercaseKeys]: selettore non riconosciuto inviato ad esempio 0xbeb3da0" qualsiasi idea di questo ???? – Allan
quale versione di PhoneGap è stata installata? Ho visto questo problema in questa discussione https://groups.google.com/forum/?fromgroups=#!topic/phonegap/z5MrloZGol4 – jcesarmobile
Grazie per l'aiuto .. ho risolto il problema. – Allan
- 1. Come aggiungere Box2d a un progetto Xcode/Cocos2d esistente
- 2. Come modificare il nome dell'organizzazione su un progetto Xcode esistente
- 3. Creazione di un CocoaPod da un progetto Xcode esistente
- 4. Aggiunta di classi di dimensioni a un progetto Xcode esistente
- 5. Aggiungere un progetto esistente a BitBucket usando Xcode
- 6. PhoneGap - Javascript debugging in Xcode
- 7. Come aggiungere CoreData.framework al progetto xcode esistente 4.6.2
- 8. Come rimuovere le localizzazioni predefinite da un progetto Phonegap/Cordova?
- 9. Importa il progetto PhoneGap in eclissi
- 10. Importare un progetto JavaScript esistente in un progetto Grunt/Brunch
- 11. Convertire un progetto esistente in un progetto Maven
- 12. Eclipse + Trasformare un progetto esistente in un progetto JPA
- 13. Importare un progetto SVN esistente in Eclipse
- 14. Importa XCTest in un progetto già esistente
- 15. Eclipse - Importa un progetto esistente?
- 16. Importare un progetto git esistente in GitLab?
- 17. Come installare questo script in PhoneGap per iOS
- 18. Come aggiungere un progetto esistente a Geany
- 19. Converti progetto Eclipse esistente in progetto Maven
- 20. Importare il progetto XCode all'interno di un altro progetto XCode
- 21. come aggiungere un framework esistente in Xcode 5
- 22. Aggiornamento progetto PhoneGap da 3.0 a 3.1
- 23. Come creare un nuovo progetto XCode da uno spazio di codice c/C++ esistente
- 24. Come integrare Linphone in un progetto Android esistente
- 25. Come creare una directory esistente in un progetto eclissi
- 26. Come integrare Maven 2 in un progetto NetBeans esistente?
- 27. Come creare un nuovo progetto Meteor in una directory esistente?
- 28. Xcode come aggiungere un progetto esterno
- 29. Aggiunta di test di unità e UI a un progetto esistente in Xcode 7
- 30. Come si struttura un progetto iPhone XCode?
@yoda Grazie mille – Allan