ios 脚本替换资源
1.
#! /bin/sh SRC_ICON_HOME=./icon/ IOS_ICON_HOME=/Users/temp/Desktop/WorkingCopybak/talk1.3.0/talk/Images.xcassets/AppIcon.appiconset/ cp -f "$SRC_ICON_HOME"Iphone/80.png "$IOS_ICON_HOME"Icon-80.png cp -f "$SRC_ICON_HOME"Iphone/120.png "$IOS_ICON_HOME"Icon-120.png cp -f "$SRC_ICON_HOME"Iphone/180.png "$IOS_ICON_HOME"Icon-180.png cp -f "$SRC_ICON_HOME"Iphone/120.png "$IOS_ICON_HOME"Icon-120-1.png SRC_SPLASH_HOME=./splash/ IOS_SPLASH_HOME=/Users/temp/Desktop/WorkingCopybak/talk1.3.0/talk/Images.xcassets/LaunchImage.launchimage/ cp -f "$SRC_SPLASH_HOME"Iphone/Default@2x.png "$IOS_SPLASH_HOME"Default@2x.png cp -f "$SRC_SPLASH_HOME"Iphone/Default-568h@2x.png "$IOS_SPLASH_HOME"Default-568h@2x.png cp -f "$SRC_SPLASH_HOME"Iphone/Default-667h@2x.png "$IOS_SPLASH_HOME"Default-667h@2x.png cp -f "$SRC_SPLASH_HOME"Iphone/Default-736h@3x.png "$IOS_SPLASH_HOME"Default-736h@3x.png
project_path=$(pwd) setting_out=./build_setting.txt xcodebuild -showBuildSettings > "${setting_out}" codeSign=$(grep "CODE_SIGN_IDENTITY" "${setting_out}" | cut -d "=" -f 2 | grep -o "[^ ]\+\( \+[^ ]\+\)*") echo "$codeSign ✓" provisionProfile=$(grep "PROVISIONING_PROFILE[^_]" "${setting_out}" | cut -d "=" -f 2 | grep -o "[^ ]\+\( \+[^ ]\+\)*") echo ${provisionProfile} project_infoplist_path=${project_path}/talk/talk-Info.plist
bundleIdentifier=$(/usr/libexec/PlistBuddy -c "print CFBundleIdentifier" "$project_infoplist_path") echo "$bundleIdentifier ✓"
xcodebuild -scheme MLPlayer -project iphone/MLPlayer.xcodeproj clean archive -archivePath build/MLPlayer xcodebuild -exportArchive -exportFormat ipa -archivePath "MlPlayer.xcarchive" -exportPath "build/MLPlayer.ipa"
xcodebuild -scheme CrowdFound -workspace Crowdfound.xcworkspace clean archive -archivePath build/CrowdFound xcodebuild -exportArchive -exportFormat ipa -archivePath "build/CrowdFound.xcarchive" -exportPath "build/CrowdFoundv2.ipa" -exportProvisioningProfile "Delta"
https://blog.reohou.com/how-to-export-ipa-from-archive-using-xcodebuild/
https://github.com/NUDelta/CrowdFound/blob/6960ec2c4de86e86f541029347c9146ffce72b95/Ipa_export.sh
https://github.com/heyuan110/BashShell/blob/master/build_install.sh
https://github.com/caijiang/tzshh/blob/5bdc3d289c2a2d7d6821a08220b789ac50ba1c97/src/sencha/tools/cptoios
https://github.com/tlanks/RetroArch/blob/c9df1518748b09fc3f5abeaf5256cc672aea1171/pkg/apple/iOS/package.sh
https://github.com/Urinx/Device-9/blob/0dafc39cfa8dcbf58462ddee0f001f92c093b109/Device%209/ipa-build.sh
https://github.com/zhuayi/ZCamera/blob/2b307254f1ca19a25bc00c8b7c6dc07b4058342a/.build.sh
https://github.com/mgfjxxiexiaolong/AutomaticCode-Python/blob/2e789c9101e7981b3683624a58f478fb3e6e6bb8/buildSettingInfo.py
2.
xcodebuild -exportArchive
https://github.com/search?utf8=%E2%9C%93&q=xcodebuild+-exportArchive&type=Code&ref=searchresults