Hi,
I’m try to switch iOS app’s CI environment from bitrise to CircleCI. But xcode cloud not build my app. Xcode provisioning profile and certificate was installed via fastlane match
, but Xcode cloudn`t find profiles( On the other hands,I cloud build this app on my laptop via fastlane).
Log
[02:40:05]: $ set -o pipefail && xcodebuild -workspace ./XXX.xcworkspace -scheme XXX -configuration Debug -destination 'generic/platform=iOS' -archivePath /Users/distiller/Library/Developer/Xcode/Archives/2019-05-28/XXXX\ 2019-05-28\ 02.40.05.xcarchive OTHER_SWIFT_FLAGS='$(inherited) -D ADHOC -D ENABLE_FIREBASE_DEBUG' GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf archive | tee /Users/distiller/Library/Logs/gym/XXX.log | xcpretty
[02:40:10]: ▸ ❌ error: No profiles for 'XXXapp.debug.ReproNotificationService' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'XXXapp.debug.ReproNotificationService'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'ReproNotificationService')
[02:40:10]: ▸ ❌ error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "123456789" with a private key was found. (in target 'XXXX')
A part of fistfile
lane :beta do |options|
prepare
match(
type: "adhoc",
readonly: true,
app_identifier: %w[
XXXXXXXXXXXXXXX.debug
XXXXXXXXXXXXXXX.debug.ReproNotificationService
],
) # more information: https://codesigning.guide
gym(
scheme: "XXXXXXXXXXXXXXX",
configuration: "Debug",
export_method: "ad-hoc",
xcargs: "OTHER_SWIFT_FLAGS='$(inherited) -D ADHOC -D ENABLE_FIREBASE_DEBUG' GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf",
export_options: {
uploadBitcode: false,
uploadSymbols: false,
compileBitcode: false,
},
include_bitcode: false,
include_symbols: false,
) # Build your app - more options available
crashlytics(
crashlytics_path: "./Carthage/Build/iOS/Crashlytics.framework/",
api_token: CRASHLYTICS_API_TOKEN,
build_secret: CRASHLYTICS_BUILD_SECRET,
groups: TESTER_GROUP,
notes: options[:notes],
)
clean_build_artifacts
end
.circleci/config.yml
version: 2.1
jobs:
build_app:
macos:
xcode: "10.2.0"
environment:
RUBY_VERSION_FORIOS: 2.5.5
shell: /bin/bash --login -eo pipefail #chrubyを使うのに必要
steps:
- checkout
- run:
name: "chrubyでRuby versionを変更"
command: echo $RUBY_VERSION_FORIOS > .ruby-version && chruby $RUBY_VERSION_FORIOS && ruby -v
- run: bundle install
- add_ssh_keys:
fingerprints:
- "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- run:
name: Setup ssh config
command: cat .circleci/sshconfig > ~/.ssh/config
- run:
name: Build APP
command: bundle exec fastlane $FASTLANE_LANE