1.無cocopod的工程,產生IPA檔案
-----------無cocopod的工程,產生IPA檔案-----------------
echo "================= Xcode Clean ================="xcodebuild -target "${APP_NAME}.xcodeproj" -scheme "demo" -configuration 'Release' cleanecho "================= Xcode Archive 開始================="xcodebuild archive -target "${APP_NAME}.xcodeproj" -scheme "demo" -archivePath "${LOCAL_ARCH_PATH}" -configuration 'Release'echo "================= Xcode Archive success ================="xcodebuild -exportArchive -exportFormat IPA -archivePath "${LOCAL_ARCH_PATH}" -exportPath "${LOCAL_IPA_PATH}" -exportProvisioningProfile "${PROVISIONING_PROFILE}"zip -r ${LOCAL_ZIP_PATH} ${LOCAL_ARCH_PATH}
2. 有 cocopods無cocopod的工程,產生IPA檔案
—————————有cocopods無cocopod的工程,產生IPA檔案---------------------
echo "================= Xcode Clean ================="xcodebuild -workspace "${APP_NAME}.xcworkspace" -scheme "demo" -configuration 'Release' cleanecho "================= Xcode Archive 開始================="xcodebuild archive -workspace "${APP_NAME}.xcworkspace" -scheme "demo" -archivePath "${LOCAL_ARCH_PATH}" -configuration 'Release'echo "================= Xcode Archive success ================="xcodebuild -exportArchive -exportFormat IPA -archivePath "${LOCAL_ARCH_PATH}" -exportPath "${LOCAL_IPA_PATH}" -exportProvisioningProfile "${PROVISIONING_PROFILE}"zip -r ${LOCAL_ZIP_PATH} ${LOCAL_ARCH_PATH}
//—————————————————ipa 成功了------------------/