zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Xcode12 适配模拟器问题总结

2023-04-18 12:50:20 时间

问题

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】
  1. 在【项目的Target】下,Build Settings ->VALID_ARCHS中添加x86_64
  1. 重新运行【pod install】和command+K后,再重新运行项目