How to get .ipa file from PhoneGap for iOS?

I developed the PhoneGap app using Sencha Touch 2 on Android. Now I want to develop the same thing in iOS without changing the code. I tried using PhoneGap Build, but it asked me to register an Apple developer or develop Xcode using a MacBook. Is there any other way to create a .ipa file using Windows XP, PhoneGap?

+6
source share
2 answers

If your application is really just a direct PhoneGap application - all HTML, JavaScript, etc., and not custom Objective-C material, phonegap.com suggests creating a service that will create your application for all platforms supported by them. You still have to register as an iOS developer and pay you $ 99 to get a distribution certificate. According to the instructions of iOS Build, you will need a Mac to configure your certificate, etc. So realistic that you need to get access to the Mac at least from time to time, but as soon as you set everything up, you can use this service to make your builds.

+3
source

SenchaTouch 2 includes the direct creation of native Android and iPhone applications using (still in beta) SenchaTouch SDK Tools using a PC with Windows, Mac or Linux, I do this in Windows XP and 7.

After setting up your (paid) developer account with Apple, creating a developer certificate, and setting up PKCS # 12 key storage (*) on your computer, you will configure the packager.json file to target iOS and use:

> sencha app build native [INFO] Deploying your application to <your-app-path-here>\build\package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/startup [INFO] Resolving your application dependencies (file:///<your-app-path-here>/index.html) [INFO] Found 236 dependencies. Concatenating all into '<your-app-path-here>\build\package\app.js' [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processed app.js [INFO] Minifying app.js [INFO] Minifying resources/css/app.css [INFO] Minified sdk/sencha-touch.js [INFO] Minified app.js [INFO] Minified resources/css/app.css [INFO] Generated app.json [INFO] Embedded microloader into index.html [INFO] Packaging your application as a native app... [INFO] The application was successfully packaged The application was successfully signed To run iOS simulator you need to use Mac OS X 

to make an iOS application (which will be displayed as a folder named build\MyApp.app ).

(*) Use Portecle to save the keystore.

0
source

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


All Articles