Tôi mới sử dụng SDK Facebook trong iOS. Tại sao tôi nhận được lỗi này trong khi xây dựng dự án ...Facebook IOS SDK 3.1.1 với lỗi Xcode 4.5.2
tôi Chỉ cần tạo một dự án mới với bước cơ bản từ ios hướng dẫn cho Facebook SDK ..
- Tải Facebook SDK (tôi sử dụng 3.1.1)
- Xcode (tôi sử dụng 4.5.2)
- thêm "-lsqlite3.0" trong
Other Linker Flags
trênBuild Setting
- thêm FacebookSDK.framework
- thêm FacebookSDKRe sources.bundle
- thêm FBUserSettingsViewResources.bundle
và tôi cố gắng xây dựng, tất cả mọi thứ ok .. vì vậy tôi tiếp tục viết thực hiện cơ bản về appdelegate
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [FBSession.activeSession handleOpenURL:url];
}
và
#import <FacebookSDK/FacebookSDK.h>
Khi tôi cố gắng xây dựng, lỗi sẽ xuất hiện ... Đây là nhật ký
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ACAccountStore", referenced from:
objc-class-ref in FacebookSDK(FBSession.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAppIdKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACAccountTypeIdentifierFacebook", referenced from:
+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceOnlyMe", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookPermissionsKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in FacebookSDK(FBSettings.o)
"_ACFacebookAudienceEveryone", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tôi thấy điều này là lạ, bởi vì tôi sử dụng SDK cùng và các thiết lập tương tự với ví dụ Scrumptious
, Và ví dụ đang chạy tốt .. Trong khi đó tôi đã nhận lỗi này ...
bất kỳ ý tưởng?
và libsqlite3.0.dylib cũng! Cảm ơn bạn, bạn đã lưu tôi –
Trong trường hợp của tôi, đó là ** Tài khoản ** – AVEbrahimi