一种方式是先编译成app,然后使用xrun打包成ipa
xcodebuild build -target Unity-iPhone
-scheme Unity-iPhone
-derivedDataPath ~/Desktop/
-configuration Release
xcrun -sdk iphoneos
PackageApplication -v ~/Desktop/Build/Products/throne.app
-o ~/Desktop/throne.ipaxcodebuild build