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
50
votes
2 answers

Where is the Run Script and Build Phase in Xcode?

To get Carthage set up, the documentation says that you need to add a Run Script. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
50
votes
9 answers

How to change the "Bundle Identifier" within React Native?

Starting a new react-native project, the xcode-project gots the bundle-identifier "org.reactjs.native.example.XYZApp". XYZ is the placeholder here for my real project name. Is there any way to change this bundle identifier on react-native side?…
delete
  • 18,144
  • 15
  • 48
  • 79
50
votes
11 answers

Xcode/Swift 'filename used twice' build error

I'm new to Swift and am struggling with an error after I have (possibly) correctly installed a 3rd party framework via CocoaPods. The error is as follows. :0: error: filename "MainController.swift" used twice:…
RobertyBob
  • 803
  • 1
  • 8
  • 20
50
votes
2 answers

~/Library/Developer/Xcode/iOS DeviceSupport//Symbols/System/Library consuming 14+GB of my Mac disk space

I have entries in here ranging back to a large number of iOS versions (many GB are for old iOS 8 versions and there are many iOS 6 and 7 versions as well). I don't expect to care about building apps in Xcode to support these iOS versions any more…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
50
votes
6 answers

Xcode 7: changing product bundle identifier

I'm setting up Jenkins to automate the build process. In particular, for my needs, I'd like to be able to set different bundle identifiers. I'm using the Xcode Jenkins plugin to set the bundle identifier: The problem is that this will change the…
Luca Torella
  • 7,974
  • 4
  • 38
  • 48
50
votes
15 answers

How to keep a round imageView round using auto layout?

How do I turn a rectangular image view into a circular image view that can hold shape in auto layout without setting width and height restraints? Thereby allowing the imageView to define it’s size, and size bigger and smaller relative to objects…
CHM
  • 621
  • 1
  • 5
  • 7
50
votes
13 answers

Make button open link - Swift

This is the code I have now, taken from an answer to a similar question. @IBAction func GoogleButton(sender: AnyObject) { if let url = NSURL(string: "www.google.com"){ UIApplication.sharedApplication().openURL(url) } } The button…
Thev
  • 1,105
  • 2
  • 13
  • 24
50
votes
7 answers

How to select a picker view item in an iOS UI test in Xcode?

I have a picker view with few items: "Red", "Green", "Yellow", "Black". In my UI test I need to select a specific item "Green" from it. I am using the XCTest UI testing APIs that were intruduced with Xcode 7. What I managed to do so far is to…
Evgenii
  • 36,389
  • 27
  • 134
  • 170
50
votes
3 answers

Non-Public Library SockPuppetGizmo

I got an email that my latest binary submission to Apple for an iOS/Watch OS app was invalid due to: The app links to non-public libraries in PlugIns/iPrayed.appex/iPrayed WatchKit App.app/_WatchKitStub/WK: …
user717452
  • 33
  • 14
  • 73
  • 149
50
votes
4 answers

Application Loader Warning - Resulting API Analysis File is too large

I am getting a strange error when I submit my application via application loader tool. The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message. The…
goelv
  • 1,039
  • 2
  • 11
  • 21
50
votes
15 answers

How do you fix "code object is not signed at all In subcomponent:" in Xcode 6, Mac OS X Yosemite or Mavericks?

When compiling my application I'm getting the following error: CodeSign /Users/pupeno/Library/Developer/Xcode/DerivedData/ProjectX-cynmgyozflnwbpamwnpsnhgshuyq/Build/Products/Debug/Project\ X.app cd /Users/pupeno/Projects/ProjectX export…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
50
votes
3 answers

Add a custom color palette to Xcode Interface Builder

My current long term project utilizes a palette of custom colors. In code, we are using a category to access these colors by name. This works great but there are times, such as when building a nib, that these colors won't be set programmatically. I…
Pheepster
  • 6,045
  • 6
  • 41
  • 75
50
votes
11 answers

How to embed a custom view xib in a storyboard scene?

I'm relatively new in the XCode/iOS world; I've done some decent sized storyboard based apps, but I didn't ever cut me teeth on the whole nib/xib thing. I want to use the same tools for scenes to design/layout a reusable view/control. So I created…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
50
votes
1 answer

Xcode 6.1 Warning about Launch Image in Asset Catalog

I am using Xcode 6.1 to create a app supporting iOS 6 and later. .In target's "App Icons and Launch Images", I set the Launch Images Source as "Use Asset Catalog" and Launch Screen File to "LaunchScreen". In Images.xcassets which created by Xcode,…
Arnold
  • 613
  • 1
  • 5
  • 8
50
votes
7 answers

Assertion failure in UIPageViewController

While switching between Tabs too fast in UIPageViewController, App getting crash in line [UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:] with errors Assertion failure and…
Brjv
  • 1,054
  • 1
  • 8
  • 24