Description of the issues.
Unit test suite around my flight code crashes. I have the DJI SDK installed via cocoapods into a library that my app consumes. This library has a suite of unit tests around my flight planning and control code. Those unit tests now crash randomly, with the stack trace provided below. Every time the crash happens, I see two queues, com.dji.flysafe.applimitdb and com.dji.flysafe.djiflightlimitdb operating. It seems as if those operations are getting started during my unit tests when I touch the DJISDKManager, and are failing to load a bundle that they need?
I have already tried putting the SDK manager into 'local data mode' for the tests, but it seemingly doesn't stop the queue from running.
My Podfile is pretty standard for this lib and tests:
target 'FlightLibrary' do
project './core/FlightLibrary/FlightLibrary.xcodeproj'
basePods
pod 'DJI-SDK-iOS', '~> 4.5.1'
target 'FlightLibraryTests' do
inherit! :search_paths
testPods
end
Steps to reproduce the bug or crash issues:
Install podfile, run tests. Different tests are interrupted each time by this crash and report as failing.
com.dji.flysafe.applimitdb
andcom.dji.flysafe.djiflightlimitdb
operating. It seems as if those operations are getting started during my unit tests when I touch the DJISDKManager, and are failing to load a bundle that they need?I have already tried putting the SDK manager into 'local data mode' for the tests, but it seemingly doesn't stop the queue from running.
My Podfile is pretty standard for this lib and tests: