17
17

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.

xcode12でsimulatorにビルドする時失敗する問題

Posted at

問題

xcode12でsimulatorにビルドする時
building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
のようなエラーが出てきます。

原因

The Build Settings editor no longer includes the Valid Architectures build setting (VALID_ARCHS), and its use is discouraged. Instead, there is a new Excluded Architectures build setting (EXCLUDED_ARCHS). If a project includes VALID_ARCHS, the setting is displayed in the User-Defined section of the Build Settings editor. (15145028)

Valid Architecturesはxcode12から削除されたのでエラーの原因になっていると思われる。

解決案

project.pbxproj内のVALID_ARCHSを削除することでビルドができるようになると思う。

image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?