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
50
votes
3 answers

Xcode Interface Builder - "correct" way to delete/rename miswired IBOutlets / IBActions?

I am new to Xcode, working through Swift, so I'm not sure if what I am decribing is actually a bug. When using interface builder and the assistant editor, I can create lables, buttons etc, and create Outlets and Action in the code with a…
dave_the_dev
  • 1,555
  • 3
  • 15
  • 27
50
votes
11 answers

dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate when trying to run iOS app

My app is crashing with the message: dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate Referenced from: /var/mobile/Applications/C7B596AD-FB09-4685-BDFC-7E955A5DD185/IRON TRAINERS.app/IRON TRAINERS Expected in: …
Jorge
  • 1,492
  • 1
  • 18
  • 33
50
votes
4 answers

How to get UIImage of AppIcon?

I am using Assets Catalog, and adding app icon of various size to the assets is okay. But when I tried to get the UIImage programmatically, it returned nil. UIImage *appIcon = [UIImage imageNamed"AppIcon"]; The app icon is named AppIcon (the…
samwize
  • 25,675
  • 15
  • 141
  • 186
50
votes
2 answers

Cocoapods dependency in pod spec not working

I'm getting a syntax error with this spec file: Pod::Spec.new do |s| s.name = "BSImageLoader" s.version = "0.1.3" s.summary = "The image loading framework for PicPoc" s.homepage =…
LunaCodeGirl
  • 5,432
  • 6
  • 30
  • 36
50
votes
16 answers

A valid provisioning profile for this executable was not found... (again)

I know this has been asked and answered multiple times but I'm tearing my hair out as none of the proposed solutions appears to work. I receive the above error, despite having a valid provisioning profile which, as far as I can tell matches the…
Robert
  • 5,278
  • 43
  • 65
  • 115
50
votes
5 answers

xcode storyboard Container View - How do I access the viewcontroller

I'm trying to use storyboard and get things working properly. I've added a a Container View to one of my existing views. When I try to add a reference to this in my view controller .h file (ctrl-drag), I get a IBOutlet UIView *containerView. How do…
Justin808
  • 20,859
  • 46
  • 160
  • 265
50
votes
7 answers

How do you duplicate a file in XCode?

Anyone know a good solution? So far I have not found a better way than using File>New file and then copying contents from old file to new. You can probably duplicate in Finder and re-import but that's almost same amount of work: switching to finder,…
Rod
  • 1,975
  • 4
  • 19
  • 23
49
votes
6 answers

Deploy to iPhone without running

How do I deploy my app down to the iPhone (for testing purposes) from XCode without actually running the app?
Jason Marcell
  • 2,785
  • 5
  • 28
  • 41
49
votes
4 answers

Xcode 14.3 build error "unable to initiate PIF transfer session (operation in progress?)"

Ran into this build error in Xcode 14.3 that prevents me from building my app. Build service could not create build operation: unknown error while handling message: MsgHandlingError(message: "unable to initiate PIF transfer session (operation in…
Flantasy Flan
  • 1,297
  • 1
  • 9
  • 8
49
votes
5 answers

Xcode: show documentation for my custom classes

How can I force Xcode to show my own documentation for custom classes, methods, etc.? I'm used to Java and Eclipse, which shows me documentation for my classes as shown here: How can I achieve the same in Xcode? Are there special comments that…
Peter Štibraný
  • 32,463
  • 16
  • 90
  • 116
49
votes
13 answers

Xcode 4.1 can't reinstall. App store says "installed"

Today i update my system to Lion and try to update Xcode. After downloading from app store i get error. So i remove my old Xcode 4.0 by this command /Developer/Library/uninstall-devtools –mode=all But now in app store i have the status "installed"…
Ale
  • 493
  • 1
  • 4
  • 4
49
votes
10 answers

Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature

I'm getting this weird warning. I'm not sure what could cause it. A .dia file extension supposedly indicates a core digraph graphics file. I did not add one and the app has almost no ui at all. Could not read serialized diagnostics file:…
ScottyBlades
  • 12,189
  • 5
  • 77
  • 85
49
votes
12 answers

Xcode Device Issue - Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode

Error and warnigs in devices and simulators Issue : Details Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode. Domain: com.apple.platform.iphoneos Code: 5 Failure Reason: allowsSecureServices: 1. isConnected:…
Jeff
  • 1,328
  • 1
  • 6
  • 9
49
votes
29 answers

SwiftUI / Xcode Error - Updating took more than 5 seconds

When I try to preview one of my views in the canvas I keep getting the following error: PreviewUpdateTimedOutError: Updating took more than 5 seconds All my other views load perfectly fine. Why is this happening and how do I resolve? I am using…
MattBlack
  • 3,616
  • 7
  • 32
  • 58
49
votes
16 answers

Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max

My problem is I cannot start debugging on iOS simulator for some reason. I have tried several solutions it helped in their ways I guess but the problem is not gone and I am desperate now. I don't know how exactly is this site works or is there any…
ysahin20
  • 491
  • 1
  • 4
  • 5