Ya he creado un proyecto de Xcode sin phoneGap, pero el cliente desea agregar alguna funcionalidad nueva. Así que decidí usar phoneGap para hacerlo, no sé cómo importar phoneGap a mi antiguo proyecto de Xcode. ¿Cómo puedo hacer esto?Cómo instalar phoneGap en un proyecto de Xcode existente
Respuesta
Puede incrustar una vista web Cordova en cualquier proyecto de ios siguientes siguientes pasos: (Pasos para la versión Cordova < 2.3, en el punto 2.3, es un poco diferente, ver el siguiente enlace)
Adición de la cuchilla a su proyecto Xcode (sub-proyecto 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
para obtener más información
tengo este error "[__NSCFDictionary dictionaryWithLowercaseKeys]: Selector no reconocido enviado a la instancia 0xbeb3da0" cualquier idea de este ???? – Allan
¿qué versión de teléfono instaló? He visto ese problema en este hilo https://groups.google.com/forum/?fromgroups=#!topic/phonegap/z5MrloZGol4 – jcesarmobile
Gracias por su ayuda ... soluciono ese problema. – Allan
- 1. Uso de Git con un proyecto XCode existente
- 2. Importar un proyecto de python existente a XCode
- 3. ¿Cómo instalar las plantillas de PROYECTO Cocos2d en Xcode 4?
- 4. Importar proyecto existente de C++ a Xcode IDE
- 5. ¿Cómo crear un nuevo proyecto XCode de un/C++ c espacio de código existente
- 6. ¿Cómo puedo agregar un proyecto existente como una copia de trabajo en XCode 4?
- 7. Phonegap - depuración de Javascript en Xcode
- 8. Cómo hacer un directorio existente en un proyecto de eclipse
- 9. Cómo agregar un proyecto existente a Geany
- 10. Eclipse + Convertir un proyecto existente en un proyecto JPA
- 11. Convertir proyecto existente en un proyecto de maven
- 12. Cómo desinstalar PhoneGap de mi proyecto y máquina
- 13. ¿Cómo agregar un proyecto a un EAR existente en eclipse?
- 14. ¿Cómo integrar maven 2 en un proyecto de netbeans existente?
- 15. Xcode cómo agregar un proyecto externo
- 16. Cómo integrar Linphone en un proyecto existente (SIP en IOS)
- 17. ¿Cómo puedo instalar temas en XCode 4.3.2?
- 18. Duplicar un proyecto XCode 4
- 19. ¿Cómo crear una biblioteca estática de un proyecto de Xcode?
- 20. ¿Convertir proyecto existente en proyecto de Android en Eclipse?
- 21. ¿Cómo implementar la traducción en un proyecto web existente?
- 22. Cómo aplicar principios sólidos en un proyecto existente
- 23. Cómo abrir un proyecto SVN existente en Eclipse
- 24. Cómo implementar un proyecto wordpress existente en Windows Azure
- 25. ¿Cómo integrar Clojure en un proyecto Java existente?
- 26. Phonegap, Cordova, xCode 4.4 y Mountain Lion
- 27. Agregar un destino a un proyecto de Xcode
- 28. ¿Cómo iniciar un proyecto de Java en Xcode?
- 29. ¿Cómo configuro un proyecto de C++ en Xcode 4?
- 30. ¿Cómo activar/desactivar ARC en un proyecto de xcode?
@yoda Muchas gracias – Allan