2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

codemagicのビルドが通らない

Posted at

問題

ERROR! Did not find matching provisioning profiles for code signing!

> xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme Production -archivePath /Users/builder/build.xcarchive -config Release-Production archive COMPILER_INDEX_STORE_ENABLE=NO DEVELOPMENT_TEAM='' CODE_SIGN_IDENTITY='iPhone Developer'

❌  error: No profiles for 'xxxx' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'xxxx'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')

というエラーが出て困った。
これをみて後ろの方の No Profile ~ が問題かと思い調査、全然解決策がわからず幾星霜。

  • ローカルで試す
  • アカウントの設定を見直す
  • codemagic.yamlを見直す
  • sshでコンテナに入って直接実行してみる

...

などなど試したものの、わからず。
他のビルドが通るprojファイルの中を1行ずつ見直した。

解決策

projファイルの中でproduct_bundle_identifierの設定を消す

が正しい、ビルド通る方はprojファイルをGUIじゃなくて直接見たときにproduct_bundle_identifierの文字は含まれない。codemagicのCIはこれを見てしまうっぽいので参照に失敗していた。ムズすぎ

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?