架构x86_64的未定义符号:一旦我得到Xcode 8

问题描述:

我刚升级到Xcode 8,现在我的应用程序无法正常工作。它显示这些错误消息。架构x86_64的未定义符号:一旦我得到Xcode 8

ld: warning: directory not found for option '-F/Users/Connor/Desktop/Print start/Print' 
ld: warning: directory not found for option '-Fstart/StarPrinting' 
ld: warning: ignoring file /Users/Connor/Desktop/Print start/Print start/libStarPrinting.a, file was built for archive which is not the architecture being linked (x86_64): /Users/Connor/Desktop/Print start/Print start/libStarPrinting.a 
ld: warning: ignoring file /Users/Connor/Desktop/Print start/Print start/QuartzCore.framework/QuartzCore.tbd, missing required architecture x86_64 in file /Users/Connor/Desktop/Print start/Print start/QuartzCore.framework/QuartzCore.tbd (3 slices) 
ld: warning: ignoring file /Users/Connor/Desktop/Print start/Print start/CoreGraphics.framework/CoreGraphics.tbd, missing required architecture x86_64 in file /Users/Connor/Desktop/Print start/Print start/CoreGraphics.framework/CoreGraphics.tbd (3 slices) 
ld: warning: ignoring file /Users/Connor/Desktop/Print start/Print start/UIKit.framework/UIKit.tbd, missing required architecture x86_64 in file /Users/Connor/Desktop/Print start/Print start/UIKit.framework/UIKit.tbd (3 slices) 
Undefined symbols for architecture x86_64: 
    "_OBJC_CLASS_$_UIAlertView", referenced from: 
     objc-class-ref in ViewController.o 
    "_OBJC_CLASS_$_UIResponder", referenced from: 
     _OBJC_CLASS_$_AppDelegate in AppDelegate.o 
    "_OBJC_CLASS_$_UIViewController", referenced from: 
     _OBJC_CLASS_$_ViewController in ViewController.o 
    "_OBJC_METACLASS_$_UIResponder", referenced from: 
     _OBJC_METACLASS_$_AppDelegate in AppDelegate.o 
    "_OBJC_METACLASS_$_UIViewController", referenced from: 
     _OBJC_METACLASS_$_ViewController in ViewController.o 
    "_UIApplicationMain", referenced from: 
     _main in main.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我一直在调查这一段时间,还没有找到一个解决方案,为我工作。我希望这可以帮助任何可能有这个问题的人。

我修复了这个问题,删除了一些Frameworks搜索路径,它运行得很完美。我仍然不确定这是如何通过更新到Xcode 8来实现的。