Parse和GMaps iOS SDK在Swift中不兼容?

我正在构建一个具有Parse集成的Swift应用程序,它可以正常工作。 但是,当我尝试添加Google Maps iOS SDK集成时,会出现以下构建错误:

Undefined symbols for architecture x86_64: "_FBTokenInformationExpirationDateKey", referenced from: -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy expirationDate] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setExpirationDate:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) "_FBTokenInformationTokenKey", referenced from: -[PFFacebookTokenCachingStrategy accessToken] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setAccessToken:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) "_FBTokenInformationUserFBIDKey", referenced from: -[PFFacebookTokenCachingStrategy facebookId] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setFacebookId:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) "_OBJC_CLASS_$_FBAppCall", referenced from: objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBRequest", referenced from: objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBSDKAccessToken", referenced from: objc-class-ref in ParseFacebookUtilsV4(PFFacebookUtils.o) objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from: objc-class-ref in ParseFacebookUtilsV4(PFFacebookUtils.o) "_OBJC_CLASS_$_FBSDKLoginManager", referenced from: objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBSDKSettings", referenced from: objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBSession", referenced from: objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o) "_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from: _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from: _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in .... google_breakpadPFC_::MinidumpGenerator::UniqueNameInDirectory(std::string const&, std::string*) in ParseCrashReporting(minidump_generator.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

在我的项目目标中,在Linked Frameworks and Libraries ,我添加了Social.frameworkAccounts.framework ,以及ParseBoltsParseFacebookUtilsV4 。 我删除了ParseFacebookUtils 。 (我按照Parse文档的说明和这样的答案。)

对于Google Maps iOS SDK,我将-ObjCOther Linker Flags ,因为这是Swift兼容性所必需的。

这里的问题似乎是Parse和GMaps iOS SDK之间的不兼容,因为-ObjC linker flag导致Parse构建错误,但没有它GMaps将无法工作。 我使用的是最新版本的Parse SDK和Google Maps iOS SDK。

有人在Swift应用程序中成功集成了Parse和Google Maps iOS SDK吗?

我也有这个问题..我添加了一些进一步的框架,让shure你拥有所有这些:

在此处输入图像描述

使用所有这些框架,-ObjC -ObjC Linker Flag解析和gmaps应该一起工作。