iOS app closes immediately after launch when accessing code from the Binding Library

Viewed 377

I am facing a strange issue. I have converted the Native framework (Serialio RFID reader) into Binding Library and using it in one of my samples. This sample has only one ViewController. Problem is, app launches in Simulator but it closes immediately in the real iPad device, based on if I write the following line or not.

public partial class SViewController : UIViewController
{
    public SViewController (IntPtr handle) : base (handle)
    {
    }

    //If I comment following one line, it launches in the iPad too.
    //If uncomment, app closes immediately after launch.
    //In Simulator this has no issue. It launches.        
    SerialioDeviceManager sdm = SerialioDeviceManager.DefaultManager;

    public override void ViewDidAppear(bool animated)
    {
        base.ViewDidAppear(animated);

        //Even if I comment out above Initialization and write that line here, it doesn't allow app to launch in iPad.
        SerialioDeviceManager sdm = SerialioDeviceManager.DefaultManager;
    }
}

iPad Device Log: enter image description here

Few More Details:

  • App is closed even before this ViewController is called/initialized.
  • This happens in DEBUG as well as RELEASE mode.
  • Supported architecture is ARMv7 + ARM64
  • Linker Behaviour : Link Framework SDKs Only
  • Native SDK sample runs perfectly.
  • This Framework required iPhoneos10.3 SDK while conversion.

EDIT:

Just to update, I am using the following file in the Binding Library.

enter image description here

Am I correct?

I appreciate your help. Thanks.

0 Answers
Related