Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Jenkins Build section:
- . ~/.profile
- xcode9
- export LC_ALL="en_US.UTF-8"
- #/usr/local/bin/pod install
- cd MyApp
- pod update
- security default-keychain -d user -s "${HOME}/Library/Keychains/login.keychain"
- security unlock-keychain -p $keychain "${HOME}/Library/Keychains/login.keychain"
- xcodebuild -scheme "MyApp" -workspace "${WORKSPACE}/MyApp/MyApp.xcworkspace" \
- -configuration Release archive \
- -archivePath "${WORKSPACE}/MyApp/Build/MyApp.xcarchive" \
- CONFIGURATION_BUILD_DIR="${WORKSPACE}/MyApp/Build" \
- CODE_SIGN_IDENTITY="iPhone Distribution" \
- DEVELOPMENT_TEAM=XXXXXXXXXX
- xcodebuild \
- -exportArchive \
- -archivePath "${WORKSPACE}/MyApp/Build/MyApp.xcarchive" \
- -exportOptionsPlist "${WORKSPACE}/MyApp/MyApp/ConfigurationFile/archive_property.plist" \
- -exportPath "${WORKSPACE}/MyApp/Build/ipa"
- CODE_SIGN_IDENTITY="iPhone Distribution" \
- DEVELOPMENT_TEAM= XXXXXXXXXX
- Archive the artifacts secion:
- **/*.ipa
- archive_property.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>compileBitcode</key>
- <true/>
- <key>method</key>
- <string>enterprise</string>
- <key>signingCertificate</key>
- <string>iPhone Distribution</string>
- <key>teamID</key>
- <string> XXXXXXXXXX </string>
- <key>stripSwiftSymbols</key>
- <true/>
- <key>signingStyle</key>
- <string>manual</string>
- <key>thinning</key>
- <string><none></string>
- <key>provisioningProfiles</key>
- <dict>
- <key>com.myorganization.MyApp</key>
- <string>MyApp Distribution</string>
- </dict>
- </dict>
- </plist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement