Bug when uploading app to real Apple Watch - swift

I am trying to upload my independent watchOS App on my real Apple Watch series 5, but I am having a problem. I am receiving a issue that I telling me:
Unable to install "FirstTestWatch WatchKit App"
Domain: com.apple.dtdevicekit
Code: -402620395
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620395
Failure Reason: A valid provisioning profile for this executable was not found.
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001261406e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000126140de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x000000012618056a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010d00bc22 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000126180301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
5 IDEiOSSupportCore 0x0000000126008a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x000000010d13ce8a __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x000000010d13e562 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff70480583 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff7048150e _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff70486ace _dispatch_lane_serial_drain + 597
11 libdispatch.dylib 0x00007fff70487452 _dispatch_lane_invoke + 363
12 libdispatch.dylib 0x00007fff70490a9e _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff706db6fc _pthread_wqthread + 290
14 libsystem_pthread.dylib 0x00007fff706da827 start_wqthread + 15
);
}
--
I am trying to figure out the problem, but I am having difficulties. The Apple Watch is with watchOS 6.1.1, MAC BOOK - macOS Catalina 10.15.2 and Xcode 11.3. Thank you!

I solved this problem today after getting stuck for two days.
Download watchOSLogging.mobileconfig to the paired iPhone and install it.

Related

Crashing when asking audio permission in iPhone 6s, iPhone 8 plus and iPhone XR

In iPhone 6s, iPhone 8 plus and iPhone XR with iOS 14.8.1 and 15.3.1, app is crashing when click on audio button. At this time it is asking permission. I followed same as documentation and working well in remaining iOS and Android devices. Crashing in specifi devices. Here is the crash log.
Incident Identifier: F071C05E-F3FC-4DE5-8901-1B3D6E7D3CEA
Hardware Model: iPhone10,2
Process: Runner [1527]
Path: /private/var/containers/Bundle/Application/97DA3EBA-C4B5-4CE1-9240-2DE88A83F645/Runner.app/Runner
Identifier: com.myapp.app
Version: 100 (1.0)
AppStoreTools: 13E500
AppVariant: 1:iPhone10,2:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.myapp.app [818]
Date/Time: 2022-04-15 13:39:09.4154 +0530
Launch Time: 2022-04-15 13:38:30.5858 +0530
OS Version: iPhone OS 14.8.1 (18H107)
Release Type: User
Baseband Version: 6.71.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18ec88928 __exceptionPreprocess + 216 (NSException.m:199)
1 libobjc.A.dylib 0x1a2a27480 objc_exception_throw + 56 (objc-exception.mm:565)
2 CoreFoundation 0x18eb96380 +[NSException raise:format:arguments:] + 96 (NSException.m:146)
3 Foundation 0x18feceef8 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 128 (NSException.m:231)
4 Flutter 0x10463c138 -[FlutterStandardMethodCodec encodeErrorEnvelope:] + 196
5 Flutter 0x1046390d0 __45-[FlutterMethodChannel setMethodCallHandler:]block_invoke_2 + 136
6 flutter_audio_recorder2 0x103bdf3e8 $syXlSgIeyBy_ypSgIegn_TR + 160 (:0)
7 flutter_audio_recorder2 0x103bdf3e8 specialized SwiftFlutterAudioRecorder2Plugin.handle(:result:) + 7176 (SwiftFlutterAudioRecorder2Plugin.swift:93)
8 flutter_audio_recorder2 0x103bdc400 $s23flutter_audio_recorder232SwiftFlutterAudioRecorder2PluginC6handle_6resultySo0E10MethodCallC_yypSgctF015$syXlSgIeyBy_ypO7Iegn_TRyXlSgIeyBy_Tf1ncn_n + 16 (:0)
9 flutter_audio_recorder2 0x103bdc400 #objc SwiftFlutterAudioRecorder2Plugin.handle(_:result:) + 84
10 Flutter 0x104639038 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 116
11 Flutter 0x10416dd08 flutter::PlatformViewIOS::HandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_deleteflutter::PlatformMessage >) + 516
12 Flutter 0x1044ffcc4 std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnEngineHandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_delete<flutter::PlatformMes... + 92
13 Flutter 0x104427c10 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 1668
14 Flutter 0x10442b1dc fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
15 CoreFoundation 0x18ec087a8 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28 (CFRunLoop.c:1807)
16 CoreFoundation 0x18ec083a8 __CFRunLoopDoTimer + 1016 (CFRunLoop.c:2415)
17 CoreFoundation 0x18ec0787c __CFRunLoopDoTimers + 324 (CFRunLoop.c:2575)
18 CoreFoundation 0x18ec01bb4 __CFRunLoopRun + 1948 (CFRunLoop.c:3090)
19 CoreFoundation 0x18ec00ed0 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3242)
20 GraphicsServices 0x1a534c570 GSEventRunModal + 160 (GSEvent.c:2259)
21 UIKitCore 0x19152e2d0 -[UIApplication _run] + 1052 (UIApplication.m:3269)
22 UIKitCore 0x19153384c UIApplicationMain + 164 (UIApplication.m:4740)
23 Runner 0x1029f4f38 main + 64 (AppDelegate.swift:7)
24 libdyld.dylib 0x18e8df140 start + 4
I am using flutter_audio_recorder2: ^0.0.2 and stable version of flutter (2.10.3).
I was asking NSMicrophoneUsageDescription permission also and added in info.plist file.
Please suggest me on this.
I got the exact issue. We are using .wav audio format which is not supported by some devices like iPhone 8+, iPhone XR etc. After changing to audio format as .aac, crash issue solved. Below is the line of code.
FlutterAudioRecorder2 _recorder =
FlutterAudioRecorder2(customPath,audioFormat: AudioFormat.AAC); //.wav
is not supporting in iphone 8 plus and iphone X

Error when building Flutter v2.8.1 iOS app on M1 MacBook. : error=-402652958: Error Domain=com.apple.dtdevicekit Code=806

I am developing a Flutter v2.8.1 app on M1 MacBook.
There is a problem when building with iOS.
I've tried all sorts of ways for a long time, but nothing works.
The same project builds fine on Intel MacBook.
I also ran the command below.
> sudo gem install ffi
> sudo gem install cocoapods
When building for iOS, the following error occurs.
Launching lib/main.dart on iPhone 13 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 42.9s
Failed to build iOS app
Error output from Xcode build:
↳
2022-02-24 16:35:23.257 xcodebuild[41435:8807886] DTDeviceKit: Failed to mount DDI from '<DVTFilePath:0x6000004a8000:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0/DeveloperDiskImage.dmg'>', error=-402653066: Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x600003838c00 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 "Could not support development." UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.}
2022-02-24 16:35:23.260 xcodebuild[41435:8807886] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x600003838c00 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 "Could not support development." UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.}) {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedDescription = "Failed to prepare device for development.";
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
NSLocalizedRecoverySuggestion = "If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.";
NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 \"Could not support development.\" UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272\n\t1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912\n\t2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564\n\t3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20\n\t4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56\n\t5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168\n\t6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148\n\t7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16\n\t8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564\n\t9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32\n\t10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20\n\t11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656\n\t12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596\n\t13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396\n\t14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164\n\t15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228\n\t16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8\n), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}";
}
2022-02-24 16:35:23.260 xcodebuild[41435:8807867] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> -- An error occurred whilst preparing device for development -- Failed to prepare device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
}
--
Could not support development.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653066
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000076)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
);
}
--
2022-02-24 16:35:23.260 xcodebuild[41435:8807867] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> == Underlying device preparation errors ==
2022-02-24 16:35:23.260 xcodebuild[41435:8807867] [MT] iPhoneConnect: Failed to prepare device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
}
--
Could not support development.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653066
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000076)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
);
}
--
2022-02-24 16:35:23.260 xcodebuild[41435:8807867] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> == END: Underlying device preparation errors ==
2022-02-24 16:35:23.892 xcodebuild[41435:8807886] DTDeviceKit: Failed to mount DDI from '<DVTFilePath:0x6000004a8000:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0/DeveloperDiskImage.dmg'>', error=-402653066: Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x600003b0c840 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 "Could not support development." UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.}
2022-02-24 16:35:23.892 xcodebuild[41435:8807886] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x600003b0c840 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 "Could not support development." UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912
2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564
3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56
5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148
7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564
9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656
12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228
16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8
), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.}) {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedDescription = "Failed to prepare device for development.";
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
NSLocalizedRecoverySuggestion = "If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.";
NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653066 \"Could not support development.\" UserInfo={MobileDeviceErrorCode=(0xE8000076), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x0000000107436ff8 DTDKCreateNSErrorFromAMDErrorCode + 272\n\t1 DTDeviceKitBase 0x00000001074703bc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 912\n\t2 DTDeviceKitBase 0x0000000107470db0 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 564\n\t3 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20\n\t4 libdispatch.dylib 0x0000000182519e00 _dispatch_lane_barrier_sync_invoke_and_complete + 56\n\t5 DTDeviceKitBase 0x0000000107470b20 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168\n\t6 IDEiOSSupportCore 0x000000010e839070 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 148\n\t7 DVTFoundation 0x0000000102116238 __DVT_CALLING_CLIENT_BLOCK__ + 16\n\t8 DVTFoundation 0x0000000102119ba8 __DVTDispatchGroupAsync_block_invoke + 564\n\t9 libdispatch.dylib 0x0000000182508e60 _dispatch_call_block_and_release + 32\n\t10 libdispatch.dylib 0x000000018250abac _dispatch_client_callout + 20\n\t11 libdispatch.dylib 0x000000018250e118 _dispatch_continuation_pop + 656\n\t12 libdispatch.dylib 0x000000018250d6dc _dispatch_async_redirect_invoke + 596\n\t13 libdispatch.dylib 0x000000018251c31c _dispatch_root_queue_drain + 396\n\t14 libdispatch.dylib 0x000000018251cb58 _dispatch_worker_thread2 + 164\n\t15 libsystem_pthread.dylib 0x00000001826c5574 _pthread_wqthread + 228\n\t16 libsystem_pthread.dylib 0x00000001826c42c4 start_wqthread + 8\n), DVTRadarComponentKey=261622, NSLocalizedDescription=Could not support development.}";
}
2022-02-24 16:35:23.893 xcodebuild[41435:8807867] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x1168722b0), Raymond’s iPhone13, iPhone, 15.4 (19E5219e), 00008110-001C3DD93A29801E> -- An error occurred whilst preparing device for development -- Failed to prepare device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
}
--
=========================== skip the middle ============================
warning: Stale file '/Users/gracegyu/Documents/Azure/cleverpam/build/ios/Debug-iphonesimulator/image_picker/image_picker.framework/Headers/FLTImagePickerPlugin_Test.h' is located outside of the allowed root paths.
warning: Stale file '/Users/gracegyu/Documents/Azure/cleverpam/build/ios/Debug-iphonesimulator/Runner.app.dSYM/Contents/Resources/DWARF/Runner' is located outside of the allowed root paths.
warning: Stale file '/Users/gracegyu/Documents/Azure/cleverpam/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/device_info_plus.framework' is located outside of the allowed root paths.
warning: Stale file '/Users/gracegyu/Documents/Azure/cleverpam/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/integration_test.framework' is located outside of the allowed root paths.
warning: Stale file '/Users/gracegyu/Documents/Azure/cleverpam/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/share_plus.framework' is located outside of the allowed root paths.
note: Removed stale file '/Users/gracegyu/Library/Developer/Xcode/DerivedData/Runner-gpddwqgzjbasxveiquubzegvfqbi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PromisesObjC.build/Script-61624EEA4A085137B50822CDE34252BB.sh'
/Users/gracegyu/Documents/Azure/cleverpam/ios/Runner.xcodeproj: warning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/gracegyu/Documents/Azure/cleverpam/ios/Runner/Info-Debug.plist'. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 13.
The result of "flutter doctor -v" is below.
Even if you connect the iPhone real device, it cannot be connected. Xcode doesn't work on iPhone either. I've tried everything, but I can't connect.
It was connected until yesterday, but from today it suddenly cannot connect.
[✓] Flutter (Channel dev, 1.26.0-1.0.pre, on macOS 12.0.1 21A559 darwin-arm, locale en-KR)
• Flutter version 1.26.0-1.0.pre at /Users/gracegyu/dev/flutter
• Framework revision 63062a6443 (1 year, 2 months ago), 2020-12-13 23:19:13 +0800
• Engine revision 4797b06652
• Dart version 2.12.0 (build 2.12.0-141.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/gracegyu/Library/Android/sdk
• Platform android-31, build-tools 32.0.0
• ANDROID_HOME = /Users/gracegyu/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.1, Build version 13A1030d
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
[✓] VS Code (version 1.64.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0
[✓] Connected device (4 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 12 (API 31) (emulator)
• iPhone 13 (mobile) • 37B922DB-CECE-4299-AFBC-86A1AD5680E2 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.0.1 21A559 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
! Error: Unable to prepare Raymond’s iPhone13 for development. (code -1)
This is because the version of XCode does not support the version of iOS installed on the iPhone. Just update XCode.

iphone - how to understand crash logs on device

I have this logs of a crash that seems to be connected to a mkmapview and the auto lock of my device (1 min):
T
hread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b6bd350 __pthread_kill + 8
1 libsystem_c.dylib 0x3b63411e pthread_kill + 54
2 libsystem_c.dylib 0x3b67096e abort + 90
3 libc++abi.dylib 0x3ac0ed4a abort_message + 70
4 libc++abi.dylib 0x3ac0bff4 _ZL17default_terminatev + 20
5 libobjc.A.dylib 0x3b1bfa74 _ZL15_objc_terminatev + 144
6 libc++abi.dylib 0x3ac0c078 _ZL19safe_handler_callerPFvvE + 76
7 libc++abi.dylib 0x3ac0c110 std::terminate() + 16
8 libc++abi.dylib 0x3ac0d594 __cxa_rethrow + 84
9 libobjc.A.dylib 0x3b1bf9cc objc_exception_rethrow + 8
10 CoreFoundation 0x33460f1c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x33460d44 CFRunLoopRunInMode + 100
12 GraphicsServices 0x370242e6 GSEventRunModal + 70
13 UIKit 0x353762fc UIApplicationMain + 1116
14 FT105RF 0x0007cbb8 main (main.m:16)
15 libdyld.dylib 0x3b5f6b1c start + 0
Can someone helps me to understand which lines of logs can be helpful for me?
Thank you
you may find some useful answers here:
XCode 4 - IPhone Dev - Good Debug Tutorial
reading the lines you show is not the easiest and most convenient way of debugging, so these tutorials might help you doing it another way.
hope i helped

Crash in ios 6 and later -[MKStoreManager provideContent:forReceipt:]

I have my app live which is non-consumable type.
App is crashing on iOS 6 and later. It is crashing on user's device but not on testing device.
Crash log says this:
Exception Type: SIGTRAP
Exception Codes: #0 at 0x3350316c
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x3350316c _CFHash + 8
1 CoreFoundation 0x00002b50 CFBasicHashFindBucket + 1892
2 CoreFoundation 0x33503a8b _CFDictionaryGetValue + 83
3 CoreFoundation 0x0004a7a7 -[CFXPreferencesPropertyListSource setValue:forKey:] + 39
4 CoreFoundation 0x0004a723 _CFXPreferencesSetValue + 135
5 CoreFoundation 0x3354a601 _CFPreferencesSetAppValue + 41
6 Foundation 0x00009907 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 83
7 myAppName 0x00038287 -[MKStoreManager provideContent:forReceipt:] (MKStoreManager.m:311)
8 myAppName 0x000387b1 -[MKStoreObserver restoreTransaction:] (MKStoreObserver.m:88)
9 myAppName 0x000385e1 -[MKStoreObserver paymentQueue:updatedTransactions:] (MKStoreObserver.m:64)
10 StoreKit 0x0000404d __NotifyObserverAboutChanges + 85
11 CoreFoundation 0x3350874d _CFArrayApplyFunction + 177
12 StoreKit 0x00003fe9 -[SKPaymentQueue _notifyObserversAboutChanges:sendUpdatedDownloads:] + 129
13 StoreKit 0x000048af -[SKPaymentQueue _processUpdates:trimUnmatched:sendUpdatedDownloads:] + 999
14 StoreKit 0x00004f8d -[SKPaymentQueue _setTransactionsWithReply:] + 157
15 StoreKit 0x00003b8b __block_global_0 + 63
16 libdispatch.dylib 0x0000211f _dispatch_call_block_and_release + 11
17 libdispatch.dylib 0x000014b7 _dispatch_client_callout + 23
18 libdispatch.dylib 0x000061bd _dispatch_main_queue_callback_4CF$VARIANT$mp + 225
19 CoreFoundation 0x00095f3b __CFRunLoopRun + 1291
20 CoreFoundation 0x33508ebd _CFRunLoopRunSpecific + 357
21 CoreFoundation 0x33508d49 _CFRunLoopRunInMode + 105
22 GraphicsServices 0x370bb2eb _GSEventRunModal + 75
23 UIKit 0x3541e301 _UIApplicationMain + 1121
24 myAppName 0x0000260f main (main.m:20)
This app supports iOS 4.3 and later.
I have tried in many ways but can't find proper solution. Anyone have any idea how I resolve this? Should I use some other code for in-app purchase?

app crashes right after splash screen in xcode 4 / ios 5 beta

i am having problems with the new xcode 4.2 and beta ios 5. My app compiles and works in Debug mode both on the simulator and a device. When i build an adhoc build, archive it and install it on the device - the app crashes right after the splash screen giving me the following stack (which may be different at times, but always deriving right from main.m):
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x33b8932c __pthread_kill + 8
1 libsystem_c.dylib 0x33a17f58 pthread_kill + 48
2 libsystem_c.dylib 0x33a10fe8 abort + 88
3 libc++abi.dylib 0x34d0df64 abort_message + 40
4 libc++abi.dylib 0x34d0b346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x378452dc _objc_terminate + 140
6 libc++abi.dylib 0x34d0b3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x34d0b44a std::terminate() + 14
8 libc++abi.dylib 0x34d0c81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x3784522e objc_exception_rethrow + 6
10 CoreFoundation 0x31538546 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x315383a6 CFRunLoopRunInMode + 98
12 UIKit 0x3462ead8 -[UIApplication _run] + 544
13 UIKit 0x3462bdc0 UIApplicationMain + 1084
14 tflow3 0x001122fe main (main.m:14)
15 tflow3 0x0005ed94 0x5d000 + 7572
Since the app works when debugged on the device i guess (and hope) my adhoc release configuaration has something going wrong. I'd appreciate any help.