chengfengjie / chengfengjie.github.io

我叫MT
1 stars 0 forks source link

Xcode 简单的打包shell脚本 #5

Open chengfengjie opened 6 years ago

chengfengjie commented 6 years ago
app_infoplist_path=../th-ios/th-ios-adHoc.plist;
bundleShortVersion=$(/usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" ${app_infoplist_path});
filename=th_ios_beta_v${bundleShortVersion};
xcodebuild -workspace ../th-ios.xcworkspace -scheme th-ios-pro -configuration Release -archivePath ./build/${filename}.xcarchive archive;
xcodebuild -exportArchive -exportOptionsPlist ./ExportOptions.plist -archivePath ./build/${filename}.xcarchive -exportPath ./build/${filename}.ipa PROVISIONING_PROFILE_SPECIFIER "th_AdHoc";
fir publish ./build/${filename}/th-ios-pro.ipa -T fir的token;

此脚本将配置好的iOS工程打包成ipa包并且自动发布到到fir.im