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

Cannot execute code in Swift bindings framework

$
0
0

I am able to successfully create a bindings framework and build & run a Xamarin app that references code in the Swift framework. (I did this using several of the excellent references for binding to a Swift framework: building the fat binary, using objective sharpie, etc.) Originally, the app crashed at launch. That turned out to be that one of the Swift libraries I needed was missing. Now the app launches and displays the UI I've built in the storyboard. But when I attempt to execute a method in the framework fromviewDidLoad in ViewController.cs nothing happens! I have confirmed in the debugger that it is getting to the call site inside of viewDidLoad where it calls a method from my framework.

I noticed that when I run the app in the iPhone Simulator, I see a bunch of messages like this in the macOS console from a process named amfid:

...CLPExample.app/Frameworks/libswiftos.dylib signature not valid: -67050

There is such a message for every one of the Swift-related libraries included in the app. There is also such a message for my bindings framework.

When I run the app on my iPhone, it behaves in a similar manner (nothing happens when I call a method from the framework). However, I also do not see the "signature not valid" messages.

I'm completely stumped at this point. Does anyone have any thoughts on what might be going on here?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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