Posts

Post not yet marked as solved
1 Replies
1.9k Views
I'm trying to find memory leaks in my application with either Memory Graph or Inspector. I'm getting the following errors:Memory Graph - Unable to acquire required task portInspector Prompts for passwordError: Failed to attach to target processAn error occurred trying to capture Leaks data.Unable to acquire required task port ()The odd thing is that both work on initial execution of the target, but every subsequent launch triggers the above errors. (including after restarting xcode and after reboot).If I change my target name it works one time and then the errors start again. So the target name is being cached somewhere and causing subsequent testing with that name impossible.I'm running xCode 10.2 and Mac OS 10.14.4.Some more context and ugly work around. This is a swift server app and I'm using swift package manager to generate the xcode project. The following works and avoids the above errors, but it is a hassle.swift package generate-xcodeprojopen projName.xcodeprojbuild and runclick Debug Memory Graph button. App Stopped and Memory Graph displays fine. If I stop the app and run again then I get the above errors.stop the appchange the target name in Package.swiftswift package generate-xcodeprojopen projName.xcodeprojbuild and runMemory Graph works one time againrinse and repeatI've found that using Inspector exhibits the same behavior.Any help would be appreciated.Thanks,Dana
Posted Last updated
.