xcode 4.5 : Undefined symbols for architecture armv7s: - iphone

i'm totally went crazy for that issue..
i have project that was working fine but after i added facebook sdk it gives me the following errors (errors that made me remove armv6 hoping it will work fine after but it gives more issue as i'm going through it..
i'm using now arch armv7 and armv7s together and that is the error it gives
/Users/ME/Library/Developer/Xcode/DerivedData/Cocktail-gfjrrmcunekvfiacogqdfcxliqfg/Build/Intermediates/Cocktail.build/Debug-iphoneos/Cocktail.build/Objects-normal/armv7/Cocktail normal armv7
cd "/Users/ME/Apple DistributedApps/Cocktail All/Cocktail"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/ME/Library/Developer/Xcode/DerivedData/MyProj-gfjrrmcunekvfiacogqdfcxliqfg/Build/Products/Debug-iphoneos "-L/Users/ME/Apple DistributedApps/MyProj All/MyProj" -F/Users/ME/Library/Developer/Xcode/DerivedData/MyProj-gfjrrmcunekvfiacogqdfcxliqfg/Build/Products/Debug-iphoneos "-F/Users/ME/Apple DistributedApps/MyProj All/MyProj" -filelist /Users/ME/Library/Developer/Xcode/DerivedData/MyProj-gfjrrmcunekvfiacogqdfcxliqfg/Build/Intermediates/MyProj.build/Debug-iphoneos/MyProj.build/Objects-normal/armv7/MyProj.LinkFileList -dead_strip -ObjC -all_load -lxml2 -lsqlite3.0 -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=4.3 -framework AdSupport -framework Social -framework SystemConfiguration -framework MapKit -framework CoreLocation -framework Twitter -framework AssetsLibrary -framework MobileCoreServices -framework CoreVideo -framework CoreMedia -lz -lsqlite3.0 -framework AddressBook -framework CFNetwork -framework CoreFoundation -framework Security -framework iAd -framework MessageUI -framework QuartzCore -framework AudioToolbox -framework MediaPlayer -framework AVFoundation -framework CoreGraphics -framework UIKit -framework Foundation -framework FacebookSDK -framework RevMobAds -lFlurryAnalytics -o /Users/ME/Library/Developer/Xcode/DerivedData/MyProj-gfjrrmcunekvfiacogqdfcxliqfg/Build/Intermediates/MyProj.build/Debug-iphoneos/MyProj.build/Objects-normal/armv7/MyProj
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ACAccountStore", referenced from:
objc-class-ref in FacebookSDK(FBSession.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[RevMobStoreController openStoreWithITunesItemId:] in RevMobAds(RevMobStoreController.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in RevMobAds(RevMobStoreController.o)
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in NewsViewController.o
objc-class-ref in SportsViewController.o
objc-class-ref in LecViewController.o
objc-class-ref in AccViewController.o
objc-class-ref in JokesViewController.o
objc-class-ref in GamesViewController.o
objc-class-ref in CaricViewController.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)
"_kGADAdSizeSmartBannerPortrait", referenced from:
-[NewsViewController shouldAutorotateToInterfaceOrientation:] in NewsViewController.o
-[SportsViewController viewDidLoad] in SportsViewController.o
-[LecViewController viewDidLoad] in LecViewController.o
-[AccViewController viewDidLoad] in AccViewController.o
-[JokesViewController viewDidLoad] in JokesViewController.o
-[GamesViewController viewDidLoad] in GamesViewController.o
-[CaricViewController viewDidLoad] in CaricViewController.o
...
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in NewsViewController.o
objc-class-ref in SportsViewController.o
objc-class-ref in LecViewController.o
objc-class-ref in AccViewController.o
objc-class-ref in JokesViewController.o
objc-class-ref in GamesViewController.o
objc-class-ref in CaricViewController.o
...
"_ACFacebookPermissionsKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_CGSizeFromGADAdSize", referenced from:
-[NewsViewController shouldAutorotateToInterfaceOrientation:] in NewsViewController.o
-[SportsViewController viewDidLoad] in SportsViewController.o
-[LecViewController viewDidLoad] in LecViewController.o
-[AccViewController viewDidLoad] in AccViewController.o
-[JokesViewController viewDidLoad] in JokesViewController.o
-[GamesViewController viewDidLoad] in GamesViewController.o
-[CaricViewController viewDidLoad] in CaricViewController.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)

As an interim solution you can remove armv7s from the Architectures in the Xcode project. Change "$(ARCHS_STANDARD_32_BIT)" to "armv7". When the libraries are updated change back to re-add armv7s support.

Facebook sdk isn't compiled for armv7s, but you can compile yourself
Look at Liam nichols answer here
https://developers.facebook.com/bugs/107674376052717/
Download a copy of the source code from the git hub page (facebook git hub)
Open up the xcode project and in the build settings change the architecture to armv7, armv7s
Close the project
Navigate to /scripts and in terminal run ./build_all.sh
When it finish compiling, you can find the framework in builds/FacebookSDK.framework

Remove armv7s from valid architectures section and it will work.
Build Settings --> Architectures --> Valid Architectures

Related

undefined symbol for architecture i386 defacebookComposerViewController

i have added all frameworks and set my deployment target 4.3 but i don t know why i am getting this error. can any one help me what i am doing wrong?
Ld /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator/intellegentQuiz.app/intellegentQuiz normal i386
cd /Users/malik98b/Desktop/intellegentQuiz
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator -F/Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator -F/Users/malik98b/Desktop/intellegentQuiz/../../Documents/FacebookSDK -F/Users/malik98b/Desktop/intellegentQuiz/intellegentQuiz -filelist /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Intermediates/intellegentQuiz.build/Debug-iphonesimulator/intellegentQuiz.build/Objects-normal/i386/intellegentQuiz.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -lz.1.2.5 -framework Security -weak_framework Social -weak_framework Accounts -framework CFNetwork -framework SystemConfiguration -framework Twitter -weak_framework AdSupport -framework MessageUI -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -o /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator/intellegentQuiz.app/intellegentQuiz
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_DEFacebookComposeViewController", referenced from:
objc-class-ref in ShareVC.o
"_OBJC_CLASS_$_DETweetComposeViewController", referenced from:
objc-class-ref in ShareVC.o
"_OBJC_CLASS_$_SHKItem", referenced from:
objc-class-ref in ShareVC.o
"_OBJC_CLASS_$_SHKMail", referenced from:
objc-class-ref in ShareVC.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sometimes the .m file is not listed under the "Compile Sources" step of the "Build Phases" tab of your target and you need to add the .m file manually.
credit to Allen pike on this one
Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

What does the error mean?

Ld /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video normal i386
cd "/Users/michaelsonsamuels/Desktop/Xcode /Video"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -F/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -filelist /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework StoreKit -framework AudioToolbox -framework MessageUI -framework SystemConfiguration -framework CoreGraphics -framework UIKit -framework Foundation -o /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in ViewController.o
"_kGADAdSizeBanner", referenced from:
-[ViewController viewDidLoad] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video normal i386
cd "/Users/michaelsonsamuels/Desktop/Xcode /Video"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -F/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -filelist /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework StoreKit -framework AudioToolbox -framework MessageUI -framework SystemConfiguration -framework CoreGraphics -framework UIKit -framework Foundation -o /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in ViewController.o
"_kGADAdSizeBanner", referenced from:
-[ViewController viewDidLoad] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in ViewController.o
"_kGADAdSizeBanner", referenced from:
-[ViewController viewDidLoad] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks.
Your classes are missing from Build target. I don't know about your project structure and files but it looks like GADBannerView and GADRequest classes are missing.
Remove these files from your project. add them again and remember to check "ADD TO TARGET" checkbox.
Add the libGoogleAdMobAds.a to the Linked Frameworks and Libraries.
this error shows that u haven't added GADBannerView, and GADRequest classes.
please check by following this steps:
in XCode select your Project in the Target Section then switch to BuildPhases->CompileSources
here check for GADBannerView.m and GADRequest.m files.
XCode->Your Project in Target section->BuildPhases->CompileSources
hope this will help you.

GameKit / GameCenter - I386

I'm having some hard time with the iOS GameCenter
I'm following some tutorials on youtube
but as soon as I finish the code I get this error:
Ld /Users/fgringo/Library/Developer/Xcode/DerivedData/Game-Center-Test-aggpqkxrazgvnseohuityqvchrnm/Build/Products/Debug-iphonesimulator/Game-Center-Test.app/Game-Center-Test normal i386
cd /Users/fgringo/Documents/DEVELOPER/Game-Center-Test
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/fgringo/Library/Developer/Xcode/DerivedData/Game-Center-Test-aggpqkxrazgvnseohuityqvchrnm/Build/Products/Debug-iphonesimulator -F/Users/fgringo/Library/Developer/Xcode/DerivedData/Game-Center-Test-aggpqkxrazgvnseohuityqvchrnm/Build/Products/Debug-iphonesimulator -F/Users/fgringo/Documents/DEVELOPER/Game-Center-Test -filelist /Users/fgringo/Library/Developer/Xcode/DerivedData/Game-Center-Test-aggpqkxrazgvnseohuityqvchrnm/Build/Intermediates/Game-Center-Test.build/Debug-iphonesimulator/Game-Center-Test.build/Objects-normal/i386/Game-Center-Test.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework GameKit -framework MediaPlayer -o /Users/fgringo/Library/Developer/Xcode/DerivedData/Game-Center-Test-aggpqkxrazgvnseohuityqvchrnm/Build/Products/Debug-iphonesimulator/Game-Center-Test.app/Game-Center-Test
ld: warning: ignoring file /Users/fgringo/Documents/DEVELOPER/Game-Center-Test/GameKit.framework/GameKit, missing required architecture i386 in file
ld: warning: ignoring file /Users/fgringo/Documents/DEVELOPER/Game-Center-Test/MediaPlayer.framework/MediaPlayer, missing required architecture i386 in file
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GKLocalPlayer", referenced from:
objc-class-ref in GameCenterManager.o
"_OBJC_CLASS_$_GKLeaderboard", referenced from:
objc-class-ref in GameCenterManager.o
"_OBJC_CLASS_$_GKScore", referenced from:
objc-class-ref in GameCenterManager.o
"_OBJC_CLASS_$_GKAchievement", referenced from:
objc-class-ref in GameCenterManager.o
"_OBJC_CLASS_$_GKPlayer", referenced from:
objc-class-ref in GameCenterManager.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
It looks like you haven't added the GameKit framework to your project.
If your using Xcode 3.2.x:
Right click the Frameworks group/folder in the file tree (on the left of the xcode window)
Press Add, and then select Existing Frameworks...
Scroll to GameKit.framework and double click it
If your using Xcode 4:
In the file tree, click on the project (the item at the top)
Select your target
Go to the Build Phases tab on the main panel
Expand the Link Binary with Libraries
Press the + button
Scroll to the GameKit.framework and double click it.
Did you add the GameKit.framework to your project?

SCNetworkReachability Errors in PinkelStar App

I am trying to add PinkelStar Sharing function to my own app, I follow every step the instruction says, but it did not turn out to be the way it should be. I am a newer to iPhone development, question might be stupid.
Ld build/Debug-iphonesimulator/ButtonTest.app/ButtonTest normal i386
cd /Users/spzhang/Documents/IphoneProject/ButtonTest
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/spzhang/Documents/IphoneProject/ButtonTest/build/Debug-iphonesimulator -F/Users/spzhang/Documents/IphoneProject/ButtonTest/build/Debug-iphonesimulator -F/Users/spzhang/Documents/IphoneProject/ButtonTest/../PinkelStar-pinkelstar-iOS-demo-359a5be -filelist /Users/spzhang/Documents/IphoneProject/ButtonTest/build/ButtonTest.build/Debug-iphonesimulator/ButtonTest.build/Objects-normal/i386/ButtonTest.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework PinkelStar -o /Users/spzhang/Documents/IphoneProject/ButtonTest/build/Debug-iphonesimulator/ButtonTest.app/ButtonTest
Undefined symbols:
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[PSReachability startNotifier] in PinkelStar(Reachability.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[PSReachability currentReachabilityStatus] in PinkelStar(Reachability.o)
-[PSReachability connectionRequired] in PinkelStar(Reachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[PSReachability reachabilityWithAddress:] in PinkelStar(Reachability.o)
"_OBJC_METACLASS_$_MFMailComposeViewController", referenced from:
_OBJC_METACLASS_$_PSMailViewController in PSMailViewController.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[PSReachability stopNotifier] in PinkelStar(Reachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[PSReachability reachabilityWithHostName:] in PinkelStar(Reachability.o)
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
_OBJC_CLASS_$_PSMailViewController in PSMailViewController.o
objc-class-ref-to-MFMailComposeViewController in PSMailViewController.o
"_SCNetworkReachabilitySetCallback", referenced from:
-[PSReachability startNotifier] in PinkelStar(Reachability.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Thank you for your help!!
Tony
It looks like you are not linking all the needed Frameworks into your project. Please take a look at the Readme.mdown that lists all of the frameworks and include them into your project. That will resolve these issues.
Required frameworks may not be added to the project correctly or the path given for the framework in Framework search path may be incorrect.Verify.If you are not adding any private framework then leave Framework search path blank and then try.

Build Errors when installing openfeint 2.4.4 SDK

I have 12 build errors when trying to install the openFeint SDK.
Build Invisible_Pong of project rocket_pong with configuration Debug
Ld "build/Debug-iphonesimulator/Invisible Pong.app/Invisible Pong" normal i386
cd /Users/robkwok/Documents/rocket_pong
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -L/Users/robkwok/Documents/rocket_pong/build/Debug-iphonesimulator -F/Users/robkwok/Documents/rocket_pong/build/Debug-iphonesimulator -filelist "/Users/robkwok/Documents/rocket_pong/build/rocket_pong.build/Debug-iphonesimulator/Invisible_Pong.build/Objects-normal/i386/Invisible Pong.LinkFileList" -mmacosx-version-min=10.5 -lobjc -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework Security -framework SystemConfiguration -lsqlite3 -o "/Users/robkwok/Documents/rocket_pong/build/Debug-iphonesimulator/Invisible Pong.app/Invisible Pong"
Undefined symbols:
".objc_class_name_CLLocationManager", referenced from:
literal-pointer#__OBJC#__cls_refs#CLLocationManager in OFLocation.o
".objc_class_name_CLLocation", referenced from:
literal-pointer#__OBJC#__cls_refs#CLLocation in OFHighScoreAnnotation.o
literal-pointer#__OBJC#__cls_refs#CLLocation in OFHighScoreMapViewController.o
"_kCFStreamErrorDomainSystemConfiguration", referenced from:
_kCFStreamErrorDomainSystemConfiguration$non_lazy_ptr in OFAsyncSocket.o
"_kCFStreamSSLValidatesCertificateChain", referenced from:
_kCFStreamSSLValidatesCertificateChain$non_lazy_ptr in OFCRVStompClient.o
"_kCFStreamErrorDomainNetDB", referenced from:
_kCFStreamErrorDomainNetDB$non_lazy_ptr in OFAsyncSocket.o
"_kCFStreamPropertySSLSettings", referenced from:
_kCFStreamPropertySSLSettings$non_lazy_ptr in OFAsyncSocket.o
"_kCFStreamErrorDomainNetServices", referenced from:
_kCFStreamErrorDomainNetServices$non_lazy_ptr in OFAsyncSocket.o
"_kCLLocationAccuracyBest", referenced from:
_kCLLocationAccuracyBest$non_lazy_ptr in OFLocation.o
"_kCFStreamSSLAllowsAnyRoot", referenced from:
_kCFStreamSSLAllowsAnyRoot$non_lazy_ptr in OFCRVStompClient.o
"_kCFStreamErrorDomainMach", referenced from:
_kCFStreamErrorDomainMach$non_lazy_ptr in OFAsyncSocket.o
"_kCFStreamSSLLevel", referenced from:
_kCFStreamSSLLevel$non_lazy_ptr in OFCRVStompClient.o
".objc_class_name_MKAnnotationView", referenced from:
.objc_class_name_OFHighScoreAnnotationView in OFHighScoreAnnotationView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Here's what I've done so far:
Unzipped the openFeint folder and dragged it into my project
Added the appropriate frameworks (including libsqlite3.dylib)
Added #import "openFeintPrefix.pch" to my APP_prefix.pch
You have to include the CoreLocation, CFNetwork and MapKit frameworks also.