Questions tagged [xcode]

Xcode is Apple's integrated development environment (IDE). USAGE NOTE: Use this tag only for questions about the Xcode IDE itself, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [iOS] or [Swift] for iOS programming questions.

Xcode is Apple's integrated development environment (IDE) tool, which runs on . It is used for creating apps for macOS (), iOS (), iPadOS (),watchOS () and tvOS () platforms.

This tag should be used only for questions about the Xcode tool itself, not for programming questions for which you happen be using Xcode - if your question would stay the same if you used and for writing your program, avoid adding this tag.

  • For macOS programming questions, use the or tag.

  • For iOS programming questions, use the or tags.

  • For Apple Watch programming questions, use the , or tags.

  • For questions about the Objective-C language and its features, use the tag.

  • For questions about the Swift language and its features, use the tag.

SDKs in Xcode 11.3

  • iOS 13.3
  • iPadOS 13.3
  • tvOS 13.3
  • watchOS 6.1
  • macOS 10.15.2.

This tag covers:

  • Project organization
  • Source code editing
  • Build system
  • Unit testing
  • Xcode Instruments
  • Interface Builder (prior to Xcode 4, Interface Builder was a separate app, in which case you would use the tag)

More information:

Release notes:

Xcode 11.3 Release notes

Related:

Related tags for specific versions:

150193 questions
2339
votes
24 answers

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

I updated to macOS Mojave (this happens on Catalina update too, and seems to potentially occur on every major update thereafter) This morning I navigated to my work's codebase in the Command Line on my MacBook pro, typed in "git status" in the…
dustbuster
  • 55,449
  • 4
  • 9
  • 31
1517
votes
28 answers

Transport security has blocked a cleartext HTTP

What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your…
Jeef
  • 25,082
  • 16
  • 71
  • 136
1447
votes
11 answers

How to "add existing frameworks" in Xcode 4?

I can't find the good old "Add existing frameworks" option. How do I do this? We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).
Ariel Malka
  • 15,839
  • 6
  • 29
  • 30
1357
votes
18 answers

How can I disable ARC for a single file in a project?

I am using ARC successfully in my project. However, I have encountered a few files (e.g., in unit tests and mock objects) where the rules of ARC are a little more fragile right now. I recall hearing that there was a way to disable ARC on a per-file…
casademora
  • 60,192
  • 15
  • 66
  • 77
1040
votes
36 answers

How to change the name of an iOS app?

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished. But I'm not sure how to do this with Xcode, trying the obvious of changing the application's…
Robert Gould
  • 65,529
  • 58
  • 177
  • 269
980
votes
1 answer

How to download Xcode DMG or XIP file?

Where does the Mac App Store download the files to under Lion? I need the DMG file in order to repair something in my system, but how can I access that file?
Proud Member
  • 38,700
  • 43
  • 143
  • 225
909
votes
21 answers

Git ignore file for Xcode projects

Which files should I include in .gitignore when using Git in conjunction with Xcode?
Hagelin
  • 15,641
  • 5
  • 27
  • 37
889
votes
24 answers

Xcode error "Could not find Developer Disk Image"

When attempting to run a build on a connected iOS device in Xcode I get the error: Could not find Developer Disk Image I saw that there was a public beta for Xcode, so I installed it. One of the new features is that you don't need to have a…
Nathan Kramer
  • 9,000
  • 3
  • 9
  • 8
843
votes
11 answers

Xcode 7 error: "Missing iOS Distribution signing identity for ..."

I tried to upload my App to iTunes Connect resp. AppStore and got the following error: Failed to locate or generate matching signing assets Xcode attempted to locate or generate matching signing assets and failed to do so because of the following…
Awsed
  • 8,574
  • 5
  • 22
  • 25
800
votes
17 answers

#ifdef replacement in the Swift language

In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude some parts of code using compiler preprocessors. #ifdef DEBUG // Debug-only code #endif Is there a similar solution in Swift?
mxg
  • 19,703
  • 12
  • 56
  • 77
787
votes
25 answers

xcode-select active developer directory error

Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select. xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory…
tjmehta
  • 22,849
  • 4
  • 19
  • 18
777
votes
14 answers

Xcode process launch failed: Security

I have been developing an app for 1 or 2 weeks now and just yesterday I have updated my iPhone 5S to the iOS 8 GM. Everything worked fine and I could test on my device as well until I deleted the app from my phone and wanted to build again. The…
Tom Spee
  • 8,939
  • 4
  • 26
  • 47
728
votes
13 answers

Hide strange unwanted Xcode logs

When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application: 2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0,…
Hans Knöchel
  • 10,974
  • 8
  • 25
  • 46
704
votes
45 answers

This action could not be completed. Try Again (-22421)

I am trying to upload an Apple TV App to the App Store for testing purposes, but I got the issue: This Action could not be completed. Try Again (-22421) as in the below image: So what can I do?
Nimisha Ranipa
  • 8,214
  • 2
  • 11
  • 28
680
votes
7 answers

Version vs build in Xcode

I have an app that I developed with Xcode 3 and recently started editing with Xcode 4. In the target summary I have the iOS application target form with fields: identifier, version, build, devices, and deployment target. The version field is blank…
chris
  • 15,435
  • 8
  • 34
  • 38
1
2 3
99 100