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
55
votes
7 answers

Xcode : Adding a project as a build dependency

Im playing around with the soundcloud api, in its instructions it says to drag SoundCloudAPI.xcodeproj into your project add it as a build dependency I can drag the project in pretty easily, but how does one accomplish the next step?
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
55
votes
5 answers

Xcode 8 signing errors, can't log in with account and no provisioning profile

When I run my application, two errors appear in the Signing part of the General tab of the project. One says, "The operation couldn't be completed. Unable to log in with account ________" while the other says "No profiles for ________ were found."…
bigreddawg
  • 723
  • 1
  • 5
  • 10
55
votes
10 answers

React Native / Xcode Upgrade and now RCTConvert.h not found

App ran fine on React Native 0.35.0. After updating to 0.40.0 via react-native-git-upgrade I get a number of lexical/preprocessor issues when trying to build/run the app in XCode. React/RCTBridgeModule.h' file not found When clicking on the issue I…
Robert Schillinger
  • 1,053
  • 3
  • 10
  • 15
55
votes
11 answers

Xcode 8 custom font doesn't show up in interface builder

I am trying to use custom font (Bebas Neue) in my iOS application. The steps I took are: Copy the .otf files to the project. Confirm the .otf files have set the project as target. Added the .otf files in 'Fonts provided by application' in plist. In…
chengsam
  • 7,315
  • 6
  • 30
  • 38
55
votes
36 answers

No Assistant Results

I am having an issue where the code associated with some of my View Controllers is not showing up in the Assistant Editor window to the right of the Storyboard. It says "No Assistant Results" where the swift code should be. Things I have tried…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
55
votes
2 answers

React-native failed propType on Image component

I am just starting out with React-native and have a pretty decent grasp on React for creating web apps... I am running into a confusing issue here that never occured when working with react for the web. Basically I am rendering a component whose…
Maxwelll
  • 2,174
  • 1
  • 17
  • 22
55
votes
4 answers

How to get the output of an OS X application on the console, or to a file?

I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal. On the Cocoa side I am using NSLog(), and on the Mono side I am using Debug.Write(). I can see my debug output in Xcode's console, but not in…
phi
  • 1,513
  • 1
  • 15
  • 34
55
votes
9 answers

Xcode fails to get the task for process XXX. How do I solve this? (iPhone SDK 4.0)

I have the following error when I try to run a new project on my ipod: Error launching remote program: failed to get the task for process 312. The program being debugged is not being run. I've read about Entitlements.plist, and I've tried to add…
confusedKid
  • 3,231
  • 6
  • 30
  • 49
55
votes
6 answers

Build operations are disabled:'project.xcworkspace' has changed and is reloading

I got this message, which is as follows. Then again I tried to rebuild it, which lead me to this alert message. Now if I select Xcode Version, it starts throwing error which is related to the dependency of the external libraries I have added. Any…
Kumar Utsav
  • 2,761
  • 4
  • 24
  • 38
55
votes
13 answers

Xcode Interface Builder is showing "No selection" for all files

No matter what I've got selected in Interface Builder, the Inspector did apparently not register the selection and only showed "No selection". I tried opening and closing files, restarting Xcode and even rebooting my Mac. No change! What the heck…
Marius Waldal
  • 9,537
  • 4
  • 30
  • 44
55
votes
9 answers

How to access launchEnvironment and launchArguments set in XCUIApplication, running UI tests in XCode?

I've tried setting attributes in the XCUIApplication instance, in my UI Tests setUp() let app = XCUIApplication() app.launchEnvironment = ["testenv" : "testenvValue"] app.launchArguments = ["anArgument"] app.launch() in didFinishLaunch I've tried…
bogen
  • 9,954
  • 9
  • 50
  • 89
55
votes
19 answers

Xcode 7 - Code coverage data generation failed

When I run my tests I get an error: Code coverage data generation failed. Unable to retrieve the profile data files from 'UIDevice'. On console was printed warning: Timed out waiting 120 seconds for simulator to boot, current state is 1. What…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
55
votes
19 answers

Xcode debugger sometimes doesn't display variable values?

This happens to me pretty often. For example, right now I have the debugger stopped at a breakpoint in a method . . . and it isn't displaying any variable values at all. Other times, it displays some, but not others. Can anyone explain?
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
55
votes
9 answers

How to prevent a Command Line Tool from exiting before asynchronous operation completes

In a swift 2 command line tool (main.swift), I have the following: import Foundation print("yay") var request = HTTPTask() request.GET("http://www.stackoverflow.com", parameters: nil, completionHandler: {(response: HTTPResponse) in if let err =…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
55
votes
6 answers

Mystery console error with IOHIDFamily

For one of my projects, this error message in Xcode's console happens every time I run a build in the iOS Simulator. It's been happening for over a year and I thought it would eventually go away with an update to Xcode. I've dereferenced and…
avance
  • 1,993
  • 2
  • 21
  • 23