Open danei opened 1 year ago
Probs a violation between the new iOS version with iOS MSDK v4.16.2. Unfortunately, there is no iOS dev team for iOS MSDK anymore so I would suggest you downgrade the iOS device for the work around.
I downgraded to 15.6RC (the only signed IPSW option) but still got same error.
OK further investigation. The problem is wired. Just took a look on RC info which I thought trivial:
CoreAccessories accessoryInfo for arrival = {
ACCExternalAccessoryPPIDKey = "<null>";
ACCExternalAccessoryPrimaryUUID = "E1EE500F-09D7-41A2-976B-6EB8C7CD669D";
ACCExternalAccessoryProtocolDetailsKey = {
"com.dji.common" = {
ACCExternalAccessoryMatchAction = 1;
ACCExternalAccessoryProtocolEndpointUUID = "1071CBD7-758E-4713-AED8-619615CDF9CD";
ACCExternalAccessoryProtocolIndex = 0;
ACCExternalAccessoryProtocolType = 2;
ACCExternalAccessorySessionUsesSocketInterfaceKey = 1;
};
};
ACCExternalAccessoryRegionCodeKey = "<null>";
IAPAppAccessoryCapabilitiesKey = 1;
IAPAppAccessoryCertDataKey = "908 bytes";
IAPAppAccessoryCertSerialNumberKey = "15 bytes";
IAPAppAccessoryDockTypeKey = "";
IAPAppAccessoryFirmwareRevisionKey = "v2.0.0.7";
IAPAppAccessoryFirmwareRevisionPendingKey = "<null>";
IAPAppAccessoryHardwareRevisionKey = "v1.0.0.0";
IAPAppAccessoryManufacturerKey = DJI;
IAPAppAccessoryModelNumberKey = GL300B;
IAPAppAccessoryNameKey = C1;
IAPAppAccessoryProtocolsKey = {
"com.dji.common" = 0;
};
IAPAppAccessorySerialNumberKey = 0CKJ2042CV;
IAPAppAccessoryTransportType = 8;
IAPAppAccessoryVehicleInfoInitialDataKey = {
};
IAPAppConnectionIDKey = 42964521;
}
The Phantom 4 pro controller is GL300F, I can confirm that on sticker, not GL300B. So I tried DJI Go 4 with remote only, and it detects Inspire 2...
Something wrong with the RC.
Bought another RC, same weired output (showed GL300B rather than GL300F) but sample didn't crash...
Tried on ipad mini 5 @ iPadOS 16.3 & iphone 12 pro max @ iOS 16.2. Both crash upon device (phantom 4 pro or its remote only) is connected. I don't recall such issue before iOS update. Crash point is AppDelegate
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
Vanilla iOS mobile SDK 4.16.2 except setting app key.
Here's lldb output:
This could related to #540 except it points to main thread.