美文网首页iOS程序猿
Xcode12 适配模拟器问题总结

Xcode12 适配模拟器问题总结

作者: freesan44 | 来源:发表于2021-10-20 08:54 被阅读0次

问题

Xcode12运行模拟器会报以下错误:

The linked framework 'Pods_.framework' is missing one or more architectures required by this target: arm64.

或者

unbound variable Command PhaseScriptExecution failed with a nonzero exit code

解决方案

解决方法如下:

  1. 在【Pod的Project】和【项目的Project】下,Project -> Build Settings -> Excluded Architecture
    在【Simulator-iOS SDK】中添加【arm64】


  2. 在【项目的Target】下,Build Settings ->VALID_ARCHS中添加x86_64


  3. 重新运行【pod install】和command+K后,再重新运行项目

相关文章

网友评论

    本文标题:Xcode12 适配模拟器问题总结

    本文链接:https://www.haomeiwen.com/subject/htttaltx.html