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

Swiftui - How do I initialize an observedObject using an environmentobject as a parameter?

I'm not sure if this is an antipattern in this brave new SwiftUI world we live in, but essentially I have an @EnvironmentObject with some basic user information saved in it that my views can call. I also have an @ObservedObject that owns some data…
snarik
  • 1,035
  • 2
  • 9
  • 15
23
votes
1 answer

Swift Package Manager dynamic library

I've recently converted a bunch of my frameworks to use Swift Package Manager. My Package.swift looks something like this: // swift-tools-version:5.1 import PackageDescription let package = Package( name: "MDFToolbox", platforms: [ …
Mark
  • 7,167
  • 4
  • 44
  • 68
23
votes
2 answers

How get rootViewController with iPadOS multi window (SceneDelegate)?

I am using Xcode 11 (beta3) and building an app for iOS 13. In my project I created the delegate methods for UIWindowSceneDelegate declaring it in Info.plist. Now I'm able to create multiple windows (and UIScene). How can I access the…
Fabiosoft
  • 1,141
  • 14
  • 32
23
votes
2 answers

What is the use of "Preview Assets" assets catalog in Xcode 11 beta?

What is the use of "Preview Assets" assets catalog in Xcode 11 beta? I have just created new project with SwiftUI. I have checked release notes of Xcode 11 beta but there is no information about this assets catalog. What is the use of it?
Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136
23
votes
1 answer

Xcode 10+: how to switch to legacy build system?

There seem to be some problems with the new build system in Xcode 10. How do I switch to the old (legacy) build system? NOTE: While one can apparently still use it for a bit longer (in June 2022), the legacy build system is marked deprecated in…
Clay Bridges
  • 11,602
  • 10
  • 68
  • 118
22
votes
12 answers

"Command PhaseScriptExecution failed with a nonzero exit code" when archiving

so I have an app built with Expo but then ejected to get ios and android folder everything works fine on both android and ios I have published it for android but on ios when I try to archive the project it gives me an error Command…
Surafel
  • 675
  • 4
  • 11
  • 24
22
votes
1 answer

Xcode 11.2.1 - Swift 5 - Can't change main storyboard "Main" to another storyboard "Start"

I have created a new storyboard named "Start.storyboard", but when I change Main Interface to "Start" nothing happened, The app just started with default storyboard "Main.storyboard". I'm using Xcode 11.2.1 and iOS 13.2.3 Also I have tried to…
22
votes
3 answers

IconRenderer Warning in Xcode 11.2

I just created a new iOS Single View App and I try to build and run it. I had received the warning as below: [Renderer] IconRenderer: HorizontalStretchPadding (18.000000, 18.000000) is larger than the image size (34.000000, 54.000000). Image will…
aznelite89
  • 2,025
  • 4
  • 21
  • 32
22
votes
3 answers

How to register Associated Domains with Xcode 11?

I've been trying to add Associated Domains capability to my App but can't find it using Xcode 11. Has this feature disabled upon version 11?
ademarizu
  • 845
  • 1
  • 8
  • 18
22
votes
10 answers

iOS 13 Schedule iOS background tasks

I am implementing BackgroundTasks Framework for updating the data. But I got the below issue Could not schedule refreshApp: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)" Could not schedule data featch: Error…
Gurjinder Singh
  • 9,221
  • 1
  • 66
  • 58
22
votes
2 answers

iOS 12.4 is missing in Xcode 11 GM

I have installed Xcode 11 GM and can't find iOS 12.4.1 simulator anymore. iOS 12.4.1 was installed in Xcode 10.3, but it is not available in Xcode 11 for some reason (not only iOS 12.4 - other simulators are also missing). Moreover, I can't download…
Serzhas
  • 854
  • 12
  • 23
22
votes
3 answers

Does not conform to protocol BindableObject - Xcode 11 Beta 4

Playing around with examples out there. Found a project that had a class that was a bindableobject and it didn't give any errors. Now that Xcode 11 beta 4 is out, I'm getting the error: Type 'UserSettings' does not conform to protocol…
ShadowDES
  • 783
  • 9
  • 20
21
votes
5 answers

Crashlytics thread crashed only on iOS13 built with Xcode11

My app is crashed only on iOS13 with the following call stack: #57. Crashed: com.twitter.crashlytics.ios.exception 0 myapp 0x105d6d494 CLSProcessRecordAllThreads + 376 (CLSProcess.c:376) 1 myapp …
bemul12
  • 413
  • 2
  • 4
  • 13
21
votes
3 answers

SwiftUI code is working in iphone but blank screen in ipad?

Though application is universal but ipad screen is blank. I have added checked both iphone and ipad. When running app in iphone works fine, but in ipad is not showing anything. struct UserListView: View { var userName:String @State var…
Rock
  • 1,408
  • 1
  • 12
  • 27
21
votes
2 answers

PropertyWrappers and protocol declaration?

Using Xcode 11 beta 6, I am trying to declare a protocol for a type with properties using @Published (but this question can be generalized to any PropertyWrapper I guess). final class DefaultWelcomeViewModel: WelcomeViewModel & ObservableObject { …
Sajjon
  • 8,938
  • 5
  • 60
  • 94