这些错误让我感到困惑,我不知道我做了什么来触发它们:
ld: warning: directory not found for option '-F/"..."'
ld: warning: ignoring file "..."/iOS 7/Crashlytics.framework/Crashlytics, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 ) which is not the architecture being linked (i386): /"..."/Crashlytics.framework/Crashlytics
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Crashlytics", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我不知道它在说什么。我该如何解决?
答案 0 :(得分:29)
来自Crashlytics支持:
从项目中删除Crashlytics.framework。
在终端中运行此功能,将框架复制到桌面:
ditto -xk /Applications/Fabric.app/Contents/Resources/com.crashlytics.sdk.ios-default.zip 〜/桌面/
答案 1 :(得分:2)
我正在使用Crashlytics和cocoapods,并在升级到Fabric后面临同样的错误。
修复步骤:
答案 2 :(得分:-5)
您链接到项目的框架版本仅适用于Device。使用fabric桌面应用程序将正确的框架链接到项目。