Questions tagged [xcode11]

This tag should only be used for questions specific to the usage and features of Xcode 11. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Xcode 11 is year 2019 version of Apple's IDE. Made available in beta at the start of WWDC 2019 on June 3, 2019. This provides support for iOS 13, macOS 10.15, watchOS 6, and tvOS 13.

Xcode 11 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11 requires a Mac running macOS 10.14.3 or later.

1314 questions
34
votes
3 answers

Chaining animations in SwiftUI

I'm working on a relatively complex animation in SwiftUI and am wondering what's the best / most elegant way to chain the various animation phases. Let's say I have a view that first needs to scale, then wait a few seconds and then fade (and then…
Rony Rozen
  • 3,957
  • 4
  • 24
  • 46
33
votes
7 answers

Xcode 11 XCUITest Failed to get matching snapshots: Error getting main window kAXErrorServerNotFound

After building my app in Xcode 11 and running my suite of XCUITests I am getting many random failures with the following. Failed to get matching snapshots: Error getting main window kAXErrorServerNotFound No matter how long I increase timeouts the…
Luke Street
  • 441
  • 1
  • 4
  • 8
33
votes
9 answers

ASAuthorizationAppleIDRequest with name and mail scope returns nil values

I'm implementing Sign in with Apple and noticed that the email and fullName properties of the returned ASAuthorizationAppleIDCredential are only filled on the very first Sign-In for this Apple ID. On all subsequent Sign-Ins those properties are…
mhaddl
  • 885
  • 1
  • 9
  • 18
33
votes
2 answers

CoreData crash error Xcode 11 Beta, IOS 13 Beta

Im trying building my application from Xcode11 beta on phone IOS 13 Beta. I have crash when application loading. 2019-07-22 13:58:12.910460+0300 GoodWine[3738:792501] [error] fault: One or more models in this application are using transformable …
32
votes
2 answers

Instantiated optional variable shows as nil in Xcode debugger

Since I upgraded to Xcode 11 and Swift 5.1 I've encountered a strange issue -- after an optional variable is instantiated, it can still show as up nil in the Xcode debugger! I have an optional class variable called booking: var booking:…
Dylan
  • 2,315
  • 2
  • 20
  • 33
30
votes
6 answers

SwiftUI - PresentationButton with modal that is full screen

I am trying to implement a button that presents another scene with a "Slide from Botton" animation. PresentationButton looked like a good candidate, so I gave it a try: import SwiftUI struct ContentView : View { var body: some View { …
Mane Manero
  • 3,086
  • 5
  • 25
  • 47
25
votes
1 answer

How to stop Xcode 11 from changing CFBundleVersion and CFBundleShortVersionString to $(CURRENT_PROJECT_VERSION) and $(MARKETING_VERSION)?

Since version 11, Xcode sets my CFBundleVersion value to $(CURRENT_PROJECT_VERSION) and my CFBundleShortVersionString to value $(MARKETING_VERSION) whenever I enter Version or Build values in the target settings (tab "General"). The actual version…
hotdogsoup.nl
  • 1,078
  • 1
  • 9
  • 22
25
votes
8 answers

IOS 13: spacing Issue with UITextField rightView

I am facing a spacing issue with a right view of UITextField in IOS 13, See my following code and screenshot of ios 13 and ios 12.4 In IOS 12.4 simulator display proper space in the right view (UIButton)of UITextField In IOS 13.0 simulator has a…
AtulParmar
  • 4,358
  • 1
  • 24
  • 45
25
votes
4 answers

Unable To Run Unit Tests in Xcode 11: The run destination * is not valid for tests you have chosen to perform

Pretty sure my tests were running fine before I updated from Xcode 10.3 to Xcode 11. Now when I try to run a test I get the following error. The run destination iPhone 5s is not valid for tests you have chosen to perform. Please select a run…
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
25
votes
3 answers

Xcode 11 beta 6 behind Xcode 11 beta 7 download link?

I have tried to download several times Xcode beta version which should be Xcode 11 beta 7 with iOS 13.1 beta support. I am downloading it from this link: https://download.developer.apple.com/Developer_Tools/Xcode_11_Beta_7/Xcode_11_Beta_7.xip Also,…
uerceg
  • 4,637
  • 6
  • 45
  • 63
25
votes
4 answers

How to integrate SwiftLint with an iOS app using Swift Package Manager?

I'm creating a new iOS app using Xcode 11 (beta 5), and I'd like to use Swift Package Manager instead of CocoaPods for managing dependencies. A common pattern when using SwiftLint and CocoaPods is to add SwiftLint as a dependency and then add a…
jjoelson
  • 5,771
  • 5
  • 31
  • 51
24
votes
1 answer

Xcode: Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team

When you compile Xcode for Mac app or other iOS, you may see below error Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team. Select a development team in the Signing & Capabilities editor. My Xcode version: 11.2.1 Mac OS:…
Sky
  • 2,212
  • 3
  • 14
  • 22
24
votes
1 answer

Xcode 11 Debugger Extremely Slow

Since downloading Xcode 11, I have noticed that setting breakpoints, stepping into and over code, that the debugger tends to hang, sometimes for minutes at a time. I cannot imagine that Apple would release something like this so I assume I have some…
PDG
  • 349
  • 3
  • 10
24
votes
2 answers

How do I make my SwiftUI UIViewRepresentable respect intrinsicContentSize in previews?

When I create a view in SwiftUI and render it in an Xcode preview, using PreviewLayout.sizeThatFits, the preview adjusts its size according to its content. When I import a UIKIt view using UIViewRepresentable, it appears with a full device-size…
knellr
  • 851
  • 8
  • 17
24
votes
3 answers

Xcode 11 - SwiftUI Preview Dark Mode

In Xcode 11, we can enable dark mode when the app is running by toggling the Environment Overrides at the bottom of the debug area like so. SwiftUI has the Canvas editor which generates live previews of the app as you are building your interface.…
Simon
  • 6,413
  • 6
  • 34
  • 57