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.

Latest Versions:

  • Current stable version is Xcode 14.2 released on December 13, 2022
  • Beta version is Xcode 14.3 RC released on March 21, 2023

Release notes:

SDKs in Xcode 14

  • iOS 16
  • iPadOS 16
  • tvOS 16
  • watchOS 9
  • macOS 13

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:

Related:

Related tags for specific versions:

158769 questions
348
votes
32 answers

I get conflicting provisioning settings error when I try to archive to submit an iOS app

Now I'm trying to Product>Archive my iOS app to submit. However, I am getting following errors: AppName has conflicting provisioning settings. AppName is automatically signed for development, but a conflicting code signing identity iPhone…
vanagar
  • 3,511
  • 2
  • 10
  • 8
345
votes
37 answers

App installation failed due to application-identifier entitlement

I am unable to install a watchOS 2 WatchKit app due to an application-identifier entitlement. This happened after turning on App Groups in the Capabilities tab. Full error: App installation failed This application's application-identifier…
Ric Santos
  • 15,419
  • 6
  • 50
  • 75
345
votes
12 answers

Can I safely delete contents of Xcode Derived data folder?

I am running low on disk space and checked through a third party utility that among other things that ~/Library/Developer/Xcode/DerivedData directory is taking about 22GB of disk space. I searched stackoverflow and found this post How can I safely…
Sam B
  • 27,273
  • 15
  • 84
  • 121
343
votes
8 answers

Emulating aspect-fit behaviour using AutoLayout constraints in Xcode 6

I want to use AutoLayout to size and layout a view in a manner that is reminiscent of UIImageView's aspect-fit content mode. I have a subview inside a container view in Interface Builder. The subview has some inherent aspect ratio which I wish to…
chris838
  • 5,148
  • 6
  • 23
  • 27
338
votes
89 answers

Hidden Features of Xcode

With a huge influx of newbies to Xcode, I'm sure there are lots of Xcode tips and tricks to be shared. What are yours?
schwa
  • 11,962
  • 14
  • 43
  • 54
335
votes
36 answers

Missing file libarclite_iphoneos.a (Xcode 14.3)

After installing Xcode 14.3 in order to run my app on my iOS 16.3 iPhone XS. I get the following error: File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a How can I…
Justin A
  • 3,891
  • 2
  • 18
  • 22
333
votes
17 answers

"Warning: iPhone apps should include an armv6 architecture" even with build config set

It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building my ad hoc distribution configuration. Build generates this warning and error: warning: iPhone apps should include an…
Nick
  • 8,483
  • 10
  • 46
  • 65
332
votes
17 answers

What is the best way to unit test Objective-C code?

What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Apple Xcode.
Kim
  • 4,593
  • 5
  • 21
  • 18
323
votes
28 answers

Latest version of Xcode stuck on installation (12.5)

I just updated my mac to macOS Big Sur, and am trying to update to the next version of XCode. It has been on 75-80% progress for hours: Also, when I go to launchpad I see this: Is anyone else having this issue or know how to fix it?
Darrow Hartman
  • 4,142
  • 2
  • 17
  • 36
323
votes
26 answers

Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed

Already tried : Code Sign Error on macOS Sierra, Xcode 8 Please see image showing error CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app cd…
iPhoneProcessor
  • 4,980
  • 6
  • 27
  • 49
321
votes
19 answers

Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'

I have Xcode 8 installed on OS X El Capitan. I get this error: Signing for "target" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Hardik Parmar
  • 3,228
  • 2
  • 9
  • 9
317
votes
33 answers

iPhone app signing: A valid signing identity matching this profile could not be found in your keychain

I'm pulling my hair out over this. I just downloaded the iPhone 3.0 SDK, but now I can't get my provisioning profiles to work. Here is what I have tried: Delete all provisioning profiles Delete login keychain Create new "login" keychain, make…
user75832
316
votes
19 answers

How to use pull to refresh in Swift?

I am building an RSS reader using swift and need to implement pull to reload functionality. Here is how i am trying to do it. class FirstViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet var refresh:…
xrage
  • 4,690
  • 4
  • 25
  • 31
313
votes
21 answers

How to control the line spacing in UILabel

Is it possible to reduce the gap between text, when put in multiple lines in a UILabel? We can set the frame, font size and number of lines. I want to reduce the gap between the two lines in that label.
Abhinav
  • 37,684
  • 43
  • 191
  • 309
313
votes
31 answers

Check for internet connection with Swift

When I try to check for an internet connection on my iPhone I get a bunch of errors. Can anyone help me to fix this? The code: import Foundation import SystemConfiguration public class Reachability { class func isConnectedToNetwork() -> Bool { …
b3rge
  • 4,959
  • 7
  • 23
  • 24