3

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.

MilanG
  • 2,551
  • 16
  • 24
  • It seems like your framework doesn't support real device ,check it by `lipo -info yourlib.a` , and what does this word mean `Supported architecture is ARMv7 + ARM64` ,is it for the Project or framework? – ColeX Nov 21 '17 at 03:19
  • @ColeXia : Thanks for your response. Architectures in the fat file are: armv7 arm64. The one which I mentioned is the Architecture which I set in the Visual Studio for Mac for the Sample Project, iOS Build setting which uses the binding library. – MilanG Nov 21 '17 at 07:10
  • It's weird , Architecture `armv7+ arm64` is used to real device.... but it works on the simulator instead of your ipad.. – ColeX Nov 21 '17 at 07:26
  • Yeah it's weird. I have Edited my Question, just to make sure If I am correct in a way using the .a File from inside the Framework. – MilanG Nov 21 '17 at 07:37

0 Answers0