gentlee
gentlee

Reputation: 3727

Monotouch binding ObjC library

I have an error while building fat binary:

ld: symbol(s) not found for architecture i386 (or arm7 for device)
collect2: ld returned 1 exit status

error MT5202: Native linking failed. Please review the build log.

even if I place only one defenition (AWView) in ApiDefinition. All dependencies were included.

Although, in xcode everything is ok.

Here is a link to github.

P.S. "xcrun -sdk iphoneos lipo -info /...../libAdWired.a" tells that

Architectures in the fat file: libAdWired.a are: i386 armv6 armv7

Upvotes: 3

Views: 235

Answers (2)

dalexsoto
dalexsoto

Reputation: 3412

I had to free my mind, and I love/enjoy doing MonoTouch bindings so please give this a try

https://github.com/dalexsoto/AlexTouch.AdWired

Hope this helps

Alex

Upvotes: 3

Redth
Redth

Reputation: 5544

Try compiling for an actual device which will be targeting armv7 architecture.... Your objc library was not compiled with the i386 architecture in it, probably just armv7. You can see which architectures are compiled in it by going to terminal and using the command:

file libSomeLibrary.a

This will tell you all the architectures in the compiled library. So, simply choose Debug -> iPhone instead of iPhone Simulator and you should not get that same error...

Upvotes: 1

Related Questions