2013年4月23日 星期二

Facebook SDK built error

總之,要在framework加入
1.FacebookSDKResources.bundle
2.FacebookSDK.framework
3.Sqlite3.0.dylib
4.Social.framework
5.AdSupport.framework
6.Accounts.framework

 
Q: dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
A: add Social.framework
 
Q: dyld: Symbol not found: _ACFacebookAppIdKey
A:
Accounts.framework:Optional
AdSupport.framework:Optional
Social.framework:Optional
 
Q: /Users/shian/Documents/uschoolnet/FacebookSDK/tests/FBBatchRequestTests.h:17:9: 'SenTestingKit/SenTestingKit.h' file not found
A: Add SenTestingKit.framework to your project.
 
Q:
"_ACFacebookAppIdKey", referenced from:
"_ACFacebookAudienceEveryone", referenced from:
"_ACFacebookAudienceFriends", referenced from:
"_ACFacebookAudienceKey", referenced from:
"_ACFacebookAudienceOnlyMe", referenced from:
"_ACFacebookPermissionsKey", referenced from:
"_CLLocationCoordinate2DMake", referenced from:
"_OBJC_CLASS_$_ACAccountStore", referenced from:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
"_OBJC_METACLASS_$_SenTestCase", referenced from:
"_OBJC_METACLASS_$_SenTestCase", referenced from:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A:
Add Social.framework
Add AdSupport.framework
Add Accounts.framework
 
Q: "_CLLocationCoordinate2DMake", referenced from:
A: Add CoreLocation.framework
 
Q:
"_OBJC_CLASS_$_SenTestCase", referenced from:
"_OBJC_METACLASS_$_SenTestCase", referenced from:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A:
http://stackoverflow.com/questions/9614313/xcode-4-3-build-error-missing-required-architecture-armv7
Select Project in project navigator
Select Test Target
Select Build Settings
Go down to Framework Search Paths and single-click it
Delete whatever is there
Enter $(SDKROOT)/Developer/Library/Frameworks $(DEVELOPER_LIBRARY_DIR)/Frameworks
If you had any custom frameworks, add those back
 
"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks"
 
Q: /Users/shian/Documents/uschoolnet/FacebookSDK/tests/FBTestBlocker.h:36:1: Multiple declarations of method 'initWithExpectedSignalCount:' found and ignored
A: remove tests
 
Q:Cannot run on the selected destination
A:
Social.framework  optional
AdSupport.framework  optional
Accounts.framework  optional
 
or Deployment Target 5.1
or Valid Architectures armv7

沒有留言:

張貼留言