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
53
votes
4 answers

this certificate was signed by an unknown authority

I need to create ipa file for testing purposes. I go to Keychian access -> Certificate assistant -> Request a certificate from a certificate authority and create some.certSigningRequest file. Then I upload that file to customer iOS Provisioning…
Nikola Jovic
  • 2,329
  • 2
  • 16
  • 17
53
votes
7 answers

How to support both armv6 and armv7s for release build in xcode 4.5

I know that this is not possible and Apple planned it this way to force the users to upgrade their devices. But I just want to know if there is some workaround or hacks in able to do this? The client insists that we should still support armv6…
schystz
  • 800
  • 1
  • 8
  • 21
53
votes
6 answers

No plus or minus button in Xcode localization settings

I need to translate an iOS-Application within two days, but my XCode versions (4.4 and 4.5 Developer Preview) both don't give me the option to add another language. I only get the option to click "Make localized.." but I can only choose english and…
CGee
  • 1,650
  • 5
  • 20
  • 31
53
votes
4 answers

Error submitting app via XCode

I'm trying to submit an app tonight and I can validate the app find but when I go to submit, get the following errors: Apple's web service operation was not successful Unable to Authenticate the package exception occurred when creating…
BlueShoe
  • 693
  • 1
  • 7
  • 8
52
votes
2 answers

Xcode 4.3 not presenting Autoresizing panel in Size Inspector

In Xcode 4.3 I'm not seeing the "Autoresizing" panel (with the red crosshair things) in the Attributes Size Inspector. What I see instead are two panels, one titled "Content Hugging Priority" and the other titled "Content Compression Resistance…
PZX
  • 529
  • 1
  • 4
  • 7
52
votes
3 answers

UITableView Scroll event

I want to detect if mytable view has been scrolled, I tried all touch events like this one: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesBegan:touches withEvent:event]; //my code } but it seems that…
Alaa Eldin
  • 2,178
  • 4
  • 21
  • 24
52
votes
2 answers

How to debug "message sent to deallocated instance" in Xcode 4?

I pressed alt+cmd+r and activated NSZombieEnabled in Arguments > Environment Variables. Additionally, I activated it in Diagnostics > Memory Management > Enable Zombie Objects. However, when I built and run, at some point my app crashes giving me…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
52
votes
4 answers

How to get the frame of a view inside another view?

I have an UIImageView in the self.view (the main View) and inside it there is a UIButton. I want to know what's the frame of UIButton in self.view not in UIImageView.
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
52
votes
8 answers

Xcode 14 Beta - Build Issues with LLDB

I am having issues when building any app with an iPhone 11 Pro or iPad Pro as the physical device destination. A new instance of a standard template app with Hello World takes moments to build and install on the phone, but then the app freezes on a…
tdc
  • 521
  • 1
  • 3
  • 3
52
votes
5 answers

How can I run older Xcode version on new macOS version?

I am facing a problem running older versions of Xcode on newer MacOS versions. For example, Xcode 13 on MacOS Ventura.
stackich
  • 3,607
  • 3
  • 17
  • 41
52
votes
6 answers

Core Data Save Error (NSValidationErrorKey, Cocoa error 1570) saving NSDate

I'm getting an error with saving to a Core data object in Xcode. Xcode says that the error is in the NSDate variable 'datum' but I have tried almost everything. Error is: 2011-07-12 18:01:29.068 WeekLijstje[3205:207] Core Data Save…
Peter
  • 521
  • 1
  • 4
  • 4
52
votes
15 answers

PhaseScriptExecution error in React Native app

Facing this error when I run react-native run-ios after creating the project Error - error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with…
Harsh Nagalla
  • 1,198
  • 5
  • 14
  • 26
52
votes
3 answers

How to profile memory usage & performance with Instruments?

Of all the Instruments Trace Templates, I love using: Zombies to detect where an object is getting over-released, great for debugging EXEC_BAD_ACCESS errors. Leaks to detect memory leaks. Core Animation w Color Blended Layers to detect frame rate &…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
52
votes
7 answers

Unable to look up screen scale and Unexpected physical screen orientation in Xcode 10

I have recently updated Xcode to version 10, and now my console displays: MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale MyApp[1618:133310] [AXMediaCommon] Unexpected physical screen orientation MyApp[1618:133310] [AXMediaCommon]…
Pasosta
  • 825
  • 3
  • 13
  • 22
52
votes
5 answers

Xcode Clipboard: Copy & Paste stuck

I've just updated to Xcode 9.4.1 and experienced an issue with the clipboard being cleared randomly. So I select a text, hit CMD+C, then go to the position I want to paste it, hit CMD+V, but either it plays the system alert sound and doesn't paste…
Lukas Würzburger
  • 6,543
  • 7
  • 41
  • 75