Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture ...

The following build commands failed:
    Ld /Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64
  • ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios

Basically you have to exclude arm64 for simulator architecture both from your project and the Pod project,

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator
]' => 'arm64' }

user_target_xcconfig 设置不推荐

在 podspec 文件中添加 s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 armv7 arm64' },如果项目已经设置 pod_target_xcconfig,添加到已有值的后面。

你可能感兴趣的:(Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture ...)