升级到 Flutter 2 后无法在 iPhone 11 Pro 上运行 Flutter App

问题描述

升级Flutter 2,当我在 Android Studio 上的 iPhone 11 Pro 上运行 App 时,出现以下错误。在 Xcode 上运行应用程序工作正常。直到我升级Flutter 2 才出现这个问题。

未能构建 iOS 应用程序 Xcode 构建的错误输出: ↳

2021-03-28 20:58:47.597 xcodebuild[26509:183755] DVTAssertions:警告在 /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKit37m7dk 详细信息:(空)从 00008030-001A5D3221BB802E 的 deviceType 在 -platform 调用时为 NULL。 对象: 方法:-平台 线程:{number = 2,name = (null)} 请在 https://feedbackassistant.apple.com 提交错误并包含此警告消息和您可以提供的任何有用信息。 2021-03-28 20:58:47.815 xcodebuild[26509:184029] DVTAssertions:警告 /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTm3ote7Device1.DKRem3ote 详细信息:(空)从 00008030-001A5D3221BB802E 的 deviceType 在 -platform 调用时为 NULL。 对象: 方法:-平台 线程: {number = 10,name = (null)} 请在 https://feedbackassistant.apple.com 提交错误并包含此警告消息和您可以提供的任何有用信息。 2021-03-28 20:58:47.924 xcodebuild[26509:184029] DVTAssertions:警告 /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTm3ote7Device1.DKRem3ote 详细信息:(空)从 00008030-001A5D3221BB802E 的 deviceType 在 -platform 调用时为 NULL。 对象: 方法:-平台 线程: {number = 10,name = (null)} 请在 https://feedbackassistant.apple.com 提交错误并包含此警告消息和您可以提供的任何有用信息。 2021-03-28 20:59:08.937 xcodebuild[26509:183961] DTDeviceKit:无法从 'DVTFilePath:0x7f988a733370:'/Applications/Xcode.app/Contents/Developer/Platforms/Device/WatchOS7. Developerdiskimage.dmg'',错误=-402653035:错误域=com.apple.dtdevicekit 代码=806“无法为开发准备设备。” UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountimage,NSUnderlyingError=0x7f9889f3f870 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653035“设备拒绝配对尝试。” UserInfo={MobileDeviceErrorCode=(0xE8000095),com.apple.dtdevicekit.stacktrace=( 0 DTDeviceKitBase 0x0000000111769c8f DTDKCreateNSErrorFromAMDErrorCode + 220 1 DTDeviceKitBase 0x00000001117a5e8f -[DTDKMobileDevicetoken _mountDeveloperdiskimage:withError:] + 1024 2 DTDeviceKitBase 0x00000001117a68af __58-[DTDKMobileDevicetoken mountDeveloperdiskimageWithError:]_block_invoke + 609 3 libdispatch.dylib 0x00007fff7266d658 _dispatch_client_callout + 8 4 libdispatch.dylib 0x00007fff726796ec _dispatch_lane_barrier_sync_invoke_and_complete + 60 5 DTDeviceKitBase 0x00000001117a65ec -[DTDKMobileDevicetoken mountDeveloperdiskimageWithError:] + 188 6 IDEiOSSupportCore 0x0000000110f7554c __28-[DVTiOSDevice attachToken:]_block_invoke_5 + 277 7 DVTFoundation 0x0000000100a0517e DVT_CALLING_CLIENT_BLOCK + 7 8 DVTFoundation 0x0000000100a06da0 __DVTdispatchAsync_block_invoke + 1191 9 libdispatch.dylib 0x00007fff7266c6c4 _dispatch_call_block_and_release + 12 10 libdispatch.dylib 0x00007fff7266d658 _dispatch_client_callout + 8 11 libdispatch.dylib 0x00007fff7266f818 _dispatch_continuation_pop + 414 12 libdispatch.dylib 0x00007fff7266ef16 _dispatch_async_redirect_invoke + 703 13 libdispatch.dylib 0x00007fff7267b957 _dispatch_root_queue_drain + 326 14 libdispatch.dylib 0x00007fff7267c097 _dispatch_worker_thread2 + 92 15 libsystem_pthread.dylib 0x00007fff728c79f7 _pthread_wqthread + 220 16 libsystem_pthread.dylib 0x00007fff728c6b77 start_wqthread + 15 ),

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)