Closed adolfo closed 2 years ago
Agent comment from Luce Luo in Zendesk ticket #35150:
Dear Customer,
Thank you for contacting DJI. Sorry about it. Can you please tell me which MSDK version you are using?
Thanks,
Luce Luo DJI Dev Team
@dji-dev we tested with 4.11 and 4.12. This issue should affect all MSDK versions that use the objc_runtime_name
compiler attribute.
Agent comment from Luce Luo in Zendesk ticket #35150:
Dear Customer,
Thank you for contacting DJI. Sorry about it. I will report this issue to the engineer.
Thanks,
Luce Luo DJI Dev Team
This issue has been reported as resolved in Xcode 11.4.1 release notes:
Fixed a crash that could occur in Swift code that imported an Objective-C class defined with the objc_runtime_name attribute. (60888835)
Have not tested this yet, though.
Attempting to access any properties from a
DJISDKVector3D
value, e.g. fromDJIFlightControllerParamAttitude
,DJIFlightControllerParamVelocity
, etc. results in an immediate crash.After some lengthy debugging, we discovered that
DJISDKVector3D
has anobjc_runtime_name
attribute which has an issue in Swift starting with Xcode 11.4 and still unresolved in Xcode 11.5.This is listed in the Xcode 11.4 release notes:
The only workaround at the moment on our end is to rollback to an older Xcode release, however, Apple recommends to update
DJISDKVector3D
to use atypedef
instead of the compiler attribute: