I'm using Xcode 6.0.1 and need to add a library libpt.a to my C project. I cannot figure out how to properly integrate it into my project. I have already done Link Binary With Libraries however I still continue to get this error:
Undefined symbols for architecture x86_64:
"_pt_add_xpage", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am assuming that the above error means that the library has not been integrated correctly. I have already added the header file pt.h and included into my project. What am I doing wrong?
Related
I have a static library (.a) whose include "FastPdfKit.framework". (My Xcode project runs correctly)
This static library is included in xamarin project and i have to bind "FastPdfKit.framework".
So i did: project options -> iOS Build -> Additionnal mtouch arguments (--framework:${ProjectDir}/frameworks/FastPdfKit.framework).
But this mani doesn't run, i've got linked error:
ld: warning: ignoring file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit,
missing required architecture arm64 in file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit
(2 slices) Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_MFDocumentManager", referenced from:
objc-class-ref in MyLib.a(Page.o)
"_OBJC_CLASS_$_ReaderViewController", referenced from:
objc-class-ref in MyLib.a(Page.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
MTOUCH: error MT5209: Native linking error: warning: ignoring file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit,
missing required architecture arm64 in file
/Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit
(2 slices) MTOUCH: error MT5211: Native linking failed, undefined
Objective-C class: MFDocumentManager. The symbol
'_OBJC_CLASS_$_MFDocumentManager' could not be found in any of the
libraries or frameworks linked with your application. MTOUCH: error
MT5211: Native linking failed, undefined Objective-C class:
ReaderViewController. The symbol '_OBJC_CLASS_$_ReaderViewController'
could not be found in any of the libraries or frameworks linked with
your application.
MTOUCH: error MT5202: Native linking failed. Please
review the build log.
Can anyone help me???
Thanks,
Yann
OK, i found.
It was architecture problem. I don't know why because I set architecture option correctly, but not all of architecture setting was generated
Use command line "xcrun -sdk iphoneos lipo -info MyLib.a" to check which architecture is generated.
The error is really very clear, the librarty doesn't support the arm64 architecture as is requested by the project, you need a library compatible with your project's architectures.
I'm trying to use the MWPhotoBrowser project in my project. I followed the whole installation process and was able to import the MWPhotoBrowser.h file. When I tried to build, I run into this error...
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MWPhotoBrowser", referenced from:
objc-class-ref in PhotoBrowserViewController.o
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 know how to resolve this?
Thanks
For anyone getting this issue...Please check if you correctly linked your project to the libMWPhotoBrowser.a file under Build Phases in your target settings !
I was trying to deploy a game to an iOS device,these error shows up. Now is this because the plugins need to be upgraded?
Undefined symbols for architecture armv7:
"UnityGetGLViewController()", referenced from:
+[GameCenterManager showViewControllerModallyInWrapper:] in libGameCenterPlugin.a(GameCenterManager.o)
+[GameCenterManager dismissWrappedController:] in libGameCenterPlugin.a(GameCenterManager.o)
+[GameCenterManager unityViewController] in libGameCenterPlugin.a(GameCenterManager.o)
-[StoreKitManager displayStoreWithProductId:] in libStoreKit.a(StoreKitManager.o)
___45-[StoreKitManager displayStoreWithProductId:]_block_invoke in libStoreKit.a(StoreKitManager.o)
-[StoreKitManager productViewControllerDidFinish:] in libStoreKit.a(StoreKitManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
We need solve this problem your unity version , xcode version. update please.
Now, just tell you symbol(s) not found for architecture armv7 issue is generation in old plugin
I used Xcode to build a example of boost, but as you see followed it is failed. And the error
I've got is:
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init2 in sync_client.o
boost::asio::error::get_system_category() in sync_client.o
boost::system::error_code::error_code() in sync_client.o
"boost::system::generic_category()", referenced from:
___cxx_global_var_init in sync_client.o
___cxx_global_var_init1 in sync_client.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know how I can fix it. I've added the include and libs path of boost into Xcode Build Setting. Does anyone have any idea about this problem?
Either link against a pre-built version of libboost-system.so or pull in libs/system/src/error_code.cpp (from your boost source package), into your project.
I have linked the target file of my project to the coredata.framework in the Build Phases.
But still I am getting 3 linker errors like below:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CoreDataTableViewController", referenced from:
_OBJC_CLASS_$_RolesTableViewController in RolesTableViewController.o
"_OBJC_METACLASS_$_CoreDataTableViewController", referenced from:
_OBJC_METACLASS_$_RolesTableViewController in RolesTableViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am getting this problem in 2 coredata examples i was following from the tutorials. I tried to find if i missed a step. I think I am doing some small fundamental error...
Please help, what it could be...
I'm sure this is solved now, but I had the same problem. When you copy the files to your project you need to ensure you put a check next to your project under "Add to targets".