Forum Xamarin.iOS

Native Binding project fails with error: Native linking failed

HarshaHarsha Member

Hi i am trying to bind the native objective C static library with Xamarin.iOS. While building i am getting this error.

undefined symbols for architecture x86_64:
"_getOfflinePackageDirectory", referenced from:
-u command line option
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My fat file supports x86_64 architecture, and there were no frameworks used in library code. "getOfflinePackageDirectory" function is there in the library.
I have kept -gcc_flags "${ProjectDir}\RSBindingNew\libTestBindingR.a" flag in additional m touch arguments.

Any help would be appreciated. Thanks in advance.


Sign In or Register to comment.