简体   繁体   English

无法在Xcode 7.2上使用Swift的设备上构建(与Provisioning Profiles不相关)

[英]Can't build on device with Swift on Xcode 7.2 (not related to Provisioning Profiles)

This is not related to provisioning profiles. 这与供应配置文件无关。

I added SnapKit (0.18.0) with Carthage (0.10). 我在Carthage (0.10)中添加了SnapKit (0.18.0)。 Whenever I try to run the app on a device with Xcode 7.2, I get errors like this: 每当我尝试在使用Xcode 7.2的设备上运行该应用程序时,都会出现如下错误:

Undefined symbols for architecture arm64: "protocol witness table for Swift.Double : SnapKit.RelationTarget in SnapKit", referenced from: 架构arm64的未定义符号:“用于Swift.Double的协议见证表:SnapKit中的SnapKit.RelationTarget”,引用自:

If I build for the simulator it works. 如果我为模拟器构建它可以工作。 If I build for the device on AppCode by Jetbrains it works. 如果我通过Jetbrains在AppCode上为该设备构建设备,那么它将起作用。

I have Xcode 7.2 and iOS 9.2. 我有Xcode 7.2和iOS 9.2。 Google and Stackoverflow come up empty for "protocol witness table". Google和Stackoverflow的“协议见证表”为空。

What the heck is going on? 到底他妈发生了什么?

As always, when Xcode goes berserk, there are some great things to try. 与往常一样,当Xcode发疯时,可以尝试一些很棒的事情。

  1. Is is the provisioning profile or cert? 是供应配置文件还是证书? Then you down what to do! 那你下来该怎么办!
  2. If not, delete derived data. 如果不是,请删除派生数据。
  3. If not, clean. 如果没有,请清洁。
  4. If not, reinstall your dependencies ( pod install or update Carthage packages). 如果没有,请重新安装您的依赖项( pod install或更新Carthage软件包)。
  5. If not, delete all the provisioning profiles off the device and start over. 如果不是,请删除设备上的所有配置文件,然后重新开始。
  6. If not, cry really really big puddles of tears ;) 如果没有的话,哭真的真的是大水坑;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM