2016-09-26 22 views
0

我正在尝试我们的Firebase第一次。我选择了手动安装SDK,因为Pod安装正在永久。Swift Firebase:“_GSDK_NSClassFromString”,引用来自:

我遵循的方向一步一步,当我试图运行我得到这个错误的项目:

Undefined symbols for architecture x86_64: 
    "_GSDK_NSClassFromString", referenced from: 
     -[GSDK_GTMSessionFetcher initWithRequest:configuration:] in GoogleNetworkingUtilities(GTMSessionFetcher.o) 
     ___45+[GSDK_GTMSessionFetcher fetcherUserDefaults]_block_invoke in GoogleNetworkingUtilities(GTMSessionFetcher.o) 
     -[GSDK_GTMMIMEDocument generateInputStream:length:boundary:] in GoogleNetworkingUtilities(GTMMIMEDocument.o) 
     -[GSDK_GTMSessionFetcher(GTMSessionFetcherLogging) loggedInputStreamForInputStream:] in GoogleNetworkingUtilities(GTMSessionFetcherLogging.o) 
     -[GSDK_GTMSessionFetcher(GTMSessionFetcherLogging) loggedStreamProviderForStreamProvider:] in GoogleNetworkingUtilities(GTMSessionFetcherLogging.o) 
    "_OBJC_CLASS_$_FIRApp", referenced from: 
     objc-class-ref in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
    "_OBJC_CLASS_$_FIRAppAssociationRegistration", referenced from: 
     objc-class-ref in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
    "_kFIRAppDeleteNotification", referenced from: 
     ___15+[FIRAuth load]_block_invoke in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
    "_kFIRAppNameKey", referenced from: 
     ___15+[FIRAuth load]_block_invoke_2 in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
     ___15+[FIRAuth load]_block_invoke_4 in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
    "_kFIRAppReadyToConfigureSDKNotification", referenced from: 
     ___15+[FIRAuth load]_block_invoke in FirebaseAuth(FIRAuth_70be5a6d79de0ee5c6b8ffda807589e3.o) 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

有谁知道为什么吗?

+0

我有同样的问题,@JamesG你有没有找到这方面的解决方案? – iBapu

回答

0

我不能肯定地说,这不是别的东西一样的带宽,但尝试以下,看看它是否运行在新安装更快/安装:

pod repo remove master 
pod setup 
pod install 
0

检查你的阿迪-ObjC链接器标记在您的“其他链接器设置”中,强制类别被加载。没有这一点,有时只有类别的文件不能正确链接。

+0

已经完成 – JamesG

+0

您可以添加已添加到项目中的框架列表吗? –