针对iOS进行解析:尝试运行应用程序时出错

我一直在使用Parse SDK,并且遵循了快速步骤指南。当我尝试运行时,出现了这8个错误。有什么想法吗?似乎与我未使用的Parse的Facebook部分有关。


 Undefined symbols for architecture armv7:

"_FBTokenInformationTokenKey", referenced from:

  -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)

  -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)

 "_FBTokenInformationExpirationDateKey", referenced from:

  -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in     Parse(PFFacebookTokenCachingStrategy.o)

  -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)

  -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)

 "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:

  _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)

"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:

  _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)

"_FBTokenInformationUserFBIDKey", referenced from:

  -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)

  -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)

"_OBJC_CLASS_$_FBRequest", referenced from:

  objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)

"_OBJC_CLASS_$_FBSession", referenced from:

  objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)

 ld: symbol(s) not found for architecture armv7

 clang: error: linker command failed with exit code 1 (use -v to see invocation)


慕尼黑5688855
浏览 595回答 3
3回答

精慕HU

与下载,编译和安装FB工具包相比,这是一种潜在的更简单的解决方法,该工具包又大又麻烦。请注意,当然,您将无法使用Parse中的任何FB类型功能,并且如果触发任何期望使用这些虚拟符号的Parse代码,则会遇到严重问题。但是,我想,如果您远离他们,您会没事的。所以...在您的应用程序中创建一个名为FBMissingSymbols的对象删除不需要的.h把它放在.m中:NSString *FBTokenInformationExpirationDateKey = @"";NSString *FBTokenInformationTokenKey = @"";NSString *FBTokenInformationUserFBIDKey = @"";@interface FBAppCall:NSObject@end@implementation FBAppCall@end@interface FBRequest:NSObject@end@implementation FBRequest@end@interface FBSession:NSObject@end@implementation FBSession@end@interface FBSessionTokenCaching:NSObject@end@implementation FBSessionTokenCaching@end@interface FBSessionTokenCachingStrategy:NSObject@end@implementation FBSessionTokenCachingStrategy@end

开心每一天1111

我喜欢dbquarrel的答案,但是由于缺少一些新的社会阶层,它不再起作用了。所以做同样的事情,但是添加以下内容:NSString *FBTokenInformationExpirationDateKey = @"";NSString *FBTokenInformationTokenKey = @"";NSString *FBTokenInformationUserFBIDKey = @"";NSString *SLServiceTypeTwitter = @"";NSString *ACAccountTypeIdentifierTwitter = @"";@interface FBAppCall:NSObject@end@implementation FBAppCall@end@interface FBRequest:NSObject@end@implementation FBRequest@end@interface FBSession:NSObject@end@implementation FBSession@end@interface FBSessionTokenCaching:NSObject@end@implementation FBSessionTokenCaching@end@interface FBSessionTokenCachingStrategy:NSObject@end@implementation FBSessionTokenCachingStrategy@end@interface ACAccountStore:NSObject@end@implementation ACAccountStore@end@interface SLRequest:NSObject@end@implementation SLRequest@end@interface SLComposeViewController:NSObject@end@implementation SLComposeViewController@end
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

iOS