Ich habe bereits ein Xcode-Projekt ohne phoneGap erstellt, aber der Client möchte einige neue Funktionen hinzufügen. Also habe ich mich dazu entschieden, phoneGap zu verwenden, ich weiß nicht, wie ich phoneGap in mein altes Xcode-Projekt importiere. Wie kann ich das machen?Wie man phoneGap in einem vorhandenen Xcode-Projekt installiert
Antwort
Sie können eine cordova webview in jedem ios Projekt im Anschluss an diese Schritte einbetten: (Schritte für cordova Version < 2.3, 2.3 es ist ein bisschen anders, siehe Link unten)
Cleaver Projekt zu Ihrem Xcode hinzufügen (CordovaLib Teilprojekt)
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
für weitere Informationen
ich habe diesen Fehler "[__NSCFDictionary dictionaryWithLowercaseKeys]: Unbekannter Selektor zum Beispiel 0xbeb3da0 gesendet" jede Idee dazu ???? – Allan
welche phonegap Version hast du installiert? Ich habe dieses Problem in diesem Thread https://groups.google.com/forum/?fromgroups=#!topic/phonegap/z5MrloZGol4 – jcesarmobile
Vielen Dank für Ihre Hilfe gesehen .. Ich behebe dieses Problem. – Allan
- 1. Wie installiert man GExiv2 auf einem virtualenv?
- 2. PhoneGap - Kann über npm nicht installiert werden, phonegap existiert nicht
- 3. Wie installiert man phpseclib?
- 4. Wie man Doctrine Extensions in einem Symfony2 Projekt installiert
- 5. WPF: Wie installiert man das Daumenverhalten in einem Canvas?
- 6. Wie installiert man Python3 mit Chocolatey in einem eigenen Pfad?
- 7. Wie installiert man ADOCE in einem Jornada 720 (HPC 2000)
- 8. Wie installiert man eine Abhängigkeit von einem Submodul in Python?
- 9. Wie installiert man Yeoman?
- 10. Wie man Lied in Android spielt - phonegap
- 11. Wie man ein benutzerdefiniertes privates Plugin in Phonegap erstellt
- 12. Wie erstellt man TreeSet mit einem vorhandenen HashSet mit Daten?
- 13. Boost: Wie erhält man einen Teilbaum aus einem vorhandenen Eigenschaftsbaum?
- 14. Wie installiert man Kubernetes von Release-Binär
- 15. Wie installiert man .NET 4.5?
- 16. Wie man Joomla richtig installiert
- 17. Wie installiert man Apache Ant?
- 18. ReactJS in einem vorhandenen HTML
- 19. UIImagePickerController in einem vorhandenen UIPopoverController
- 20. Wie installiert man installierte Apps in Django?
- 21. Wie installiert man ODP.net in VS 2010?
- 22. Wie installiert man GTK in Python2.7?
- 23. Wie installiert man PyQt4 in Anakonda?
- 24. Wie installiert man Openface in Windows Python
- 25. Wie installiert man OpenCV in ubuntu 12.04
- 26. Wie installiert man CLISP in Redhat Linux
- 27. Wie installiert man PyPy in Anaconda
- 28. Wie installiert man Freedds in Linux?
- 29. Wie installiert man Kalebasse in Windows?
- 30. Wie installiert man Rundeck in Ubuntu
@yoda Vielen Dank – Allan