2017-04-18 70 views
1

刚刚更新到8.3.1的Xcode和建立我的项目得到了这样的错误:更新到8.3.1的XCode苹果Mach-O的连接错误集团Snapkit错误

"__TFE7SnapKitPS_23ConstraintAttributesDSLg6heightCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg5widthCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg6centerCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg7centerXCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg6bottomCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg7leadingCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg7centerYCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg8trailingCS_14ConstraintItem", referenced from: 

    "__TFE7SnapKitPS_23ConstraintAttributesDSLg3topCS_14ConstraintItem", referenced from: 

clang: error: linker command failed with exit code 1 (use -v to see invocation) 

似乎是SnapKit问题。

  • 试图cmd + shift + k
  • 删除pod 'SnapKit'pod install并补充回来还是不行。

如果它不是版本问题。如何调试/解决这类错误。谢谢。

编辑 右键单击错误在项目导航器,然后选择显示在登录显示更多的错误信息:

Undefined symbols for architecture x86_64: 
    "__TFE7SnapKitPS_23ConstraintAttributesDSLg6heightCS_14ConstraintItem", referenced from: 
     __TFFC6Auroma22AURAlarmViewController19configureBottomViewFCSo6UIViewT_U2_FC7SnapKit15ConstraintMakerT_ in AlarmViewController.o 

我可以看到AlarmViewController称为SnapKit布局方法。但仍然不清楚为什么错误在那里。

编辑 我以前的Xcode应该是8.3。

+0

您还没有更新Xcode。你已经更新了Swift。这是重要的信息。知道你来自哪个旧版本也很重要。 – LinusGeffarth

+0

从以前的Xcode 8.3开始 –

回答

2

最后通过删除~/Library/Developer/Xcode/DerivedData解决。