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.

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

参考

目录
打赏
0
0
0
0
41
分享
相关文章
已上架的App在AppStore上无法搜索到的问题
已上架的App在AppStore上无法搜索到的问题
458 0
已上架的App在AppStore上无法搜索到的问题
pycharm使用debug的时候遇到断点不停的问题
pycharm使用debug的时候遇到断点不停的问题
955 0
如何解决Swift混编的module编译错误
前言很多iOS工程都是基于Object-C开发,再逐步向Swift演进,演进过程中不可避免要进行Swift混编。Swift模块需要支持LLVM Module规范,混编工程会遇到各种Module编译错误。这对于不熟悉的同学来说简直是灾难,严重影响开发效率。本文会介绍常见的Module编译错误,希望对大家有所帮助。常见错误1:Could not build module xxx当一个OC模块引用了Sw
7237 1
如何解决Swift混编的module编译错误
iOS八种内存泄漏问题
循环引用(Retain Cycle) 先简单说一下什么是循环引用(retain cycle) ​假设我们有两个实例A和B,B是A的一个strong型的property,则B的引用计数是1,当A的需要释放的时候,A则会调用[B release]来释放B,B的引用计数则减为0,释放。
2350 0
React、Vue.js 和 Angular前端三大框架对比与选择
前端框架是用于构建用户界面的工具和库,它提供组件化结构、数据绑定、路由管理和状态管理等功能,帮助开发者高效地创建和维护 web 应用的前端部分。常见的前端框架如 React、Vue.js 和 Angular,能够提高开发效率并促进团队协作。
448 4
开发一款专属的 VSCode 代码提示插件
作为前端开发者一定用过VsCode这款利器,而其强大的插件能力无疑更是让我们深深的爱上了它。据不完全统计,VsCode插件市场中的插件数量已经超过了3万,由此可见大家的热情有多高。其中涉及到各种各样功能的插件,有主题曲相关的,有代码开发相关的,比如代码片段、Git插件、tslint等等。作为开发者,肯定用过各种各样的代码提示的插件,代表性的有TabNine、Copilot等等。今天就让我们来自己动手,开发一款专属的代码提示插件。毕竟别人的再好也是别人的, 属于自己的才是最好的。
3086 1
开发一款专属的 VSCode 代码提示插件
iOS音视频入门AVAudioSession
`AVAudioSession`是苹果用来管理App对音频硬件(I / O)的资源使用;比如说: - 设置APP与其他APP是否混音,或者中断、降低其他App声音 - 手机静音下,APP是否可以播放声音 - 指定音频输入或者输出设备 - 是否支持APP录制,是否可以边录制边播放 - 声音中断的优先级(电话接入中断APP音频处理)
iOS音视频入门AVAudioSession
AI助理
登录插画

登录以查看您的控制台资源

管理云资源
状态一览
快捷访问

你好,我是AI助理

可以解答问题、推荐解决方案等