0
1

More than 1 year has passed since last update.

Xcodeビルドエラーの備忘録

Last updated at Posted at 2023-01-26

M1,M2のiOS Simulatorでビルドする際に発生するバグが対象。

could not find module for target 'x86_64-apple-ios-simulator'...

対処法

  1. Finderを開きXcodeのアプリがある場所に移動する。
  2. Xcodeを右クリックして、「情報を見る」を選択する。
  3. Rossetaを使用して開くにチェックを入れる。

image.png

building for iOS Simulator, but linking in object file ... for architecture arm64

対処法

  1. Xcodeでプロジェクトを開き、TARGETSからアプリを選択してBuild Settingのタブを選択する。
  2. Excluded ArchitectureのDebugに「Any iOS Simulator SDK」を選択して「arm64」を追加する。

エラー文では「arm64」と出ているが「x86_64」などの場合のエラーも存在するためエラーに合わせて変更する。
image.png

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