I get all these errors and about 18 more when i try to integrate facebook to my application.
Undefined symbols for architecture i386:
"_ACAccountTypeIdentifierFacebook", referenced from:
+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
"_ACFacebookAppIdKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceEveryone", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] 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:
Im using the latest facebook instructions on how to add facebook to my page but i am working with iOS 4.3 and above. SO it needs to cater to 4.3. I have set Accounts.framework to optional. Any one knows what these erros mean? Ive also tried adding any other implementation files that are not linked.
The errors are generated everytime i access FBSession or FBConnect etc.
For the record: we expect you to use XCode 4.5 for developing with the Facebook SDK 3.1 as described here
Account.framework, Social.framework and AdSupport.framework are all required (as described here) but use the 'optional' flag if you want to build for older iOS versions too.
Good luck.
With Account.framework you also have to add Social.framework and AdSupport.framework.
If you drag and drop Adsuport, Accounts or Social libraries from another project and you select "Copy items into destination group's folder" AdSuport and Social directories will be created into yours app source folder and you will get this linker error, remove directories and add libraries from project's Buld Phases -> Link Binary,
you may also need to add libsqlite3.dylib
I think the Accounts.framework needs to be required. But it is only implemented in iOS 5 and later see developer reference for more information.
Solved this by upgrading to xcode 4.5.1 and then adding the social and adsupport framework and also the -lsqlitee3 or so as stated. I did add lsqlite3 before but it said multiple values on top so i just took the unnecessary for base sdk comments out and it worked.
Related
I am getting this error any solution please ?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in FacebookSDK(FBSettings.o)
You need to link your application with AdSupport.framework. This framework is available in iOS6.0 and later. If your application is targeted to use iOS versions less than 6.0 then you need to link to AdSupport.framework as Optional instead of Required.
The Facebook developers page mentions the steps to upgrade your FB SDK. https://developers.facebook.com/docs/ios/upgrading-from-3.0-to-3.1/. You can find the list of URLs for various SDK versions on this page.
Check it out.
Hope that helps!
I think you didn't add AdSupport.framework. Also remember to remove -all_load linker flag.
The message hints can't find the class ASIdentifierManager, because the corresponding framework not really add it to the object. Just add the framework which includes the class.
I'm trying to simulate touch in iOS. There some pointers in SO suggest that I could try GraphicsServices/GSEvent.h in the private framework. However, when I followed the steps here, I got these errors:
Undefined symbols for architecture armv7:
"_GSCopyPurpleNamedPort", referenced from:
-[TestGraphicsServicesAppDelegate application:didFinishLaunchingWithOptions:] in TestGraphicsServicesAppDelegate.o
"_GSSendEvent", referenced from:
-[TestGraphicsServicesAppDelegate application:didFinishLaunchingWithOptions:] in TestGraphicsServicesAppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any suggestion? Thanks
edit:
the code I used is from Using GraphicsServices.h/GSEvent as well as compiling CLI iPhone tools with Xcode.
Looks like the errors are from this line.
mach_port_t thePortOfApp = GSCopyPurpleNamedPort...
GSSendEvent(&record, thePortOfApp);
OK, I think I made some mistakes when I added the framework.
Somehow I got my project working now.
The errors have gone away after I did a couple things.
In Build Setting, I changed Always Search User Paths to Yes.
Added the path to the private header in User Header Search Paths.
Also, in Build Phrases tab, I add the GraphicsServices in the Link Binary with Libraries section.
Now I can do simple stuff like GSEventLockDevice() and simulating pressing home button.
Still have no clue about touch.
New to iPhone app development, I have a problem compiling (or "Build and Run") my application after including S7FTPRequest into my class library; before I even include it in any particular script. I get the following errors:
Undefined symbols:
"_kCFStreamPropertyFTPPassword", referenced from:
_kCFStreamPropertyFTPPassword$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamPropertyFTPPassword$non_lazy_ptr)
"_CFWriteStreamCreateWithFTPURL", referenced from:
-[S7FTPRequest startUploadRequest] in S7FTPRequest.o
-[S7FTPRequest startCreateDirectoryRequest] in S7FTPRequest.o
"_kCFStreamPropertyFTPUserName", referenced from:
_kCFStreamPropertyFTPUserName$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamPropertyFTPUserName$non_lazy_ptr)
"_kCFStreamErrorDomainFTP", referenced from:
_kCFStreamErrorDomainFTP$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamErrorDomainFTP$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
thx!
You got it a little wrong. The problem is coming due to linking as a required framework is missing, but the framework needed is CFNetwork.framework and not libz.1.2.3.dylib
The libz dynamic library is used for zipping/unzipping operations.
Ok I kinda gave up on this solution (for the time being) but I think I solved the issue when trying something different.
It seems that many external components need some accommodating linked libraries.
You can add new libraries by going to Project > Edit Active Target "ProjectName" > General
Then you click the plus simple to see all the available libraries.
Not sure which one fixed but I added these for a different solution and voila S7FTPRequest compiled.
Here are the libraries I added (I think it was actually libz.1.2.3.dylib):
CoreGraphics.framework
CFNetwork.framework
SystemConfiguration.framework
MobileCoreServices.framework
libz.1.2.3.dylib
I create a new application for iPad starting from an UISplitView application that works correctly, in the new application I get this error:
"_OBJC_CLASS_$_ConcertListController", referenced from:
objc-class-ref-to-ConcertListController in RootViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What it mean? How can I solve?
Apparently you need to link in whatever framework ConcertListController is a part of. Try going to the project window, right click on frameworks and choose add existing framework .... you should be able to find the framework including ConcertListController there.
I also had a similar problem. My solution was remove the reference and re added those files. Then it will show a window and make sure to tick on "Add to target" check box.
I'm working with developing an application for iPhone in Objective-C
Can anyone tel me how to solve this error:
".obj_class_name_CUIFramework", referenced from:
collect2:ld returned 1 exit status
literal-pointer#_OBJC#_cls_refs#CUIFramework in MF_CoreAppDelegate.o
symbol(s) not found
I tried to compile my code, i don't have idea for what this error is related to. Please help.what could be the problem?
i've added Foundation framework and UIKit framework
Your code's well-formed, so compiles just fine. When the linker tries to link your application to the frameworks you use, it finds that you reference a framework that's not been imported to your application.
It looks like your code is using a class CUIFramework, but that you haven't added the appropriate framework to your project.