Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Profile vs Analyze

Tags:

xcode

ios

In Xcode, we have the options between the following actions to apply to our app :

  • Run
  • Test
  • Profile
  • Analyze

Could you briefly explain what's the difference between each one ?

like image 517
Zakaria Braksa Avatar asked Sep 24 '15 17:09

Zakaria Braksa


People also ask

What is Xcode Analyze?

Build and Analyze is an Xcode feature (introduced in Xcode 3.2) that allows users to run the Clang Static Analyzer directly within Xcode. It integrates directly with the Xcode build system and presents analysis results directly within Xcode's editor.

What does Profile do in Xcode?

The profiles resource represents the provisioning profiles that allow you to install apps on your iOS devices or Mac. You can create and delete provisioning profiles, and download them to sign your code.

How do I run a profile in Xcode?

Click the Run button in the toolbar (or press ⌘R) to build & run your project. Click Stop (or press ⌘.) to stop execution. Click & hold to see the other actions, Test (⌘U), Profile (⌘I), and Analyze (⇧⌘B). Hold down modifier keys ⌥ option , ⇧ shift , and ⌃ control for more variants.

What is scheme Xcode?

An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute. You can have as many schemes as you want, but only one can be active at a time.


1 Answers

Run will build and run the target on the selected device or simulator.

Test will build your target and run its unit tests (YourTargetNameTests.m)

Profile will build and run your target on the selected device or simulator with an Instruments tool of your choosing (Leaks, Allocations, etc.)

Analyze will build your target using the static analyzer and let you know of certain types of bugs in your code.

like image 83
Keller Avatar answered Sep 24 '22 08:09

Keller