[英]Linker error after installing Firebase pod
I am a beginner in iOS app development. 我是iOS应用开发的初学者。 I am currently working on a project that needs to be changed from Parse to Firebase`.
我目前正在开发一个需要从Parse更改为Firebase的项目。
firebase/core
" pod
as firebase
site instructed. firebase/core
” pod
作为firebase
网站指示。 [FIRApp configure];
[FIRApp configure];
in ' didfinishlaunchingwithoptions
' didfinishlaunchingwithoptions
' googleservice-info.plist
' in project. googleservice-info.plist
”。 After doing these steps, I ran the build but it failed with following errors ( Screen Shot ) 执行这些步骤后,我运行了构建,但它失败并出现以下错误( 屏幕截图 )
Showing Recent Issues 显示最近的问题
Ld /Users/../Build/Products/Debug-iphonesimulator/Example.app/Example
Apple Mach-O Linker Error Group Apple Mach-O链接器错误组
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_CLASS_$_PFFacebookTokenCachingStrategy in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
"_FBTokenInformationUserFBIDKey", referenced from:
-[PFFacebookTokenCachingStrategy facebookId] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setFacebookId:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationTokenKey", referenced from:
-[PFFacebookTokenCachingStrategy accessToken] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setAccessToken:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I know this has something to do with the parse code in my project but I don't have much knowledge in Parse or in Firebase. 我知道这与我项目中的解析代码有关,但我对Parse或Firebase中的知识不多。
Please help me with this error and guide me how to successfully migrate from Parse to Firebase. 请帮我解决此错误,并指导我如何成功从Parse迁移到Firebase。
If you used Parse SDK, just make sue you delete ParseFacebookUtils.framework
library from your project or from your podfile
remove 如果您使用的是Parse SDK,那么只需从项目中删除
ParseFacebookUtils.framework
库或从podfile
删除
pod 'Parse'
pod 'ParseFacebookUtilsV4'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.