1.在xcode中找到.app文件
2.xcrun -sdk iphoneos -v PackageApplication ../demo.app -o ~/Desktop/demo.ipa
3. 第二部可能报错xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
(1)把旧版PackageApplication copy 目录下 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
(2)sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
(3)chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
4.
brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller
5.ideviceinstaller -i demo.ipa
参考:
/p/88bb51cba34d
/p/92273e86ab2b
/p/1ec36db7d551