Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Undefined ObjC class in binding library

$
0
0

I'm working on an existing project and created a binding project for a native iOS library.

I ran Objective Sharpie on the MAC and copied the resulting ApiDefinition and StructsAndEnums to my project. After many link errors, I ended up with this in my linkwith file:
[assembly: LinkWith ("libtemasys.a", LinkTarget.Simulator | LinkTarget.ArmV7, Frameworks = "UIKit CoreVideo CoreMedia AVFoundation Foundation CoreGraphics", ForceLoad = true, SmartLink = true, LinkerFlags = "-ObjC -lc++")].

I also added the --registrar:static to mtouch arguments.

This reduced my error count to 4, but they are all undefined classes that should be in the library. I.e:
Native linking failed, undefined Objective-C class: SKYLINKConnectionConfig. The symbol 'OBJC_CLASS$_SKYLINKConnectionConfig' could not be found in any of the libraries or frameworks linked with your application.

At this point I'm stuck. I don't know where to look to resolve this.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>