Situation
使用Xcode 13建置ReactNative專案的iOS目錄(執行Xcode的Build)後且在建置過程出現以下錯誤訊息
ld: in /ReactNativeProject/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter(MSChannelUnitConfiguration.o), building for iOS Simulator, but linking in object file built for iOS, file '/ReactNativeProject/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter' for architecture arm64
Action
簡單的說就是到Xcode的Build Settings -> Excluded Architectures -> 加入Debug 和 Release 為 Any iOS Simulator SDK 等於 arm64 的設定,如下
Result
錯誤訊息不再出現