In XCode (not in Instruments) select Product > Profile, and after if compiles, choose automation. Wait for the app to start, then stop the track: you should be able to run it from the editor. If not, delete the Instruments and iPhone Simulator folders from the Library and restart Instruments.
Build with release configuration but automation tracetemplate launch app from simulator show target app not frontmost
-
31-07-2022 - |
Вопрос
Xcode version is 5.0.2 with latest iOS system.
I changed run's scheme build configuration to release, then click Run to build app, after that:
- I open instruments and select automation tracetemplate , select target app
- Then add an new script
- Click Record button
- After app started from simulator, the instruments show an error message: Target app not frontmost;
But when I changed run's scheme build configuration to debug, it works fine.
Note: Code Signing using iOS Developer both debug and release.
Решение
Не связан с StackOverflow