简体   繁体   English

为什么 Xcode 检漏仪无法正常工作

[英]Why does Xcode Leak Instrument isn't working properly

I'm trying to check my iOS application on memory leaks using Xcode Instruments but when i'm trying to record and run i'm having this error我正在尝试使用 Xcode Instruments 检查我的 iOS 应用程序在 memory 泄漏上,但是当我尝试记录和运行时,我遇到了这个错误

Unable to find actual binary to posix_spawn for path: /Users/.../.../.../ios/{project_name}.xcodeproj无法为路径找到 posix_spawn 的实际二进制文件:/Users/.../.../.../ios/{project_name}.xcodeproj

What can i do?我能做些什么?

I searched for solution but couldn't find anything我搜索了解决方案,但找不到任何东西

Found a solution.找到了解决方案。 When choosing a target it should be your application and not the.xcodeproj file.选择目标时,它应该是您的应用程序,而不是 .xcodeproj 文件。 For example i have application TestApp it should be there as the TestApp and not TestApp.xcodeproj As shown in this image例如,我有应用程序 TestApp 它应该作为 TestApp 而不是 TestApp.xcodeproj 存在,如图所示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM