Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- workflows:
- react-native-ios:
- name: React Native iOS
- max_build_duration: 120
- instance_type: mac_mini
- environment:
- groups:
- - appstore_credentials
- vars:
- XCODE_WORKSPACE: # <-- <XCODE_WORKSPACE>
- XCODE_SCHEME: # <-- <XCODE_SCHEME>
- BUNDLE_ID: # <-- <BUNDLE_ID>
- APP_STORE_APP_ID: # <-- <APP_STORE_APP_ID>
- node: v16.11.1
- xcode: 13.0
- cocoapods: default
- triggering:
- events:
- - push
- - tag
- - pull_request
- branch_patterns:
- - pattern: master
- include: true
- source: true
- scripts:
- - name: Set up keychain to be used for code signing using Codemagic CLI 'keychain' command
- script: keychain initialize
- - name: Fetch signing files
- script: |
- # You can allow creating resources if existing are not found with `--create` flag
- app-store-connect fetch-signing-files "$BUNDLE_ID" \
- --type IOS_APP_STORE \
- --create
- - name: Set up signing certificate
- script: keychain add-certificates
- - name: Increment build number
- script: |
- #!/bin/sh
- set -e
- set -x
- cd $FCI_BUILD_DIR/ios
- # agvtool new-version -all $(($BUILD_NUMBER + 1))
- agvtool new-version -all 17
- - name: Set up code signing settings on Xcode project
- script: |
- xcode-project use-profiles
- - name: Install npm dependencies
- script: |
- npm install
- - name: Install CocoaPods dependencies
- script: |
- cd ios && pod install
- - name: Build ipa for distribution
- script: |
- xcode-project build-ipa --workspace "$FCI_BUILD_DIR/ios/$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME"
- artifacts:
- - build/ios/ipa/*.ipa
- - /tmp/xcodebuild_logs/*.log
- - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
- publishing:
- # See the following link for details about email publishing - https://docs.codemagic.io/publishing-yaml/distribution/#email
- email:
- recipients:
- notify:
- success: true # To not receive a notification when a build succeeds
- failure: false # To not receive a notification when a build fails
- app_store_connect:
- api_key: $APP_STORE_CONNECT_PRIVATE_KEY # Contents of the API key, can also reference environment variable such as $APP_STORE_CONNECT_PRIVATE_KEY
- key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER # Alphanumeric value that identifies the API key, can also reference environment variable such as $APP_STORE_CONNECT_KEY_IDENTIFIER
- issuer_id: $APP_STORE_CONNECT_ISSUER_ID # Alphanumeric value that identifies who created the API key, can also reference environment variable such as $APP_STORE_CONNECT_ISSUER_ID
- submit_to_testflight: false # Optional boolean, defaults to false. Whether or not to submit the uploaded build to TestFlight beta review. Required for distributing to beta groups. Note: This action is performed during post-processing.
- submit_to_app_store: false
- # beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- # - group name 1
- # - group name 2
Advertisement
Add Comment
Please, Sign In to add comment