1. xcodebuild clean 2. xcodebuild -configuration Debug 3. xcrun -sdk iphoneos PackageApplication -v /xxxxxxx/build/Debug-iphoneos/xxx.app -o /xxxxx/xxxx.ipa --embed /xxx/xxxxxxInHouse.mobileprovision(inHouse证书)