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
240
votes
11 answers

Xcode 'Build and Archive' menu item disabled

I have been using the new 'Build and Archive' feature of the latest Xcode 3.2.3. I like it. Now I noticed that it is always disabled for some reason. I can't seem to figure out what I changed to cause this.
toofah
  • 4,455
  • 4
  • 31
  • 42
239
votes
19 answers

Xcode iOS project only shows "My Mac 64-bit" but not simulator or device

This just started happening that my iOS project is only showing "My Mac 64-bit" rather than the Simulator or my iPhone to build to. I have no idea why this is happening. I do not think that I have changed anything. I have my project set to iOS 5…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
235
votes
7 answers

How to collapse all methods in Xcode?

How to collapse all methods in a class in Xcode? Collapsing one by one is not an option anymore.
Omer
  • 5,470
  • 8
  • 39
  • 64
235
votes
15 answers

Is it possible to update a localized storyboard's strings?

I localized a part of my application with creating a base.lproj storyboard and 3 string files for it. It was a month ago and after that I added new view controller to app, but this controller's buttons and labels not appear in string files Is it…
GeLB
  • 2,351
  • 2
  • 13
  • 5
234
votes
10 answers

Where is Xcode's build folder?

Before Xcode 4 the build used to be created in the root folder of my project. I can no longer find it. Where can i find the build folder?
aryaxt
  • 76,198
  • 92
  • 293
  • 442
233
votes
16 answers

Can you Run Xcode in Linux?

Can you run Xcode in Linux? Mac OS X was based on BSD Unix, so is it possible? From what I have heard, there is a MonoDevelop plugin that has an iPhone simulator.
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
233
votes
3 answers

Library? Static? Dynamic? Or Framework? Project inside another project

I have an existing iOS app and want to add a large chunk of code that I've been developing as another project just for ease of testing. The new chunk basically deals with saving an image to various sharing services, etc.. Because that sharing code…
pizzafilms
  • 3,829
  • 4
  • 24
  • 39
230
votes
11 answers

How to change time and timezone in iPhone simulator?

How do I change time and time zone in the iPhone simulator?
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
227
votes
11 answers

Can I start the iPhone simulator without "Build and Run"?

I want to delete an app in the simulator before I "build and run". How can I start the simulator so I can do the deletion? If I start it by "build and run" I get a long log output that takes a while because of a bug I'm trying to fix. I'd like to…
RobertL
  • 14,214
  • 11
  • 38
  • 44
227
votes
7 answers

Class PLBuildVersion is implemented in both frameworks

iOS 10 / Xcode 8 GM build getting the below, never had it before on Xcode 7. Any ideas? objc[25161]: Class PLBuildVersion is implemented in both …
FlatDog
  • 2,685
  • 2
  • 16
  • 19
227
votes
40 answers

Application Loader stuck at "Authenticating with the iTunes store" when uploading an iOS app

We have been trying to submit an app to the iTunes store using Application Loader for three days and keep getting stuck at the "Authenticating with the iTunes store" step. We have read many forums (including stackoverflow) and tried what was…
rufusrobot
  • 2,271
  • 2
  • 12
  • 3
227
votes
21 answers

missing private key in the distribution certificate on keychain

I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our app, I requested from our team lead to send me the distribution certificate…
moshikafya
  • 3,190
  • 5
  • 22
  • 27
226
votes
35 answers

"No such module" when using @testable in Xcode Unit tests

I recently updated to Xcode 7 beta 5. I tried adding a unit test to an earlier project, but I am getting the error message "No such module [myModuleName]" on the @testable import myModuleName line. I tried cleaning the project with Option Clean…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
226
votes
3 answers

What should Xcode 6 gitignore file include?

What should the typical .gitignore include for Xcode 6? Also for information regarding the xccheckout introduced in Xcode 5 see here
Epic Byte
  • 33,840
  • 12
  • 45
  • 93
222
votes
25 answers

Xcode 4 says "finished running " on the targeted device -- Nothing happens

The app neither installs nor runs on my device. All provisioning profiles are up to date. I've already tried deleting and re-installing them. The status bar shows that Xcode is building my project, then it says running my project on , then it says…
D-Nice
  • 4,772
  • 14
  • 52
  • 86