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
48
votes
0 answers

Number of lines from XCode project

Possible Duplicate: How to find out how many lines of code there are in an Xcode project? I was wondering if there is anyway to count the total number of code lines from an XCode project.
Leonardo Marques
  • 3,721
  • 7
  • 36
  • 50
48
votes
4 answers

Xcode 8 - Provisioning Profile vs. Provisioning Profile (Deprecated)

I have just updated to Xcode 8 and I now have two options for app signing, Provisioning Profile and Provisioning Profile (Deprecated). Why is one deprecated, and what is the difference between the two?
keldar
  • 6,152
  • 10
  • 52
  • 82
48
votes
1 answer

Can't Hide Status Bar—Swift 3,

I usually hide the status bar with override func prefersStatusBarHidden() -> Bool { return true } but Xcode is giving me an error, saying "Method does not override anything from its superclass". If I delete the override, Xcode gives a different…
owlswipe
  • 19,159
  • 9
  • 37
  • 82
48
votes
13 answers

Unknown class in interface builder

I know that there are a lot of questions on this subject but I've tried most of them to try and figure it out with no success. the problem: at first I couldn't add my class from the assistant editor cause the custom class didn't pick it up. I made…
Max
  • 799
  • 1
  • 5
  • 17
48
votes
7 answers

How do I change the product name within an Xcode project?

I have an application that I would like to be called IFrames. I've named all of the files appropriately (IFramesAppDelegate, etc.), but when I run it in ad hoc mode it shows up with the name "photoframes" instead. How did this happen and how do I…
Pankaj Kainthla
  • 2,439
  • 5
  • 31
  • 61
48
votes
7 answers

How to hide Blue line covering views in xib/Storyboard in Xcode

I am using xcode 7.2, in xib when i insert any view, label,txtField etc., all are showing this covering blue line. now it is very hard to insert/manage new view or anything in xib due to this line. Does anybody know how to hide these?
Deepak Chaudhary
  • 1,723
  • 1
  • 15
  • 29
48
votes
6 answers

No Push Notification Capability in Xcode

I don't know why, but the option Push Notifications of Capabilities in Xcode is not displayed. Why? I follow the developer guides, creating cers, enabling push in provisiong profiles, etc. I had refreshed the account in Xcode preferences. What I am…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
48
votes
3 answers

What's Dead & Exploded in Swift's exception stack?

In the exception stack for runtime crashes, Swift often says arguments are Dead or Exploded. What does it mean, and does it matter for debugging purposes? For example: -> 0x100209cf0
DenverCoder9
  • 3,635
  • 3
  • 31
  • 57
48
votes
4 answers

How to run apps on iPhone/iPad using Xcode 7 without enrolling to Apple's Developer Program?

I have a Macbook with OSX 10.10.3, Xcode 7 beta and an iPhone 4. I haven't enrolled to Apple's Developer Program. I think that since the latest WWDC any developer can run apps on their device. How can I achieve that on a real device in Xcode 7 Beta?
Jayakrishnan M
  • 603
  • 1
  • 7
  • 8
48
votes
5 answers

Subview frame is incorrect when creating UICollectionViewCell

The problem I created a UICollectionViewController with a custom UICollectionViewCell. The custom cell contains a large and rectangular UIView (named colorView) and a UILabel (named nameLabel). When the collection is first populated with its cells…
Felipe Ferri
  • 3,488
  • 2
  • 33
  • 48
48
votes
4 answers

How to add an "entry point arrow" to a tab bar controller?

In Xcode 6.2 beta, I am able to make some view controllers such as "View Controller" or "Navigation view controller" the entry point of my interface by dragging and dropping the "entry point arrow" on it, it gives me something like this : But when…
Pop Flamingo
  • 3,023
  • 2
  • 26
  • 64
48
votes
7 answers

How to hide UITextField border?

I have a UITextField and I am trying to make the UITextField border invisible so that the background and UITextField would have the same color and there would be a seamless look. But the problem is I also use a placeholder and there is a border that…
user984694
48
votes
10 answers

Xcode: Possible to auto-create stubs for methods required by Protocol interface?

Coming from an Eclipse / Java background, one of my favorite features is the ability to quickly stub out all the methods required by an interface. In Eclipse, I can choose 'Override / implement' from the source menu to generate stub methods for any…
Eric Farraro
  • 865
  • 2
  • 7
  • 14
48
votes
9 answers

Creating a UITableView Programmatically

I have an application in Xcode 4.6 which uses storyboards. I added a UITableView to a view controller class, which worked as expected. However, when I tried deleting the UITableView in the storyboard and adding it back into the same class…
jac300
  • 5,182
  • 14
  • 54
  • 89
48
votes
5 answers

"Failed to upload *.app on Device " Error in iPhone

I am getting an error while uploading my app on device. It does installs it but not able to upload it. Also I want to run the instrument tool on device but when I run it shows nothing. Anyone facing the same issues.
rkb
  • 10,933
  • 22
  • 76
  • 103
1 2 3
99
100