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
469
votes
13 answers

This certificate has an invalid issuer Apple Push Services

I have created certificate to enable Push Services in my app, but every time I try to add certificate in my Keychain, after adding certificate it shows me following error: This certificate has an invalid issuer
Aamir
  • 13,234
  • 9
  • 51
  • 63
466
votes
4 answers

Xcode 4 - "Archive" is greyed out?

I would like to archive my application, but the Archive option is greyed out. What could cause this?
Nippysaurus
  • 19,402
  • 18
  • 71
  • 124
460
votes
9 answers

Provisioning Profiles menu item missing from Xcode 5

After spending a whole day installing a fresh copy of Mac OS X v10.8 (Mountain Lion), Xcode 5, fixing provisioning profiles, certificates, creating new ones, I finally managed to get my applications running on my iPad again. The problem is that in…
kanstraktar
  • 5,277
  • 2
  • 19
  • 28
457
votes
7 answers

How do I set up NSZombieEnabled in Xcode 4?

How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
Chetan
  • 41,886
  • 27
  • 101
  • 142
457
votes
5 answers

Xcode Project vs. Xcode Workspace - Differences

I am trying to understand how the whole ecosystem of iOS works. Until now, I could find an answer for most of my question (and trust me, there have been a lots of them), but for this one, there seems to be no clear answer yet. What is the…
ms2
  • 5,295
  • 7
  • 16
  • 18
456
votes
4 answers

Ignore Xcode warnings when using Cocoapods

I use quite a lot third party libraries which have many warnings in it, after the latest Xcode updates. (for example the Facebook SDK pod) Now all these warnings are shown in my Xcode on the place I want to see my own warnings or errors. Is there…
KrauseFx
  • 10,612
  • 5
  • 42
  • 52
452
votes
40 answers

Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Trying to get a large (and working on Xcode 11!) project building in Xcode 12 (beta 5) to prep for iOS 14. Codebase was previously Obj-C, but now contains both Obj-C and Swift, and uses pods that are Obj-C and/or Swift as well. I have pulled the…
btxios
  • 4,685
  • 3
  • 7
  • 7
447
votes
13 answers

How to print out the method name and line number and conditionally disable NSLog?

I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently. In particular, I have two questions: is there a way to easily NSLog the current method's name / line number? is there a way to…
rein
  • 31,307
  • 23
  • 77
  • 106
430
votes
30 answers

Code signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team error

I am facing the below issue and am unable to build the application. XXX has conflicting provisioning settings. XXX is automatically provisioned, but provisioning profile WildCard has been manually specified. Set the provisioning profile value…
Rajesh
  • 9,724
  • 14
  • 37
  • 58
428
votes
50 answers

dyld: Library not loaded: @rpath/libswiftCore.dylib

I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release of Xcode 6. I have tried Restarting Xcode, iPhone, computer Cleaning &…
user3751185
  • 4,325
  • 3
  • 10
  • 8
422
votes
36 answers

Fixing Xcode 9 issue: "iPhone is busy: Preparing debugger support for iPhone"

I'm looking for more information on the message below. Xcode 9 seems to be hanging for a couple minutes already... How can I tell Xcode 9 to quickly recognize my previously used device updated to iOS 11? .Alex’s iPhone is busy: Preparing debugger…
Alex Stone
  • 41,555
  • 51
  • 213
  • 379
418
votes
17 answers

Updating to latest version of CocoaPods?

I'm having some issues installing Alamofire 4.0 into my project. I've got the latest version of Xcode, running Swift 3, and when I try to install alamofire I'm getting like 800 compiler errors. Apparently CocoaPods 1.1.0+ is required to build…
Barkley
  • 4,913
  • 3
  • 13
  • 24
415
votes
16 answers

How to update Xcode from command line

I am trying to update Xcode from the command line. Initially I tried running: xcode-select --install which resulted in this message: xcode-select: error: command line tools are already installed, use "Software Update" to install updates So the…
psvj
  • 5,920
  • 7
  • 23
  • 38
412
votes
8 answers

iPad Multitasking support requires these orientations

I'm trying to submit my universal iOS 9 apps to Apple (built with Xcode 7 GM) but I receive this error message for the bundle in iTunes Connect, just when I select Submit for Review: Invalid Bundle. iPad Multitasking support requires these…
Cosmin
  • 5,543
  • 3
  • 24
  • 27
412
votes
20 answers

Xcode "Build and Archive" from command line

Xcode 3.2 provides an awesome new feature under the Build menu, "Build and Archive" which generates an .ipa file suitable for Ad Hoc distribution. You can also open the Organizer, go to "Archived Applications," and "Submit Application to…
Dan Fabulich
  • 31,628
  • 35
  • 121
  • 153