0
0

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 1 year has passed since last update.

[EAS Build] Error: Starting from Xcode 14, resource bundles are signed by default〜 というエラーでiOSのビルドが失敗する

Posted at

発生した問題

iOSのeas buildをすると以下のエラーが出て失敗する

Error: Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.
To resolve this issue, downgrade to an older Xcode version using the "image" field in eas.json, or turn off signing resource bundles in your Podfile: https://expo.fyi/r/disable-bundle-resource-signing

環境

  • expo: 46.0.16
  • eas-cli: 2.7.0

経緯

  • きっかけは特になし。突然iOSだけエラーで落ちるようになる

解決策

エラー文に表示されているリンク先の指示に従ってPodfilepost_install do |installer|の中に以下のコードを追加

# This is necessary for Xcode 14, because it signs resource bundles by default
# when building for devices.
installer.target_installation_results.pod_target_installation_results
  .each do |pod_name, target_installation_result|
  target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
    resource_bundle_target.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end

これで問題が解決したことを確認。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?