@kacperh It's still broken.
EDIT:
Actually it's worse now. Before, SOMETIMES it would show the app loading screen for a brief time (even though no code would run).
Now it instantly fails every time.
If launched in Allocations:
> An error occurred trying to capture Allocations data.
If launched in Leaks:
> An error occurred trying to capture Allocations data.
No matter what this is all I get. It happens in Xcode 10.3, 11.3, and all betas of 11.4.
I am assuming this is a problem specific to Catalina since I had no problems prior to updating to Catalina.
From other research I did, someone suggested this could be due to a provisioning profile or signing problem. But this is an Apple product—it should just work. I have no problems building and running the app in general.
The only other thing I could think of is that I have Sentinel One endpoint security installed, as well as CrowdStrike Falcon and GlobalProtect. Is there any way in which any of these products could be interfering? I noticed that the Xcode 11.4 beta 2 patch notes said something about "certain" third-party endpoint security packages causing issues with the simulator etc. Please advise.
UPDATE:
Here are some of the errors from my console:
default | 18:26:46.598314-0800 | kernel | Library load (/Users/O.G/Develop/ios/DerivedData/OurApp/Build/Products/Debug-iphonesimulator/OurFramework.framework/OurFramework) rejected: Library load disallowed by System Policy |
memorystatus_control(MEMORYSTATUS_CMD_GET_MEMLIMIT_PROPERTIES, 67221) failed: using 0/1, 0/1
Port death watcher fired.
default | 19:25:55.483797-0800 | com.apple.dt.instruments.dtsecurity | Code validity check error: Error Domain=NSOSStatusErrorDomain Code=-67050 "(null)" |
The signing certificate and provisioning profile were refreshed and the problem still did not go away.
I honestly believe the problem is that our app has over 50 framework dependencies and takes too long to launch, resulting in Instruments giving up on it. I say this, because I have once or twice gotten the app to launch with Instruments, and a freshly created test app worked fine with Instruments.
Either that or there is some kind of gatekeeper-related issue around loading frameworks? I don't know. Happy to provide more logs if it would help, never had this problem prior to 10.15.3.