Mam już zbudowany projekt Xcode bez phoneGap, ale klient chce dodać nową funkcjonalność. Dlatego zdecydowałem się użyć funkcji phoneGap, aby to zrobić, nie wiem jak zaimportować phoneGap do mojego starego projektu Xcode. Jak mogę to zrobić?Jak zainstalować phoneGap w istniejącym projekcie Xcode
Odpowiedz
można osadzić webview Cordova w każdym projekcie ios naśladujących tego etapy: (kroki dla Cordova wersji < 2.3, w 2.3 jest trochę inna, patrz link poniżej)
Dodawanie Cleaver do projektu Xcode (CordovaLib podprojektu)
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
uzyskać więcej informacji
mam ten błąd "[__NSCFDictionary dictionaryWithLowercaseKeys]: nierozpoznany selektor wysyłane do instancji 0xbeb3da0" każdy pomysł na to ???? – Allan
którą wersję phonegap zainstalowałeś? Widziałem ten problem w tym wątku https://groups.google.com/forum/?fromgroups=#!topic/phonegap/z5MrloZGol4 – jcesarmobile
Dzięki za pomoc .. rozwiązam ten problem. – Allan
- 1. Jak zmienić nazwę organizacji w istniejącym projekcie Xcode
- 2. używanie pakietów w istniejącym projekcie internetowym
- 3. Instalowanie programu laravel na istniejącym projekcie
- 4. Jak znaleźć wersję .NET używaną w istniejącym projekcie?
- 5. Jak zintegrować maven 2 w istniejącym projekcie netbeans?
- 6. Jak zainstalować zależność w projekcie Clojure
- 7. Jak zainstalować rozszerzenia Doctrine w projekcie Symfony2?
- 8. Jak zainstalować narzędzia wiersza polecenia xCode? Jak zainstalować Xcode 9 beta wraz z xCode 8?
- 9. Jak wyświetlić wszystkie wtyczki zainstalowane w projekcie Phonegap/Cordova?
- 10. W tym nagłówki w projekcie Xcode 4.2.1
- 11. PhoneGap - Nie można zainstalować przez npm, phonegap nie istnieje
- 12. Xcode litery obok plików w projekcie Navigator
- 13. Xcode - znajdowanie martwych metod w projekcie
- 14. Policz całkowitą liczbę linii w projekcie XCode
- 15. Jak zainstalować XCODE na platformie Windows 7?
- 16. Nie można zainstalować kodu Xcode
- 17. Używanie normalnego JQuery w projekcie Phonegap (z JQuery Mobile)
- 18. Alamofire RED w projekcie Xcode - Brak pliku Alamofire.framework
- 19. Jak automatycznie sortować według nazwy w projekcie Xcode
- 20. Jak programowo ustawić adres URL WebView w projekcie Xcode OSX?
- 21. Jak poprawić brakujące pliki w projekcie xcode iOS
- 22. Phonegap: logi wyjściowe JS do konsoli XCode
- 23. Jak mogę zainstalować kompilację Windows w Xcode z Cocotron?
- 24. Jak zainstalować starsze symulatory iOS w XCode 4.2.1 (SDK5.0)
- 25. Jak zainstalować konkretną wersję SDK symulatora iPhone'a w XCode?
- 26. Jak zainstalować Symulator iOS 4.3 w Xcode 4.5?
- 27. Jak zintegrować Reactatywny z istniejącym projektem iOS?
- 28. Jak znaleźć kod iOS 4 tylko w projekcie iPhone'a
- 29. Dlaczego otrzymuję komunikat o błędzie w pakiecie w istniejącym projekcie korzystającym z Heroku?
- 30. Zmiana makra nazwy produktu w projekcie iOS XCode
@yoda dziękuję – Allan