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
13
votes
2 answers

CoreData: annotation: Failed to load optimized model at path (Xcode 11 -> iOS 12)

When building and running a Core Data project (created with Xcode 10) using Xcode 11 (beta 3) on an iOS 12 device, I get the warning: CoreData: annotation: Failed to load optimized model at path …
mmklug
  • 2,252
  • 2
  • 16
  • 31
13
votes
4 answers

SwiftUI call mutating func from var body

In the tutorial from Ray that I'm following I have the following properties set struct ContentView : View { var rTarget = Double.random(in: 0..<1) var gTarget = Double.random(in: 0..<1) var bTarget = Double.random(in: 0..<1) } These…
trusk
  • 1,634
  • 2
  • 18
  • 32
12
votes
2 answers

com.apple.dt.SKAgent on Xcode 11.2.1 consuming all resources

Any thoughts why this process com.apple.dt.SKAgent (4321) is consuming all mac mini resources? My Macmini has 16gb and 1Tb SSD drive . And, Xcode 11.2.1 becomes very slow and hangs. I have two workspaces (client/server) open and debugging is a…
12
votes
1 answer

Xcode 11: "SimulatorTrampoline.xpc" wants to access files managed by "iCloud Drive"

Recently updated to Xcode 11 GM seed 2 (11A420a) and I when running my app on a simulator (iPhone Xs Max (probably irrelevant)) a dialog popped up asking permission to access my iCloud. Why? Apple did not provide any reason as to why which felt…
Sajjon
  • 8,938
  • 5
  • 60
  • 94
12
votes
4 answers

Getting currently focused UIScene when multiple connected scenes are active in foreground

I have a problem getting the current UIScene when multiple scenes are connected. Specifically, my app (iOS 13) supports multiple windows on the iPad. When I have two windows side by side and I access the apps connected scenes (with…
freshking
  • 1,824
  • 18
  • 31
12
votes
1 answer

Accessing MKMapView elements as UIViewRepresentable in the main (ContentView) SwiftUI view

I am using SwiftUI to display a map and if user tapped on an annotation, it pops up a detail view in the VStack. I have made the map view and inserted annotations in another SwiftUI file. I also made the detail view. How can I access the…
MRF
  • 455
  • 1
  • 6
  • 13
12
votes
15 answers

"Cannot Preview in this file - Failed to launch [App Name]"

I am trying to play around with swiftUI in Xcode 11 and macOS Catalina. BUT After creating a new Project, there is a boiler plate code with a Text that says hello World. I want to have a live preview of this simple welcome message in the canvas by…
Parajuli Roman
  • 551
  • 1
  • 6
  • 15
12
votes
3 answers

Xcode 11 CFLocaleCopyCurrent console error

Just installed Xcode 11.0 beta (11M336w), and once running an empty app getting this console error: [general] CFLocaleCopyCurrent() failed to look up current locale via 'AppleLocale' and 'AppleLanguages' in user preferences; falling back to…
Amir
  • 9,577
  • 11
  • 41
  • 58
11
votes
0 answers

Why does launching iOS Xcode simulator create Crash Report after MacOS Catalina upgrade, and what to do about it?

Recently upgraded my Macbook to Catalina OS v10.15.1 and have since been experiencing performance problems with the Simulator in Xcode (11.2.1). To be precise, the simulator is working OK, but my Macbook fan starts running high immediately after…
JMBaker
  • 502
  • 3
  • 7
11
votes
1 answer

Core data + CloudKit - sharing between iOS and watchOS companion app

In my app I store data with core data. Recently I discovered the new feature introduced by Apple in WWDC19 which allows core data to work with CloudKit. I just enabled cloudKit for my app and used an NSPersistentCloudKitContainer instead of…
Cydiaddict
  • 277
  • 4
  • 17
11
votes
5 answers

Why doesn't my iOS app disable dark mode?

So ... I've tried to set my app to disable iOS 13 dark mode by forcing light mode according apple documentation, in the emulator all attempts work fine, but when I try on the real device, nothing happens, it's like I've never changed my code First…
Fogaiht
  • 113
  • 1
  • 1
  • 6
11
votes
2 answers

Settings.bundle version number is updating as $(MARKETING_VERSION)

I have an app which was setting versions automatically when I incremented from XCode > General > Version. But recently I have updated XCode to 11.0 and seems the script is not working as expected: version=`/usr/libexec/PlistBuddy -c "Print…
Nagarjun
  • 6,557
  • 5
  • 33
  • 51
11
votes
2 answers

Does anyone know what happened to test results for Xcode 11 UI testing?

I used to be able to access results in Derived Data inside the .xcresults package. .xcresults package still exists, but where there used to be a file named "TestSummaries.plist", and subdirectories containing attachments (like screenshot files,…
KerwinLumpkins
  • 111
  • 1
  • 3
11
votes
3 answers

Xcode 11: cannot instantiate view controller from storyboard with identifier

I'm using Xcode 11.1 and my deployment target is iOS 10.0 I can't instantiate a view controller like before. Here is the code in func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: …
Suh Fangmbeng
  • 573
  • 4
  • 16
11
votes
4 answers

iOS 13 not getting VoIP Push Notifications in background

I'm developing a softphone in Swift using CallKit and PushKit. Before iOS 13, VoIP notifications were working perfectly. But after the iOS 13 update, my app isn't getting VoIP push notification when it's in background. In foreground…
delavega66
  • 855
  • 2
  • 23
  • 39