我面临一个奇怪的问题。我已将Native框架(Serialio RFID reader)转换为Binding Library并在我的一个示例中使用它。此示例只有一个ViewController。问题是,应用程序在模拟器中启动,但它会立即在真正的iPad设备中关闭,基于我是否写下以下行。
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;
}
}
更多细节:
DEBUG
以及RELEASE
模式。ARMv7 + ARM64
修改
只是要更新,我在绑定库中使用以下文件。
我说错了吗?
感谢您的帮助。感谢。