Xcode 12, building for iOS Simul

2020-10-31  本文已影响0人  Crazy2015
The following build commands failed:
    Ld /Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64

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,添加到已有值的后面。

上一篇 下一篇

猜你喜欢

热点阅读