[英]Could not find module 'FBSDKCoreKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
I have installed Facebook SDK using Swift Package Manager.我已经使用 Swift Package Manager 安装了 Facebook SDK。 While building the app it shows the following error message:在构建应用程序时,它显示以下错误消息:
Could not find module 'FBSDKCoreKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
While i played with the settings i have found this error is due to the addition of arm64 under Excluded Architecture.当我使用这些设置时,我发现此错误是由于在排除架构下添加了arm64 。 I had added this because I had installed Postman with POD and it was throwing the error message:我添加了这个是因为我已经安装了带有 POD 的 Postman 并且它抛出了错误消息:
No such module 'Tabman'.
To make Tabman work i need to add arm64 under Excluded Architecture and to make Facebook SDK work i need to remove.为了让 Tabman 工作,我需要在 Excluded Architecture 下添加 arm64,为了让 Facebook SDK 工作,我需要删除。 In short i cannot make both work.简而言之,我不能让两者都工作。 Please suggest appropriate solution.请提出适当的解决方案。 Thanks in advance.提前致谢。
Note: I am using M1 Mac Book Pro with Xcode Version 12.4.注意:我使用的是带有 Xcode 12.4 版的 M1 Mac Book Pro。
I did tried to open xcode using Rosetta but it was not working.我确实尝试使用 Rosetta 打开 xcode,但它不起作用。 I tried multiple times and finally worked.我尝试了多次,终于成功了。 Yes right click on xcode and click info and choose Open using Rosetta worked!!!是的,右键单击 xcode 并单击信息并选择使用 Rosetta 打开工作!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.