ios 打包

 /usr/bin/xcodebuild -scheme Moon -sdk iphoneos -workspace Moon.xcworkspace -configuration Release clean build

 

xcrun -sdk iphoneos PackageApplication -v app_path  -o  out_ipa_path

 

codesign -f -s "证书名字" --resource-rules Payload/XXX.app/ResourceRules.plist Payload/XXX.app

 

 -- 用jenkins这个打包工具也可以--

 --plist--内容

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://******.com/oss/mupp/19578/1228511/1228511/d69827dc28b4b2f544d31528bb901a77/***-Release.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.******.******</string>
<key>bundle-version</key>
<string>40003</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>******</string>
</dict>
</dict>
</array>
</dict>
</plist>

你可能感兴趣的:(ios 打包)