内存分析不适用于Xcode 9 [英] Memory profiling doesn't work with Xcode 9
问题描述
我使用的是最新版本的Xcode 9和macOS 10.13。
I am using the latest version of Xcode 9 and macOS 10.13.
当我尝试从应用程序的当前状态创建内存图时,它显示了空白屏幕上显示无选择。
When I try to make a memory graph from the current state of my application, it shows an empty screen that says No Selection.
我也尝试过配置和使用Instruments,但由于权限错误,它不允许我运行。
I also tried to profile and work with Instruments, but it did not allow me to run due to a permission error.
目标无法运行。
Target failed to run.
调试[app name]的权限被拒绝。
Permission to debug [app name] was denied.
我了解这些主题并尝试了其中提供的建议,但似乎无法正常工作:
I am aware of these threads and tried the suggestions available in them, but they didn't seem to work:
- Reddit - 由于权限被拒绝错误,Xcode 9中的仪器是否停止工作?有解决方法吗?
- Apple开发人员论坛 - Xcode 9 - 工具权限被拒绝
- Stack Overflow - 为什么我得到乐器 - 目标无法运行?
- 堆栈溢出 - 无法在仪器中启动我的应用程序:至少一个目标无法启动
- Reddit - Has instruments stopped working for you in Xcode 9 due to a permission denied error? Is there a workaround for this?
- Apple Developer Forums - Xcode 9 - Instruments permission denied
- Stack Overflow - Why do I get instruments - "Target failed to run"?
- Stack Overflow - Can't launch my app in Instruments: At least one target failed to launch
我尝试过的事情:
- 重新启动Xcode
- 清空派生数据文件夹
- 清理项目
- 清理Build文件夹
- 将方案的应用程序环境修改为Debug而不是Release
- 手动管理配置文件并选择调试和发布的开发配置文件
- 尝试使用不同操作系统版本的模拟器(iOS 11,iOS 10)
- Restarting Xcode
- Emptying the Derived Data folder
- Cleaning the project
- Cleaning the Build folder
- Modifying the scheme's application environment to Debug instead of Release
- Manually managing provisioning profiles and selecting Development profiles for Debug and Release
- Trying simulators with different OS versions (iOS 11, iOS 10)
看起来这是Xcode 9的一个特定问题。
Looks like it's a specific issue with Xcode 9.
这个问题是否有解决办法?
Are there any workarounds for this issue?
推荐答案
将Xcode更新为9.2 为我解决了这个问题。
Updating Xcode to 9.2 solved this problem for me.
这篇关于内存分析不适用于Xcode 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!