How can I deploy (create .ipa) iphone app using 'cordova build ios --release'?

前端 未结 5 1321
孤独总比滥情好
孤独总比滥情好 2020-12-12 10:46

I have created a \'helloworld\' iOS app with cordova using there documentation. The app successfully runs when I run cordova emulate ios. What I ca

5条回答
  •  没有蜡笔的小新
    2020-12-12 11:03

    I finally figured out a way to automate this by using xcodeproj, xcode and this ruby script :

    require 'xcodeproj'
    xcproj = Xcodeproj::Project.open("HelloWorld.xcodeproj")
    xcproj.recreate_user_schemes
    xcproj.save
    

    And then in the PROJECT_ROOT/platforms/ios/ directory this command helped me to generate my *.ipa:

    xcodebuild -project HelloWorld.xcodeproj -exportArchive -exportFormat ipa -archivePath $(pwd)/HelloWorld.xcarchive -exportPath $(pwd)/HelloWorld.ipa CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -alltargets -configuration Release
    

    Thought we can sign our .ipa later on :)

提交回复
热议问题