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

Xcode6:Embedded binary is not signed with the same certificate as the parent app

After I add Today App Extension Target,I become impossible to compile project. below is error: error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent…
JohnyDgoode
  • 1,533
  • 2
  • 11
  • 19
55
votes
6 answers

Connect Objective-C framework to Swift iOS 8 app (Parse framework)

I am trying to use an Objective-C framework with the Swift programming language for iOS 8 development. This is a specific case of an import but the general problem is: How do you import an Objective-C framework into swift and get the import…
user284244
55
votes
2 answers

Creating an iOS library or framework using libgdx (roboVM)

Is it possible to create an iOS library or framework using libgdx (RoboVM) that can be imported into Xcode? Background: One of my colleagues has created a 3D visualisation app as a libgdx project for android and windows desktop. It can be compiled…
Wayne Shelley
  • 992
  • 10
  • 25
55
votes
4 answers

What is Cocoapods?

What is Cocoapods? I've seen that a lot of developers have been using Pods when developing apps to install APIs, but I'm not grasping why you couldn't just import the files manually. What is their purpose, and how are they helpful?
James
  • 717
  • 2
  • 6
  • 9
55
votes
3 answers

#ifdef DEBUG versus #if DEBUG

It is unclear to me when using compiler directives which of the below two code snippets is correct/preferred and why. It seems that most developers and Open Source projects I've seen use the first but I have seen the second used frequently as…
lidsinker
  • 1,190
  • 1
  • 11
  • 20
55
votes
2 answers

Accessing objects in NSMutableDictionary by index

To display key/values from an NSMutableDictionary sequentially (in a tableview), I need to access them by index. If access by index could give the key at that index, I could than get the value. Is there a way to do that or a different technique?
4thSpace
  • 43,672
  • 97
  • 296
  • 475
55
votes
8 answers

Change the listing order of the view controllers in Xcode storyboard

I'm just starting my first application using storyboards. I'm using Xcode 4.5 and iOS 6 SDK. I want to know how to change the order in which the controllers are listed in the Document Outline (panel to the left of the storyboard).
Darren
  • 10,091
  • 18
  • 65
  • 108
55
votes
3 answers

What is armv7s?

This seems to be a new option in newer XCode - instead of "armv6 armv7" under Valid architectures I now see "armv7 armv7s". What is armv7s and do I need to build for it as well as armv7?
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
55
votes
18 answers

Xcode shows many errors but program compiles and runs fine (in both simulator and device)

After installing the CocoaLumberjack' log compressor class I've been getting this annoying behavior: Xcode complains that there are many undeclared identifiers and gives me many errors (not warnings but errors with the red icon). The thing is that…
Julian
  • 8,808
  • 8
  • 51
  • 90
55
votes
7 answers

this class is not key value coding-compliant for the key view

i´m very new to xcode... a made an app (simple calculator) work´s pretty good (on simulator and device). When i set the main interface in the summary options from Target, i get the following error when starting the simulator: 2012-04-14…
hugoboss
  • 551
  • 1
  • 4
  • 3
54
votes
4 answers

Xcode Playground Failed to launch

I can't run any Xcode Swift Playground project without getting the error: Failed to launch process. Failed to attach to stub for playground execution: error: attach failed ((os/kern) invalid argument) Does anyone know how to solve this?
Steve Code Brain
  • 663
  • 1
  • 4
  • 6
54
votes
8 answers

App Store Connect Upload Error "You haven't been given access to cloud-managed distribution certificates"

Uploading an iOS app to App Store Connect with Xcode (Automatically manage signing) and received this error: The following errors occurred while locating and generating signing assets. ... Communication with Apple failed. You haven't been given…
Ric Santos
  • 15,419
  • 6
  • 50
  • 75
54
votes
22 answers

Launch Screen not working on iOS 14 with Xcode 12

I upgraded Xcode to version 12 and tested my app on iOS 14. Now the problem is, that my launch screen is just showing in black. I tested it with an iOS 13.5 device and it is still working as expected. I tried to remove the launchscreen.storyboard…
Sylber
  • 961
  • 1
  • 7
  • 15
54
votes
3 answers

How to add configurations to Xcode?

There are no other way, I search a lot. In XCode 3 this is easy, but now.. In the screen above, I have the Build Configuration, so I can chose if I want: Debug Release This 2 kind of config, have their own config in "Build Settings" tabs (in…
Rodrigo
  • 11,909
  • 23
  • 68
  • 101
54
votes
17 answers

Cannot run application on simulator after installing Xcode 11 - CFBundleVersion error

Yesterday, I've downloaded beta version of Xcode 11. After that, I've opened my project and tried to run with new Xcode. Unfortunately error has occurred with message: Failed to install the requested application Domain: NSPOSIXErrorDomain Code:…
Piotr Sękara
  • 710
  • 1
  • 5
  • 8