Lost connection to device.Exception: Unable to terminate com.examp domain=NSPOSIXErrorDomain, code=3

请查看你ios 文件夹下的这个文件ios/Runner/Info.plist

补上以下代码(权限相关)

<key>NSPhotoLibraryUsageDescription</key>
<string>Allow access to photo library</string>

<key>NSCameraUsageDescription</key>
<string>Allow access to camera to capture photos</string>

<key>NSMicrophoneUsageDescription</key>
<string>Allow access to microphone</string>

问题描述:

点击选择图片之后,出现如下异常

Lost connection to device.
Exception: Unable to terminate com.example.appFlutter on 1A1ACF03-EDCB-4FE9-9BE2-C174FDCC2169:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Simulator device returned an error for the requested operation.
found nothing to terminate
Underlying error (domain=NSPOSIXErrorDomain, code=3):
    The request to terminate "com.example.appFlutter" failed. found nothing to terminate
    found nothing to terminate
  Command: /usr/bin/arch -arm64e xcrun simctl terminate 1A1ACF03-EDCB-4FE9-9BE2-C174FDCC2169 com.example.appFlutter
the Dart compiler exited unexpectedly.

  • 18
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用:这个错误信息表示无法访问指定的GitHub仓库,出现了GnuTLS收到错误的情况,连接没有被正确终止。引用: 参考博客中提到了类似的错误,并提供了解决办法。引用[3]:还有其他资料也提到了解决类似问题的方法。结合这些信息,我们可以尝试以下解决步骤来解决这个问题: 1.***。 3. 尝试使用Git命令行工具来克隆或推送该仓库,看是否会出现相同的错误。如果是,请继续下一步。 4. 检查您的防火墙或代理设置,确保它们不会阻止您与GitHub的连接。 5. 尝试使用其他网络或计算机来访问该仓库,看是否能够成功连接。 6. 如果以上步骤都没有解决问题,您可以尝试联系GitHub支持团队,向他们报告您的问题并寻求帮助。 总之,这个错误可能是由于网络连接问题、URL输入错误、权限问题、防火墙或代理设置问题等引起的。您可以尝试上述步骤来解决该问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [fatal: unable to access ‘https://github.com/xxx‘: GnuTLS recv error (-110): The TLS connection...](https://blog.csdn.net/u011779517/article/details/122798450)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [fatal: unable to access ‘https://github.com/...../‘: gnutls_handshake() failed: The TLS connection...](https://blog.csdn.net/m0_71500261/article/details/128150729)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法](https://download.csdn.net/download/weixin_38502915/12844965)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值