dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
581 stars 255 forks source link

Unit Tests around iOS SDK crash with missing bundle. #255

Open aayers-agrible opened 6 years ago

aayers-agrible commented 6 years ago

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

2018-05-17 11:37:38.825662-0500 xctest[38291:1047272] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBundle initWithURL:]: nil URL argument' *** First throw call stack: ( 0 CoreFoundation 0x0000000109ed21e6 __exceptionPreprocess + 294 1 libobjc.A.dylib 0x000000010916d031 objc_exception_throw + 48 2 CoreFoundation 0x0000000109f47975 +[NSException raise:format:] + 197 3 Foundation 0x00000001089ffdbd -[NSBundle initWithURL:] + 87 4 Foundation 0x00000001089ffd53 +[NSBundle bundleWithURL:] + 45 5 DJISDK 0x0000000124312d59 GlobalAreaRadiusFetch + 15083 6 libdispatch.dylib 0x0000000110620779 _dispatch_client_callout + 8 7 libdispatch.dylib 0x00000001106265dd _dispatch_continuation_pop + 500 8 libdispatch.dylib 0x000000011062f2f7 _dispatch_source_invoke + 1578 9 libdispatch.dylib 0x0000000110627ffd _dispatch_queue_serial_drain + 298 10 libdispatch.dylib 0x00000001106289af _dispatch_queue_invoke + 321 11 libdispatch.dylib 0x000000011062acf8 _dispatch_root_queue_drain + 473 12 libdispatch.dylib 0x000000011062aac1 _dispatch_worker_thread3 + 119 13 libsystem_pthread.dylib 0x0000000110b3c169 _pthread_wqthread + 1387 14 libsystem_pthread.dylib 0x0000000110b3bbe9 start_wqthread + 13 )

lijia6745 commented 5 years ago

Did you resolve your issue with new version? if not, pls report the issue to dev@dji.com it's the official channel to request DJI SDK support now.