Xcode 5.1 only 64-bit tool simulator

I just updated my xcode to 5.1 ... Installed all the simulators that I need (6, 7, 7.1), and can happily debug in each of them.

However, the profiler now always runs the iphone 7.1 64-bit simulator. I tried over time the profiler, distribution, zombies, the exact accurate simulator. Tried to switch it to the simulator’s own menu, tried to restart the tools, xcode, nothing works. In the "Profile" scheme, the "Use the" Run the action "arguments is marked, but nothing happens. In addition, nothing was changed manually in the project settings before or after the update.

Is there a workaround or fix for this problem?

Any answer is much appreciated!

+8
source share
2 answers

I have the same problem as in the profile with the 3.5-inch iPhone Retina simulator. As a workaround, I used Tools from the command line:

instruments -t $InstrumentsTemplate -w "iPhone Retina (3.5-inch) - Simulator - iOS 7.1" $AppLocation 

where $InstrumentsTemplate is the path to the profiling template that you want to use with the tools, and in my case:

Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Time Profiler.tracetemplate

and $AppLocation is the path to the application you want to profile, and looks like this:

 ~/Library/Application Support/iPhone Simulator/7.1/Applications/658FE3GB-49B6-48F5-B6A6-0D1C8D1F6BFD/AppName.app 

To list all the tools that you can pass with -t , use:

 instruments -s 

To see a list of all available simulators that you can pass with -w , use:

 instruments -s devices 

Hope this helps.

+5
source share

There is a way to avoid using the command line here. Make your “profile” at the step from Xcode, as usual, but select the “Target” drop-down menu, go to “Settings” and select another “Simulator configuration” according to the desired version.

enter image description here

Then just use the library to drag everything you want to measure that match any of the predefined sets (and even add more). Then click "Record" and you will leave. In the past experience, sometimes you had to leave the simulator if it was already open, but not sure if it is necessary now.

+15
source share

All Articles