iis服务器助手广告广告
返回顶部
首页 > 资讯 > 移动开发 >Xcode真机运行报错:Failed to prepare the device for development解决方法
  • 201
分享到

Xcode真机运行报错:Failed to prepare the device for development解决方法

xcodemacos 2023-09-01 06:09:33 201人浏览 八月长安
摘要

一、遇到的问题         运行Xcode然后打包APP,结果Xcode报错,如下: Failed to prepare the device for development. This operation can fail if th

一、遇到的问题

        运行Xcode然后打包APP,结果Xcode报错,如下:

Failed to prepare the device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.

二、原因

        Xcode     Version 14.2 (14C18)

        iOS          16.4.1(a)

        最近手机自动升级了版本,造成Xcode不兼容,需要处理一下。

三、增加Xcode系统支持

          

进入 iOSDeviceSupport  项目(或者Github

下载你需要支持的系统文件

然后再启动台的「其他」文件夹打开终端,输入

open /Applications/Xcode.app/Contents/Developer/PlatfORMs/iPhoneOS.platform/DeviceSupport

 然后新建一个文件夹,例如我是16.4,我就新建一个16.4文件夹

 之后将解压好的内容全部粘贴进去。

然后重启Xcode。

如果还不行,请重启手机。

 

来源地址:https://blog.csdn.net/saperliu/article/details/130690977

--结束END--

本文标题: Xcode真机运行报错:Failed to prepare the device for development解决方法

本文链接: https://www.lsjlt.com/news/387594.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作