Questions tagged [xcode-scheme]

Xcode schemes helps to setup different environments for different builds. Xcode schemes help to specify different environment variables for Running, Debugging, Releasing, Profiling and Archiving.

Xcode schemes helps to setup different environments for different builds. Xcode schemes help to specify different environment variables for Running, Debugging, Releasing, Profiling and Archiving.

37 questions
283
votes
6 answers

Xcode: What is a target and scheme in plain language?

Yeah the title says it :-) What do they mean in plain English language? I really don't understand the explanation on Apple's website and I need to rename my target and I'm afraid that nothing works after that..
MichiZH
  • 5,587
  • 12
  • 41
  • 81
208
votes
1 answer

Archive button grayed out in Xcode

Would you be able to help me understand the reason why Archive button is grayed out in Xcode? I have all developers profiles downloaded Device type set to iPhone 6 And archive is checked in scheme.
Andy
  • 2,706
  • 3
  • 13
  • 22
46
votes
1 answer

Where is the logfile located for Xcode Scheme Post-Actions?

I am running a script in my Xcode project in the Scheme's Build->Post-actions "Run Script". It runs fine but I would like to see the console output of that script. It doesn't seem to be included in the Log Navigator tab, where can I find this log?
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
23
votes
3 answers

Per configuration app group entitlement strings in Xcode?

Is there an easy way to have per-configuration app group entitlement strings in Xcode projects? We're trying to share settings between an iOS application and today extension using an "app group" entitlement in both the targets. The problem we're…
EricS
  • 9,650
  • 2
  • 38
  • 34
15
votes
3 answers

Best way to Manage Development, Testing, and Production builds with different settings and name

I've three APIwith different API Keys and some different settings For development or internal testing build - Development distribution outside the iOS App Store Host - devapi.project-name.com API Key - development_key FLEX[1] - Enable For…
Vineet Choudhary
  • 7,433
  • 4
  • 45
  • 72
10
votes
2 answers

xcodebuild -list can not find scheme which existed

I have xcode project, I want to build this project under command line, this project composed many sub-project, first I fetch these source files to local disk, I use xcodebuild -list to find scheme, I can not find anything, while after I manually…
Frank
  • 811
  • 2
  • 9
  • 17
10
votes
2 answers

Different build configurations for test schemes

Is there a way to run the unit tests in a debug build and performance tests in a release build without manually selecting and running individual schemes? I have a unit test and a performance test scheme. In the test configuration for the unit test…
rid
  • 61,078
  • 31
  • 152
  • 193
8
votes
1 answer

Xcode - How to profile an application as root?

Xcode will allow me to run my application as root (the "Debug Process As" option in the scheme allows you to select "Me" or "root"). How can I run it through the profiler as root? I'm using Xcode 4.6.3.
craig65535
  • 3,439
  • 1
  • 23
  • 49
6
votes
3 answers

Xcode Bots:: Creating archive failed: xcodebuild exited with status 65

My integration succeeded but archive fails every-time with following warning mentioned below -: **Warning: Build Service Error:** Creating archive failed: xcodebuild exited with status 65. **Warning: Build Service Error:** Skipping exporting from…
5
votes
1 answer

Duplicating target for WatchOS2 with App and Extension on Xcode

I have a project with a WatchOS2 target along with an Extension. I want to duplicate both the WatchOS App target and the extension. However, when I duplicate the WatchOS App target it is still linked to the old extension. Since we no longer have…
insanoid
  • 413
  • 2
  • 10
5
votes
1 answer

One different key between multiple Info.plist files per scheme?

My application's Info.plist file has around 20/30 keys inside. An external SDK we're implementing requires its app key to be set in the Info.plist, but requires separate keys for debug, enterprise distribution, and release schemes. Is there a way I…
Luke
  • 9,512
  • 15
  • 82
  • 146
5
votes
1 answer

How to add more than one scheme in xcodebuild?

I mm building xcode workspace in terminal only (xcodebuild - Internal build). It has five schemes. But, at a time I can build only one scheme. I would like to build all the scheme at a time. A single workspace may have more than one scheme.
Sivanantham M
  • 91
  • 1
  • 8
4
votes
0 answers

How to modify build settings from Xcode scheme build pre action

I need to modify certain build settings during build time through scheme pre build action.. So how can I change the value of build settings variables such as Prefix header path or Provisioning Profile name from scheme build pre action.
user1398615
  • 289
  • 1
  • 7
3
votes
2 answers

Xcode / IOS multiple apps with same code base / project

I'm trying to set-up xcode to allow me to build / publish 2 apps using the same code but with different app icons, assets and a different database. if I have 2 apps using the same code: app 1: fruit list (display a list of fruits) app 2: Veggie…
Slamit
  • 465
  • 1
  • 6
  • 21
2
votes
1 answer

How does Xcode decide what preprocessor macros and other build settings to use for autocomplete?

My Xcode project has different build configurations, and they define different preprocessor macros. Autocomplete doesn't work in #ifdef blocks that are ignored by the current preprocessor flags, so I want to control which build configuration Xcode…
tbodt
  • 16,609
  • 6
  • 58
  • 83
1
2 3