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
56
votes
12 answers

Can I install Xcode on an external hard drive along with the iPhone Simulator.app?

I want to install Xcode to deploy a cross platform Flutter application but I can't find enough space for Xcode. Is there any alternative solutions to just installing it on the internal storage?
Omar Emam
  • 735
  • 1
  • 8
  • 10
56
votes
2 answers

App archived with Xcode 11.2 (11B52) rejected: ITMS-90534: Invalid Toolchain

I have installed both Catalina and Xcode 11 from store and they are up to date: Catalina: 10.15.1 (19B88) Xcode: 11.2 (11B52) Yesterday I have uploaded a new binary using fastlane. Today I got this message from Apple: Dear Developer, We…
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
56
votes
22 answers

SwiftUI hide TabBar in subview

I am working with SwiftUI, and I have some issues with the TabBar. I want to hide the TabBar on a specific subview. Have tried with UITabBar.appearance().isHidden = true It only works on the direct views in the TabView. But when I place it in a…
Dyngberg
  • 663
  • 1
  • 7
  • 10
56
votes
4 answers

Why on Xcode 11, UICollectionViewCell changes size as soon as you scroll (I already set size in sizeForItem AtIndexPath:)?

I have collectionview inside tableview cell and I use nib for my collection view cell (in which I use autolayout for my imageview and labels and it is on Freeform mode). I'm setting cell size in tableviewcell class which is handling the delegate…
Reza.Ab
  • 1,195
  • 1
  • 11
  • 21
56
votes
5 answers

Command line Update of Provisioning Profiles

I couldn't find anything on this (maybe I'm just using the wrong search terms..): We're trying to build a sensible continuous integration setting for our apps. To have a REALLY sensible implementation, the build server should be able to…
Blitz
  • 5,521
  • 3
  • 35
  • 53
56
votes
9 answers

Xcode 8.2 Code Completion Not Working

For some reason, in Xcode 8.2 my code completion has stopped working. I have cleaned my product, restarted Xcode, restarted my computer, and deleted the derived data, and still no luck. I have submitted this to Apple Support. Has anyone run into…
ethanfox27
  • 890
  • 1
  • 9
  • 25
56
votes
3 answers

Swift-3 error: '-[_SwiftValue unsignedIntegerValue]: unrecognized selector

Following code was perfectly worked with old swift. This is an extension of String func stringByConvertingHTML() -> String { let newString = replacingOccurrences(of: "\n", with: "
") if let encodedData = newString.data(using:…
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86
56
votes
11 answers

Text search though all .xib files in Xcode?

This seems like such a basic task, but I'm stumped. How, in Xcode, do you execute a textual search though (the XML contents of) all the .xib files in a project? For example, all of our .xib files contain this string on the second line:…
Jon-Eric
  • 16,977
  • 9
  • 65
  • 97
56
votes
4 answers

Launch Screen Storyboard with centered image iOS

1 - I want to use a LaunchScreen.storyboard in my app 2 - In this launch screen I need to insert a brand image in center of the screen Could anyone help me?
Jhonsore
  • 1,757
  • 1
  • 13
  • 19
56
votes
3 answers

Xcode 7: ignore .xcscmblueprint in repository?

I noticed that Xcode 7 creates a new .xcscmblueprint file in the xcshareddata folder. Will it be always auto generated? Should this file be added to the ignore list of the repository, or should it be checked in into repository? Xcode 6 has the…
zavié
  • 4,301
  • 2
  • 34
  • 46
56
votes
6 answers

What is causing this Crashlytics compile warning? (Auto-Linking supplied '...' framework linker option at '...' is not a dylib)

Compiling my main target (not a test target like here) yields this error: ld: warning: Auto-Linking supplied '~/Documents/my_app/MyApp/Crashlytics.framework/Crashlytics', framework linker option at …
Robert
  • 37,670
  • 37
  • 171
  • 213
56
votes
5 answers

No Way to Set Initial View Controller in New Storyboard in Xcode 6

Here's what I did in Xcode 6.0.1: Step 1: Create a new project with a single view. Step 2: Add an additional storyboard to the project. Step 3: Compare the original storyboard with the newly added one. Note how there is no arrow to designate the…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
56
votes
1 answer

Document Types vs. Exported and Imported UTIs

Can anyone explain to me the difference between Document Types, Exported UTIs and Imported UTIs in Xcode 5.1? I want to be able to have my app automatically detect file type based on file extension. Which of these three would I need to implement in…
rolling_codes
  • 15,174
  • 22
  • 76
  • 112
56
votes
5 answers

What's the difference between DWARF and DWARF with dSYM file?

XCode supports those 2 values for this Build Setting: Build Settings > Build Options > Debug Information Format. Could anybody explain the differences?
Lio
  • 4,225
  • 4
  • 33
  • 40
56
votes
2 answers

xcode 5 how to delete target

In xcode 5, there is no option for creating unittest project while creating project. I want to delete the unitest target after the project is created. There is no target list I can right click, I can chose target to edit but not able to delete. I…
user987342
  • 561
  • 1
  • 4
  • 3