Failed to set code signing settings #2977
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsiOS build passes locally Actual resultsiOS build fails on Codemagic
The interesting thing is that I have another app on Codemagic with the exact same setup, and it works perfectly! Build id (optional)67ab8e013718d3a520cad957 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Having same issue!! Please advise!! Thank you very much!! |
Beta Was this translation helpful? Give feedback.
-
Hello @Yiddishe-Kop, |
Beta Was this translation helpful? Give feedback.
-
I managed to solve this issue by changing from the UI workflow editor to This is my working workflow file: workflows:
deploy-ios-and-android:
name: Deploy iOS and Android
max_build_duration: 120
triggering:
events:
- pull_request
branch_patterns:
- pattern: "master"
include: true
source: true
cancel_previous_builds: true
integrations:
app_store_connect: "APPSTORE CONNECT API KEY NAME"
environment:
android_signing:
- android_keystore
ios_signing:
distribution_type: app_store
bundle_identifier: com.example.app
groups:
- google_play
vars:
PACKAGE_NAME: "com.example.app"
GOOGLE_PLAY_TRACK: beta
APP_STORE_APPLE_ID: 0123456789
XCODE_WORKSPACE: "ios/Runner.xcworkspace"
XCODE_SCHEME: "Runner"
flutter: v3.22.0
cache:
cache_paths:
- $HOME/.pub-cache
- $HOME/.gradle/caches
- $HOME/Library/Caches/CocoaPods
scripts:
- name: Set up local.properties
script: |
echo "flutter.sdk=$HOME/programs/flutter" > "$CM_BUILD_DIR/android/local.properties"
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles --project ios/Runner.xcodeproj
- name: Get Flutter packages
script: |
flutter pub get
- name: Install pods
script: |
cd ios
pod install
cd ..
- name: Build AAB with Flutter
script: |
BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))
flutter build appbundle --release \
--build-name=0.0.$BUILD_NUMBER \
--build-number=$BUILD_NUMBER
- name: Flutter build ipa
script: |
flutter build ipa --release \
--build-name=0.0.1 \
--build-number=$(($(app-store-connect get-latest-testflight-build-number "$APP_STORE_APPLE_ID") + 1)) \
--export-options-plist=/Users/builder/export_options.plist
artifacts:
- build/**/outputs/**/*.aab
- build/ios/ipa/*.ipa
- build/**/outputs/**/mapping.txt
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
email:
recipients:
- [email protected]
notify:
success: true
failure: false
google_play:
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
track: $GOOGLE_PLAY_TRACK
app_store_connect:
auth: integration
# Configuration related to TestFlight (optional)
# Note: This action is performed during post-processing.
submit_to_testflight: true
beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- External Testers
# Configuration related to App Store (optional)
# Note: This action is performed during post-processing.
submit_to_app_store: false |
Beta Was this translation helpful? Give feedback.
I managed to solve this issue by changing from the UI workflow editor to
codemagic.yaml
.This is my working workflow file: