简体   繁体   中英

Xamarin iOS - “Native linking failed for ..” with Static Library Bind

I'm trying to build an, only iOS, app but I get two errors:

linker command failed with exit code 1 (use -v to see invocation)

Native linking failed for '/Users/{name}/Desktop/{application name}/{application name}/obj/iPhone/Debug/device-builds/iphone8.1-11.1.2/mtouch-cache/arm64/libSomething.dll.dylib'. Please file a bug report at http://bugzilla.xamarin.com

I get these errors with a dll generated from a binding of a (native obj-c) static library with XCode 9.2

I'm using Visual Studio 7.2 with Xamarin.iOS 11.6.1.2

I fixed it. The error was in the Static Library, was missing two classes. I've added these two in XCode and then works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM