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
47
votes
3 answers

Xcode 4: How to change ${EXECUTABLE_NAME} variable's value?

I want to find where is ${EXECUTABLE_NAME} global variable defined in xcode 4.2
Ahmed Said
  • 1,285
  • 5
  • 16
  • 28
47
votes
6 answers

Setting a provisioning profile from within xcodebuild when making iPhone apps

I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general.
Steve Klabnik
  • 14,521
  • 4
  • 58
  • 99
47
votes
7 answers

How to know if NSAssert is disabled in release builds?

I often saw "assert " in iOS code, I google it, and got to know it assert true or false. I want to know if this will auto disable in release mode?
qichunren
  • 4,405
  • 7
  • 37
  • 48
47
votes
6 answers

Command CompileSwiftSources failed with a nonzero exit code XCode 13

I am trying to run a project on the Xcode13, after running a pod cache clean --all, deleting the derived data, and running a pod update. When I clean the project and build it the following error appears: CompileSwiftSources normal x86_64…
AISAC
  • 821
  • 1
  • 9
  • 14
47
votes
4 answers

Objective C static class variables

I am new to Objective C and am reading a book called "Visual Quickstart Guide: Objective-C" by Steven Holzner, Peachpit Press In Chapter 6: Object Oriented Programming, there is a section called Using Class Variables where he writes: You can create…
Rakka Rage
  • 15,941
  • 8
  • 33
  • 45
47
votes
12 answers

xcode_backend.sh: no such file or directory. Do I need to create this file?

My Flutter Project won't run on the ios simulator and is throwing this error: Launching lib/main.dart on iPhone Xʀ in debug mode... Running Xcode build... Xcode build done. 7.6s Failed to build iOS…
James 666
  • 1,560
  • 1
  • 15
  • 27
47
votes
19 answers

Xcode Canvas for SwiftUI previews does not show up

I´m trying to get the new Canvas feature from Xcode 11 running, but the Canvas won´t show up. What am I doing wrong? This new Xcode feature should show a live preview of my SwiftUI views without running the app. When you create a custom View with…
stk
  • 6,311
  • 11
  • 42
  • 58
47
votes
5 answers

Xcode 4: Run tests from the command line (xcodebuild)?

I've created a brand new iOS project in Xcode 4, and included unit tests. The default app has 2 targets, the main application and the unit test bundle. Using "Product > Test" (Command-U) builds the application, builds the unit test bundle, launches…
Steven Wisener
  • 471
  • 1
  • 5
  • 4
47
votes
5 answers

Xcode says my "iPhone has recently restarted" and won't run

I am making an app in Xcode 9.2 and trying to run it on my iPhone (5S running iOS 11.2.1), Xcode compiles the application fine (I can run it in the simulator) but it does not run on my iPhone. When I try to run it on my iPhone it just says "iPhone…
brettfazio
  • 1,136
  • 10
  • 25
47
votes
9 answers

Jenkins - failed: No test report files were found. Configuration error?

I'm beginner for "Jenkins" and following this tutorial. At the Sixth step I got below error. xcodebuild: error: Scheme JenkinsTest is not currently configured for the test action. Build step 'Xcode' marked build as failure Recording test results …
iPatel
  • 46,010
  • 16
  • 115
  • 137
47
votes
7 answers

ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle"

When I am try to submit my app to app store, I am getting the error: ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value com.companyname.projectName under the application…
Raju Abe
  • 735
  • 2
  • 10
  • 25
47
votes
2 answers

Printing/Debugging libc++ STL with Xcode/LLDB

I'm trying to use LLDB within Xcode 8 to debug very basic STL. I used to be able to print a vector like this: p myvector[0] to see whatever was in the first vector index. Now when I do that, I get this error: error: Couldn't lookup symbols: …
cjserio
  • 2,857
  • 7
  • 29
  • 29
47
votes
8 answers

OpenURL in iOS10

So apparently OpenURL has been deprecated in iOS 10. Does anyone have any documentation on why or can explain what to do next? I looked on the Apple site already and found a few things pertaining to OpenURL and this is what they say to use…
KSigWyatt
  • 1,368
  • 1
  • 16
  • 33
47
votes
3 answers

iPhone app under test crashes after a few days

I am new to making iPhone apps and this is my first attempt. I have made a simple app which has two buttons in it. One button opens a URL and the other opens a Pop-up window. I am yet to enroll as an apple developer and am testing my application on…
hs7624
  • 693
  • 2
  • 10
  • 20
47
votes
1 answer

83.5x83.5@2x app icon is required for iPad apps targeting iOS 9.0 and later

Just saw this warning after upgrading to Xcode 7.2. Why is this warning appearing all of a sudden with 7.2/9.2? I'm guessing this is for iPad Pro support? Does this just mean 167x167 since it's at 2x ? EDIT: I do see that (now in Xcode 7.2) there…
Bradley Thomas
  • 4,060
  • 6
  • 33
  • 55
1 2 3
99
100