Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesnt work on iOS 13 #75

Open
dannythunder opened this issue Sep 26, 2019 · 1 comment
Open

doesnt work on iOS 13 #75

dannythunder opened this issue Sep 26, 2019 · 1 comment

Comments

@dannythunder
Copy link

dannythunder commented Sep 26, 2019

I tried to implement BLE.net in an all new xamarin forms project. Nothing fancy yet, just adding the ble adapter and run. Crash!

Same thing with the example app. Same Crash Report (this one is from the example app):

=================================================================
Native Crash Reporting

Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

=================================================================
Native stacktrace:

0x107c2d730 - /private/var/containers/Bundle/Application/75154E69-ED80-4376-91EB-9BCBFAB42C26/ble.net.sampleapp_ios.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info 0x107c23518 - /private/var/containers/Bundle/Application/75154E69-ED80-4376-91EB-9BCBFAB42C26/ble.net.sampleapp_ios.app/libmonosgen-2.0.dylib : mono_handle_native_crash 0x107c2cbf0 - /private/var/containers/Bundle/Application/75154E69-ED80-4376-91EB-9BCBFAB42C26/ble.net.sampleapp_ios.app/libmonosgen-2.0.dylib : sigabrt_signal_handler 0x18bd22434 - /usr/lib/system/libsystem_platform.dylib : <redacted> 0x18be07f6c - /usr/lib/system/libsystem_kernel.dylib : <redacted> 0x18be07fa0 - /usr/lib/system/libsystem_kernel.dylib : <redacted> 0x19221fd58 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted> 0x19221fc94 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted> 0x192223de4 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted> 0x18bc23804 - /usr/lib/system/libxpc.dylib : <redacted> 0x18bc172c4 - /usr/lib/system/libxpc.dylib : <redacted> 0x18bcc1110 - /usr/lib/system/libdispatch.dylib : <redacted> 0x18bcd8f50 - /usr/lib/system/libdispatch.dylib : <redacted> 0x18bcd0918 - /usr/lib/system/libdispatch.dylib : <redacted> 0x18bd26adc - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread 0x18bd2cc7c - /usr/lib/system/libsystem_pthread.dylib : start_wqthread

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x18be0395c):0x18be0394c c0 03 5f d6 c0 03 5f d6 30 41 80 d2 01 10 00 d4 .._..._.0A...... 0x18be0395c e3 00 00 54 fd 7b bf a9 fd 03 00 91 ed 7e ff 97 ...T.{.......~.. 0x18be0396c bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 c0 03 5f d6 .....{...._..._. 0x18be0397c d0 03 80 d2 01 10 00 d4 e3 00 00 54 fd 7b bf a9 ...........T.{.. 2019-09-26 22:39:27.033 mlaunch[20849:1759277] Thread Pool Worker DTDKRemoteDeviceConnection: Failed to start Instruments daemon on device ???00008020-001A519A2E28002E???: Error Domain=com.apple.dtdevicekit Code=-402653083 "Xcode encountered an error" UserInfo={NSLocalizedFailureReason=Could not connect to the device., com.apple.dtdevicekit.stacktrace=( 0 DTDeviceKitBase 0x000000010b7a0047 DTDKCreateNSError + 109 1 DTDeviceKitBase 0x000000010b7a0749 DTDK_AMDErrorToNSError + 792 2 DTDeviceKitBase 0x000000010b7b166c __63-[DTDKRemoteDeviceConnection startFirstServiceOf:unlockKeybag:]_block_invoke + 301 3 DTDeviceKitBase 0x000000010b7b0e3b __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_3 + 22 4 DTDeviceKitBase 0x000000010b7a2abf __DTDKExecuteInSession_block_invoke_2 + 35 5 DTDeviceKitBase 0x000000010b7a1ef3 __DTDKExecuteWithConnection_block_invoke_2 + 473 6 DTDeviceKitBase 0x000000010b7a1cf1 __DTDKExecuteWithConnection_block_invoke + 106 7 libdispatch.dylib 0x00007fff67eb24de _dispatch_client_callout + 8 8 libdispatch.dylib 0x00007fff67ebe8c2 _dispatch_sync_invoke_and_complete_recurse + 65 9 libdispatch.dylib 0x00007fff67ebe435 _dispatch_sync_f_slow + 195 10 DVTFoundation 0x000000010ac89c60 DVTDispatchBarrierSync + 208 11 DVTFoundation 0x000000010ac61088 -[DVTDispatchLock performLockedBlock:] + 64 12 DTDeviceKitBase 0x000000010b7a1bf2 DTDKExecuteWithConnection + 226 13 DTDeviceKitBase 0x000000010b7a2929 DTDKExecuteInSession + 376 14 DTDeviceKitBase 0x000000010b7b0d70 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_2 + 112 15 DVTFoundation 0x000000010ac879ca __DVT_CALLING_CLIENT_BLOCK__ + 7 16 DVTFoundation 0x000000010ac890a2 __DVTDispatchAsync_block_invoke + 809 17 libdispatch.dylib 0x00007fff67eb1553 _dispatch_call_block_and_release + 12 18 libdispatch.dylib 0x00007fff67eb24de _dispatch_client_callout + 8 19 libdispatch.dylib 0x00007fff67eb7a9e _dispatch_lane_serial_drain + 597 20 libdispatch.dylib 0x00007fff67eb8422 _dispatch_lane_invoke + 363 21 libdispatch.dylib 0x00007fff67ec1aa1 _dispatch_workloop_worker_thread + 598 22 libsystem_pthread.dylib 0x00007fff6810b763 _pthread_wqthread + 290 23 libsystem_pthread.dylib 0x00007fff6810b5c3 start_wqthread + 15 ), DVTRadarComponentKey=487927, NSLocalizedDescription=Xcode encountered an error}

@sharanai
Copy link

You must add the following keys to your Info.plist

<key>NSBluetoothAlwaysUsageDescription</key>
<string>YOUR CUSTOM MESSAGE</string>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants