How to create .ipa file for testing using Runner.app?

前端 未结 3 1553
野性不改
野性不改 2020-12-24 00:59

I am android developer learning Flutter, and I really have some trouble trying to create debug .ipa file, for testing purposes.

So, I managed to create Runner.app fi

3条回答
  •  青春惊慌失措
    2020-12-24 01:06

    I use the next bash-script

    flutter build ios --debug
    cd ios
    xcodebuild -workspace Runner.xcworkspace -scheme Runner archive -archivePath Runner.xcarchive
    xcodebuild -exportArchive -archivePath Runner.xcarchive -exportOptionsPlist ../scripts/exportOptions.plist -exportPath ../scripts -allowProvisioningUpdates
    rm -fr Runner.xcarchive
    

    ipa will be created at '../scripts'. You may have own path.

    -allowProvisioningUpdates is using if you want xcodebuild updates certificates automaticaly.

    exportOptions.plist - it's a file with distribution settings. I use next

    
    
    
        compileBitcode
        
        method
        enterprise
        signingStyle
        automatic
        stripSwiftSymbols
        
        teamID
        YOUR TEAM ID
    
    
    

提交回复
热议问题