Instrument启动按钮不可点

前言

本来想要体验体验怎么通过Instrument中的Core Animation来看看FPS的,可是今天突然发现我的手机选择了但是那个启动按钮被置为不可点击的状态。

这里将所遇到的问题记录下来,也许下一个遇到同样的问题的人,就是你!

尝试的过程

真是讨厌死了,我的手机怎么会不能使用呢?难道是我的手机版本太低?于是我尝试将手机升级到了9.2(之前是9.0.1),结果还是一样。

当我想要切换为我的测试手机时,弹出了一个窗口提示:

image

这是什么鬼?遇到这个问题,当然第一反映是点击Open Xcode了,点击了之后没有反映。起初还以为是要等待一会,结果等了好久还是没有反映。然后再试一次,结果还是一样。

于是,我尝试将连接拔掉,然后手机关机、重启,同时将Xcode关掉,然后重新打开Xcode,然后重新将手机与电脑连接,再打开Instrument,点击Core Animation,切换到当前的手机,发现可以正常点击了。

解决方法

若遇到与笔者同样的问题,请尝试手机重启,Xcode重启,手机重新连接电脑。

后来,我在StackOverFlow上搜索到解决方案,如下:

  • Unplug the device from your Mac & power down the device completely (hold the power button for several seconds; slide to power off).
  • Close Xcode and Instruments.
  • Restart the device & once it has booted completely re-connect it to your Mac.
  • Re-launch Xcode. Here, my device showed as disabled and Xcode indicated that the device was not available for use.
  • Open your project; clean (Shift+Command+K), Build (Command+B), Profile (Command+I).
  • After Instruments launched I noticed that the device was enabled. Upon selecting it, a message was displayed with the title Enable this device for development? and message This will open Xcode and enable this device for development. (Note that this only happened to me the first time I went through this process even though I had already been using the device for development – whereas some users have also reported that they are not presented with this dialogue.) Enable this device for development?
  • Click Open Xcode. Here Xcode did not prompt me for anything nor was anything displayed – no additional messages indicating anything had been done or that the device was or was not available for development. Opening the Devices window, the device appeared to be available. (I have not been presented with this option for subsequent occurrences.)
  • Now I was able to select the device in Instruments and profile it.

其实上面所描述的与笔者的尝试方法是一样的。所以,大家在遇到问题的时候,要先尝试去解决。

参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值