我正在升级我的代码以使用Swift 3和CocoaLumberjack 3.0.0。当我为iPhone构建时,编译和链接成功。当我尝试为模拟器构建时,它会编译但不会链接。我收到了以下形式的几条消息:
Undefined symbols for architecture x86_64:
"CocoaLumberjack.DDLogDebug (@autoclosure () -> Swift.String, level : __C.DDLogLevel, context : Swift.Int, file : Swift.StaticString, function : Swift.StaticString, line : Swift.UInt, tag : Any?, asynchronous : Swift.Bool, ddlog : __ObjC.DDLog) -> ()", referenced from:
ScanmonListener.SMLViewController.buttonTitle.didset : Swift.String in SMLViewController.o
ScanmonListener.SMLViewController.viewDidLoad () -> () in SMLViewController.o
ScanmonListener.SMLViewController.viewDidAppear (Swift.Bool) -> () in SMLViewController.o
ScanmonListener.SMLViewController.viewDidDisappear (Swift.Bool) -> () in SMLViewController.o
ScanmonListener.SMLViewController.viewWillAppear (Swift.Bool) -> () in SMLViewController.o
ScanmonListener.SMLViewController.viewWillDisappear (Swift.Bool) -> () in SMLViewController.o
ScanmonListener.SMLViewController.doPlay () -> Swift.Bool in SMLViewController.o
...
我已经运行pod deintegrate
并再次安装但没有效果。
答案 0 :(得分:0)
- >解决方案:在每个" Pod _"目标您必须将x86_64
(可能还有i386
)添加到Valid Architectures
构建设置。