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
51
votes
26 answers

Error while build project Xcode says : "you don't have permission"

I have downloaded one project from the internet and, when I am trying to run it/build it the XCode, XCode says : The file “PROJECT NAME” couldn’t be opened because you don’t have permission to view it. I have also put read/write permission to the…
jogshardik
  • 1,446
  • 1
  • 12
  • 23
51
votes
1 answer

Email composure iOS 8

I'm trying to open email composure in iOS 8 from Xcode 6, but getting an error. The same code is working fine if I'm trying from Xcode 5. Later I downloaded a sample code from apple developer portal:…
Chahal
  • 995
  • 2
  • 14
  • 24
51
votes
20 answers

Xcode beta 6 iOS 8: Simulator not working

I cannot launch the simulator successfully. Once I launch the IOS Simulator this error appears: "Unable to boot the IOS Simulator." Following the IOS Simulator error, I then get an error from Xcode reading: Unable to run app in Simulator An…
JakeFromStateFarm
  • 547
  • 1
  • 4
  • 8
51
votes
11 answers

Xcode 6 Storyboard Unwind Segue with Swift Not Connecting to Exit

When trying to connect a Navigation Bar Button to the Exit item of a ViewController in Xcode 6 (not really sure if it's an Xcode 6 problem but worth mentioning as it is in beta) it does not find the Swift function in the custom class. The function…
skabob11
  • 1,306
  • 1
  • 10
  • 19
51
votes
6 answers

New to Xcode can't open files in c++?

I've been using windows in a class I've been taking but I am trying to run a basic code to figure out how to open/close/input/output from files on Xcode and the code I usually use on visual studios isn't working any idea why? thanks! #include…
user3473255
  • 511
  • 1
  • 5
  • 3
51
votes
19 answers

Xcode error : Distill failed for unknown reasons

Does anybody know why this error happens on Xcode 5? Answer I had this problem when I accidentally renamed a .psd as a .png. Converting the image to an actual png instead of a Photoshop file fixed it for me.
Jun
  • 3,422
  • 3
  • 28
  • 58
51
votes
3 answers

How to download image with AFNetworking 2.0?

Appareantly there is no AFImageRequestOperation, but only AFImageResponseSerializer and frankly I don't get it or maybe I'm just looking too long through AFNetworking site... Downloading images with previous AFNetworking was like a charm. I'd hate…
raistlin
  • 4,298
  • 5
  • 32
  • 46
51
votes
12 answers

Xcode5 "No matching provisioning profiles found issue" (but good at xcode4)

Everything is OK on Xcode4.6. When I try to use Xcode5 dp6 to run app on devices. I got an error of "No matching provisioning profiles found issue". How can I resolve this issue?
liangwang
  • 707
  • 1
  • 6
  • 15
51
votes
3 answers

How to add Exception Breakpoint in Xcode?

How to add Exception Breakpoint in Xcode? int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); [pool release]; return…
iPhoneChip
  • 658
  • 1
  • 7
  • 15
51
votes
8 answers

GPX files for iOS Simulator

Where I can find GPX files that I can import into my iOS Simulator? The iOS Simulator only contains static locations around the world and walk / bike / car drive simulations. This is not good enough for unit testing or other specific use cases. This…
Jakub
  • 13,712
  • 17
  • 82
  • 139
51
votes
8 answers

Install IPA with iTunes 11

I have an IPA signed for ad-hoc distribution. I can install it fine with Xcode Organizer by dragging it to the device. It also worked with iTunes <=10 by dragging onto the device name. I'd like to install it via iTunes 11 though. Dragging it onto…
fabb
  • 11,660
  • 13
  • 67
  • 111
51
votes
2 answers

How do I know when safe to ignore __cxa_throw on an All Exceptions breakpoint?

I am on Xcode 4.5.1. I think this is relatively new behavior I am seeing. I prefer to develop and test my projects with the "All Exceptions" breakpoint enabled. I have been running into a scenario where I am loading thumbnail images to cells in a…
Del Brown
  • 928
  • 1
  • 7
  • 19
51
votes
4 answers

Stack trace or more info on unhandled exception in Xcode/iPhone

Excuse my ignorance, but something's been bugging me about the Xcode debugger when running iPhone applications in the iPhone Simulator. Sometimes, when I mess something up in Interface Builder, I get an unhandled exception at runtime and I get…
Philippe Leybaert
  • 168,566
  • 31
  • 210
  • 223
50
votes
4 answers

Understanding performSegueWithIdentifier

Can someone more knowledgeable than I explain performSegueWithIdentifier:sender: for me? I need to switch views (and classes) and also carry a few NSStrings and IDs over to that view's class. I was wondering if this is possible with…
Simon Barkhuizen
  • 846
  • 1
  • 9
  • 18
50
votes
3 answers

How to disable Xcode4.2 Automatic Reference Counting

Today, I have update my xCode to 4.2 version, And I want to disable the ARC, I also search with the google. but can't fix my problem. According the search results, In the target setting, I can't find the 'Objective-C Automatic reference…
user501836
  • 1,106
  • 1
  • 12
  • 20