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

Is it possible to download browser in iphone simulator

I run my selenium tests across different web browsers like google chrome, firefox ie ect. These tests are being conducted in windows and Mac machine. We have requirement to run those tests in mobile browsers. I was able to run in mobile simulator…
Sajit Gangadharan
  • 707
  • 1
  • 5
  • 16
56
votes
5 answers

Could not launch "" failed to get the task for process ?

Using Xcode 4.5.2 and building for iOS4 or newer, I get this message when building for my device (iOS 6.0.1 on 4s). I dismiss the dialog then relaunch the app on my device which seems to work. I am newer to iOS development, so I aplogize in…
a-coder
  • 661
  • 1
  • 5
  • 3
56
votes
20 answers

UIImage imageNamed returns nil

I am pretty new to iOS and Xcode. I tried to load an image with [UIImage imageNamed:@"imageName.png/jpg and so on"]; but it only returns nil. The image should be in my project bundle, considering the fact that I can choose it from drag and drop…
arne somborn
  • 689
  • 1
  • 7
  • 9
55
votes
2 answers

How do I change "initwithNibName" in storyboard?

I want to change below code with storyboard with Xcode 4.2. UIViewController * example = [[ExampleViewController alloc] initWithNibName:@"ExampleViewController" bundle:nil]; Now ExampleViewController.xib file exist. but I want to make it with…
jokor7
  • 611
  • 1
  • 6
  • 8
55
votes
5 answers

when launching terminal macos get error Class ATCRTRestoreInfoFTABSubfile is implemented in both

When first launch the termainal always get this error. objc[9318]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x207c11eb0) and…
Victor Orlyk
  • 1,454
  • 2
  • 15
  • 27
55
votes
6 answers

Couldn't load a xcode project because it is already opened from another project or workspace

I have a project that has one target dependency. The target dependency is dependent on a framework called Three20. The dependency tree looks like this. myProject -> myCustomFramework -> Three20 When I tried to build and run I get the…
David
  • 14,205
  • 20
  • 97
  • 144
55
votes
12 answers

Xcode 12.3 keeps freezing

I updated to the latest AppStore release of Xcode (12.3, 12C33). It worked fine for an hour or two. After that it started to constantly freeze after being open for a few seconds to minutes. I've tried the following, all without success so…
benrudhart
  • 1,406
  • 2
  • 13
  • 25
55
votes
6 answers

How do I debug with NSLog(@"Inside of the iPhone Simulator")?

I'm used to programming and having log messages be viewable. I know you used to be able to use NSLog() to trace out messages when debugging Cocoa applications. What is the best way to "trace" messages when coding in an iPhone Xcode development…
Rob Sawyer
  • 2,163
  • 1
  • 24
  • 25
55
votes
1 answer

Shader performance data maybe unavailable due to deployment target older than device version

In a nutshell, I just want to know if I should be concerned about this issue: runtime: GPU Frame Capture: Shader performance data maybe unavailable due to deployment target older than device version The device I am using is running iOS 12.0,…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
55
votes
7 answers

ld: warning: text-based stub file are out of sync. Falling back to library file for linking

When I am trying to sourceCpp, it gives a warning: ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file …
MOOn
  • 651
  • 1
  • 5
  • 4
55
votes
9 answers

pyenv zlib error on MacOS:

My goal I am trying to install Python 2.7.5 and 3.6.5 side-by-side on my MBP with with pyenv. pyenv Installation Following How can I use Homebrew to install both Python 2 and 3 on Mac? , I tried: $ pyenv install 3.6.5 Which erred…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
55
votes
4 answers

How to change NSString value while debugging in Xcode?

When I'm stopped at a break point in Xcode, I can see the value of NSString variables. How can I change them? I can change int or double variables, but not NSString.
xmartin
  • 585
  • 1
  • 4
  • 5
55
votes
13 answers

ld: entry point (_main) undefined. for architecture x86_64 : Xcode 9

Recently I downloaded Xcode 9 and created one sample iPhone app but the app is not able to build as it shows the following error: ld: entry point (_main) undefined. for architecture x86_64 I searched on net about same and tried few ways like…
Meluha
  • 1,476
  • 1
  • 9
  • 12
55
votes
4 answers

Use Xcode 8 with iOS 11

I want to use Xcode 8 with iOS 11. should I upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 8. How can I achieve that? Apple revealed several new iOS 11 features at WWDC 2017.
Nazmul Hasan
  • 10,130
  • 7
  • 50
  • 73
55
votes
8 answers

LLDB: Couldn't IRGen expression

When I'm running a unit test and want to debug something, I set a breakpoint and type for instance "po myVariable". The response I get from LLDB is: error: Couldn't IRGen expression, no additional error Example: I have the smallest little unit…
niklassaers
  • 8,480
  • 20
  • 99
  • 146