問題
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を削除することでビルドができるようになると思う。
