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
54
votes
10 answers

Xcode could not find a valid private certificate/valid key-pair for this profile in your keychain

Possible Duplicate: Xcode - iPhone - profile doesn’t match any valid certificate-/private-key pair in the default keychain I'm having a problem installing a provisioning profile created by another developer. Development Certificate already…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
54
votes
5 answers

UIWebViewDelegate not monitoring XMLHttpRequest?

Is it true that the UIWebViewDelegate does not monitor requests made by using a XMLHttpRequest? If so, is there a way to monitor these kind of requests? e.g. UIWebViewDelegate does not catch this in -(BOOL) webView:(UIWebView *)webView…
Thizzer
  • 16,153
  • 28
  • 98
  • 139
54
votes
2 answers

How to enable Dark Mode for Xcode

Apple announced a new Dark Mode for Xcode 10. I've downloaded the beta but now I can't find any option to turn it on. I'm currently on macOS 10.13 High Sierra.
Lukas Würzburger
  • 6,543
  • 7
  • 41
  • 75
54
votes
9 answers

Can the UI Automation instrument be run from the command line?

Is there a way to open the UIAutomation instrument through the terminal? Will it be possible to write an AppleScript to open Apple's UIAutomation tool and load the application to be tested? Can you please tell me is there any way through scripting…
Vijay
  • 878
  • 1
  • 7
  • 21
54
votes
10 answers

Xcode-beta can not be opened while it is being updated

I'm using Xcode beta 8.1 beta 2 for development. It was working fine for me. But suddenly, it closed and I tried to open it prompted me this message: Xcode-beta can not be opened while it is being updated. When will it be resolved?
Maniganda saravanan
  • 2,188
  • 1
  • 19
  • 35
54
votes
8 answers

Compile Time Incredibly Slow

My project consists of ~350 Swift files and ~40 cocoa pod dependencies. As soon as the entire project was migrated to Swift 3, build times have been INCREDIBLY slow and took a little over 3 minutes to completely compile. I've noticed that if I…
dhint4
  • 1,132
  • 2
  • 11
  • 25
54
votes
5 answers

Swift 2, warning: could not load any Objective-C class information from the dyld shared cache

I have found a few questions regarding this issue, yet none of them were helping with my problem. I am trying to save an object to core data using this code (which worked perfectly fine in Xcode 6 and Simulator...): let fetchRequest =…
zero
  • 745
  • 1
  • 5
  • 12
54
votes
1 answer

print long string in xcode 6 debugging console

I am getting only 1022 characters of my String to display in the debugging console of Xcode6. The actual length is around 2500 characters. Is there a way to display all character in the console or do i have to write them in a file. i have tried…
Adarkas2302
  • 1,704
  • 2
  • 17
  • 25
54
votes
3 answers

Redundant conformance error message Swift 2

I updated my project to Swift 2, and received a bunch of redundant conformance of XXX to protocol YYY. This happens especially often (or always) when a class conforms to CustomStringConvertible. Also some place with Equatable. class…
Khanh Nguyen
  • 11,112
  • 10
  • 52
  • 65
54
votes
9 answers

Sound not working in iPhone Simulator?

Somehow my iPhone Simulator is unable to play sounds. First an app I'm working on using AudioServicesPlaySystemSound() stopped working.. I spent a while debugging this but sound is still working on the iPhone when I run the app on the device. I…
pix0r
  • 31,139
  • 18
  • 86
  • 102
54
votes
11 answers

iOS simulator is not launching

I am facing this problem again and again. Anybody can give the solution to this problem except reboot the Mac? I have already tried these tricks simulator-->services-->a reset content and settings, closing xcode and re-opening xcode --> developer…
nitin.agam
  • 1,949
  • 1
  • 17
  • 24
54
votes
8 answers

iOS 8.1 Simulator always uses US keyboard layout despite german hardware keyboard

For some reason, I cannot enter text with my native german keyboard into iOS Simulator any more. After downloading Xcode 6.1 (which contains iOS 8.1), I was stuck with the US layout. I tried things like changing all Hardware/Keyboard settings,…
pawi
  • 2,463
  • 3
  • 16
  • 16
54
votes
9 answers

Import Framework in Swift Project, Xcode

I'm trying to import myFramework into a project. I've added myFramework in Build Phases->Link Binary With Libraries. Objective-c works: #import #import But with in Swift, I get a No such module…
phnmnn
  • 12,813
  • 11
  • 47
  • 64
54
votes
10 answers

UIKeyboard not appearing when tapping on UITextField

I had been into a weird problem, As every other thing is working fine. All of sudden when I compile my application and got this problem, when I tapped on the UITextField white space is popping up, but the keyboard is not visible and I am not able…
user3518271
54
votes
8 answers

UISegmentedControl deselect (make none of the segments selected)

in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried: [menu setSelectedSegmentIndex:-1]; menu being the UBOutlet for uisegmentedcontrol but this gives me exception. anyone have…
dusker
  • 846
  • 2
  • 8
  • 13