About Parse library Configuration

Source: Internet
Author: User

When using some Parse related services, You need to download the Parse SDK, in addition to adding the corresponding system framework and library support

AudioToolbox. framework

CFNetwork. framework
CoreGraphics. framework
CoreLocation. framework
Libz.1.1.3.dylib
MobileCoreServices. framework
QuartzCore. framework
Security. framework
StoreKit. framework
SystemConfiguration. framework


If you have changed the settings when importing Other static libraries, the Other Linker Flags under Linking, for example, I am using the mango ad platform to configure the static library of the mango platform: Click the Target file of the program, select the Build Settings tab, find the Other Linker Flags under Linking, and add the parameter-all_load-ObjC .) However, this conflicts with the Parse static library settings to remove-ObjC. Otherwise, the following error occurs:



Undefined symbols for architecture i386:  "_FBTokenInformationExpirationDateKey", referenced from:      -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)      -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)      -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)  "_FBTokenInformationTokenKey", referenced from:      -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)      -[PFFacebookTokenCachingStrategy setAccessToken:] 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)  "_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:      _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)  "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:      _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)ld: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)



Solution 1: Download FaceBookSDK. framework online and add it to solve these errors (large files)

Solution 2: Set a separate static library and use-force_load/path/libname. a instead of configuring-all_load _ ObjC (for example :)


650) this. width = 650; "src =" http://img.blog.csdn.net/20130818202440531 "_ xhe_src =" http://img.blog.csdn.net/20130818202440531 "style =" max-width: 98%; "/>


This article from the "fresh wind wave" blog, please be sure to keep this source http://duxinfeng.blog.51cto.com/3911492/1285974

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.