乐趣区

关于ios:Xcode-升级到120模拟器无法启动问题

降级到 Xcode12.1 之后,可能会存在如下问题,有趣味的同学能够尝试一下!

点击查看原文地址

1: objc_msgsend too many arguments to function call expected 0 have 3

解决办法:

  • Project -> Clear Builder Folder
  • 而后 设置 Enable Strict Checking of objc_msgSend CallsNO
  • 敞开 XCode 从新关上

2: missing one or more architectures required by this target: arm64

Xcode12 build error. The linked framework ‘Pods_projectA.framework’is missing one or more architectures required by this target: arm64

解决办法: Project -> Build Settings -> Excluded Architecture -> Debug -> Any iOS Simulator SDK 增加arm64

3:xxx.h 文件 找不到

解决办法: 在Header Search Path -> Debug 中增加对应搜寻目录

4: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64 armv7 armv7s).

解决办法: Project -> Build Settings -> Build Active Architecture Only -> Debug 设置为NO

5: Command PhaseScriptExecution failed with a nonzero exit code

问题起因: 请见这里

解决办法 1: 删除 User-Defined 上面的 VALID_ARCHS设置,设置 Excluded Architecture 下 [Any iOS Simjulator]为 arm64

解决办法 2: 在 User-Defined 上面的 VALID_ARCHS设置,Debug 为 arm64 armv7 armv7s x86_64新增 x86_64机型。

退出移动版