user996142
user996142

Reputation: 2883

What are "analyze", "test" and other checkboxes in "Build" part of scheme in Xcode?

I understand that when I run Project -> Build, it does what I set in "Build" part of current scheme. I see my targets there, so I want to choose which target to build. But there are checkboxes near each target. I can't get what do they do..

Here is screenshot: checkboxes

Upvotes: 4

Views: 1251

Answers (2)

d512
d512

Reputation: 34123

From what I can tell these allow you to build your project for various purposes, Running, Profiling, Archiving, etc.

Try unchecking the Profiling checkbox then building your project for Profiling Product -> Build For -> Profiling (Shift+Cmd+I). You will get an error stating Your scheme XXX is not configured for Profiling.

So I guess it's just simply a way to enable or disable different types of builds.

Upvotes: 1

gnasher729
gnasher729

Reputation: 52548

Analyze performs static code analysis.

Test runs your unit tests.

Run runs your application.

Profile runs a profiling application for measuring speed.

Archive creates an archive of your built app, for installing on devices or for uploading to the App Store.

Upvotes: 1

Related Questions