Binding works on Emulator not on iPhone

ClementPohClementPoh Member ✭✭
edited March 19 in Xamarin.iOS

I used sharpie pod to try to bind MarketingCloudSDK, similar to this. It seems to work on the Emulator, although I do get an error that looks like it might be related to the SDK. So I wanted to try it on actual iPhone.

However when I try to run it on the iPhone I get this:

Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: Cannot create an NSPersistentStoreCoordinator with a nil model

I've seen this discussion.

With a really long stack trace. It looks like it may be related linking frameworks. The linkwith.cs file was not created when I added the fat file to the project. But it looks like I can do this on the properties of the file.

How do I know which frameworks should be linked?

Tagged:

Best Answer

  • ClementPohClementPoh ✭✭
    Accepted Answer

    FYI, this wasn't because of the Frameworks. This was because I hadn't copied the Bundle in to the project. So I added the Bundle as a folder to the project, and now it works

Answers

  • ClementPohClementPoh Member ✭✭
    Accepted Answer

    FYI, this wasn't because of the Frameworks. This was because I hadn't copied the Bundle in to the project. So I added the Bundle as a folder to the project, and now it works

Sign In or Register to comment.