I was migrating iOS Here Map SDK to use Here Map Rest API instead, now everything got migrated to Rest API calls and I want to remove iOS Here Map SDK manually, which I made linkage manually followed by their office web site (https://developer.here.com/mobile-sdks/documentation/ios-hybrid-plus/topics/app-simple.html).
However, after I did so, I got compiling error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Reachability", referenced from:
"_kReachabilityChangedNotification", referenced from:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone knows how to solve this? Was trying to scratch my head on this one for some time.
Related
i'm using xcode 7 and when I build I face this problem
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GMSServices", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
is there any thing missing ?
My guess is you are using Google Maps framework in your project.
Make sure you add all the necessary frameworks needed for Google Maps framework
Follow through this page to install Google Maps SDK
I am attempting to build a project I did not write, and I keep reaching this error:
ld: warning: Auto-Linking supplied '/Users/my_user_name/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit', framework linker option at /Users/my_user_name/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit is not a dylib
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is a new error since updating Parse and Bolts pods. Other solutions for Auto-Linking that I've seen on here have not been able to help, but since the update to Facebook SDK is new perhaps someone has already solved this issue.
It's because of the conflict between the reference of FB SDK located at /Users/my_user_name/Documents/ and the one in CocoaPods.
Originally I used FB SDK located at /Users/my_user_name/Documents/ as suggested in FB SDK Getting Started tutorial. Then switched to Cocoapods after I started using react-native.
The solution is to remove Facebook SDK references from your apps Frameworks folder in YourApp.xcodeproj. I have explained more at https://stackoverflow.com/a/36947791/556678.
Make sure you're using a current version of the FBSDK! Also make sure you followed THESE (new) instructions: https://parse.com/docs/ios/guide#users-facebook-users (because with the parse update different things must be done!).
If the problem persists, I suggest you build a new project (that follows the instructions in the previous link).
I just download new facebook ios sdk.
It reports error when build,
ld: warning: directory not found for option '-F"/Users/myname/cd-standard/apple/apple_ios/Projects/fotoshow_ios/my app/../../../../../../Documents/FacebookSDK"'
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBSBJSON", referenced from:
objc-class-ref in FacebookController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the prohect with former facebook ios sdk works well, I only install the new ios sdk using downloaded installer.
I also check and find out all frameworks needed are there, but it still reports error
your comment welcome
FBSBJSON was removed in v3.5 of the Facebook SDK (released April 18, 2013), but your FacebookController class is still referencing it. You should remove the reference in your FacebookController class, or if you're using some other SDK which wraps the Facebook SDK, you'll probably need to update that as well.
I'm trying to write test cases for my iOS app. However, there seems to be some problem regarding SenTesting framework. I'm getting the following error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_testSmartDiary in testSmartDiary.o
_OBJC_CLASS_$_testAddTask in testAddTask.o
_OBJC_CLASS_$_testAddContacts in testAddContacts.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_testSmartDiary in testSmartDiary.o
_OBJC_METACLASS_$_testAddTask in testAddTask.o
_OBJC_METACLASS_$_testAddContacts in testAddContacts.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know what is going wrong. I have added the SenTestingFramework. It is probably happening because I'm using two different machines to develop the same project. Do I need to specify some path? I read the solution given here: iOS: Linker errors with OCUnit integration
but it is not feasible to delete the target and add the things again every time I switch machines. Is there a permanent solution to this? Please help
As the apple map adk is not well detailed on street details, and the google has provided the new sdk, I am trying to get this as a work around for the current ios 6, the problem that I am facing is that it is throwing error no matter what architecture you have placed in the settings,
Following is the error, though it works with no problem when running there sdkmapdemo :(
Undefined symbols for architecture armv7:
"___gxx_personality_sj0", referenced from:
+[GMSServices provideAPIKey:] in GoogleMaps(GMSServices.o)
+[GMSServices openSourceLicenseInfo] in GoogleMaps(GMSServices.o)
+[GMSServices services] in GoogleMaps(GMSServices.o)
_GMS_NSClassFromString in GoogleMaps(GMSRenames.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you add libstdc++.dylib to the project's frameworks?