ios

ipad电脑连接一直不停的断开连接的问题

本人这几天一直折腾这事,度娘所有的办法都试了,什么USB供电啊 什么换原装线啊 ,完全不行。先说USB供电 一般台式电脑很少说有USB供电不足的情况 毕竟最小300W电源。本人电脑500W的电源,机箱有个3.0A的USB接口不存在供电不足,再说换原装线问题这也就忽悠哈新手, 除非你买的不是原装机或者二手机不是原装的其他基本都是。当然不包括奸商打开包装换线 但是这种情况少。能充电就不能同步?这个问题我纠结了很多次!然后我用同一跟线iPhone5 iPhone6S 充电完全没问题啊!

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.

这个问题碰到两次了,现在做一个简单的记录,以后可以直接使用。

问题描述:

iOS15.4.1发布之后,我将系统升级到了最新,然后使用Xcode编译运行时提示如下:

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.

其实主要原因就是iOS系统更新之后,Xcode下没有相应版本的开发调试包,在网上寻找答案时,有的回答是把手机关机,重启之后,就可以了,但是我尝试之后并没有成功,收来在stack overFlow上找到了这个比较靠谱的方法:

首先在iphone开发包地址 下载和你最新系统的开发调试包;

然后将这个包解压到mac的/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/,然后重启Xcode就好了(也许可以不重启,我比较喜欢重启大法?)。

 

修改ios模拟器路径

As of Xcode 11 (released to beta to developers yesterday), we should locate the simulator runtimes located in /Volumes/*/Library/Developer/CoreSimulator/Profiles/Runtimes

I suggest you move them to that location on your spare drive. Doing so while CoreSimulatorService is running will probably confuse its state because we don’t currently handle runtimes vanishing from the root filesystem (we do handle them disappearing due to a disk eject through), so you will probably need to SIGKILL CoreSimulatorService after doing the move by running:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 2> /dev/null

If you don’t want to wait for Xcode 11, you can also just create a symlink from /Library/Developer/CoreSimulator/Profiles to /Volumes/MyHDD/Library/Developer/CoreSimulator/Profiles.

Command CodeSign failed with a nonzero exit code解决方案

Xcode10升级到Xcode11,在真机运行程序出现下面错误

许多博客说清除缓存然后电脑重启就可以解决,这些方案在此处不可行。

 

经过一番折腾,最终解决方案:

关闭Xcode,在钥匙串中找到下面这个证书删除,然后打开Xcode运行,可以成功运行。