iOS*_*ter 8 xcode memory-leaks ios xcode-instruments swift
I am trying to run Instruments on my app, as soon as I click record the app launches and crashes with following error:
-[__NSCFString _stringByResolvingSymlinksInPathUsingCache:]: unrecognized selector sent to instance
Run Code Online (Sandbox Code Playgroud)
But when runs fine when installed and run using Xcode directly (without Instruments).
It is happening on Simulator as well as iPhone.
Xcode version: 10.2
MacOS: 10.14.4
RESOLVED: Upgraded to Xcode11 and not facing this issue anymore.
在尝试了很多方法之后,最终我切换到了 iOS 12.0 模拟器。但我从来没有弄清楚根本原因,所以 YMMV。
当我遇到这个问题时,我最初使用的是 Xcode 10.2.1 并构建 iOS 12.2 模拟器。我首先尝试清理构建文件夹、擦除模拟器并更新到 Xcode 10.3,但每次都遇到相同的错误。如果简单地切换到 12.0 模拟器对您不起作用,请尝试其中一些选项!