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
354
votes
15 answers

After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView

After upgrading to Xcode 11.2 from Xcode 11.1 my app crashes: *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named…
Sudhakar Tharigoppula
  • 2,857
  • 3
  • 16
  • 17
309
votes
11 answers

How to delete Swift Package Dependency in Xcode 11?

I have a project in Xcode 11 that I added Swift Package Manager dependencies to. I now realized that I no longer need one of the package dependencies I previously added to my project. As you can see below, there are no options under File > Swift…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
124
votes
4 answers

"Do Not Embed", "Embed & Sign", "Embed Without Signing". What are they?. What they do?

We have 3 new options in "Frameworks, Libraries, and Embedded Content" section of Xcode11 Beta for adding libraries. Xcode Libraries section screenshot Can anyone explain what they do?
Shreeram Bhat
  • 2,849
  • 2
  • 11
  • 19
123
votes
31 answers

'Build input file cannot be found' Swift 4.2, Xcode 10.0

I am getting the following error when building in Xcode 10.0 with swift 4.2:
Robbie Cronin
  • 1,557
  • 2
  • 10
  • 15
117
votes
24 answers

Could not find module for target 'x86_64-apple-ios-simulator'

I have my custom framework and it works properly in XCode 10. I rebuild it in XCode 11 beta 3, then integrated into the app, and get the following error: Could not find module 'MyCustomFramework' for target 'x86_64-apple-ios-simulator'; found:…
Oleshko
  • 2,923
  • 4
  • 17
  • 25
109
votes
8 answers

Show Assistant Editor missing in Xcode 11?

In Xcode 10, the toolbar had an inter-locking ring icon which showed the assistant editor, it's missing in Xcode 11.
Hackman
  • 2,629
  • 3
  • 18
  • 24
105
votes
3 answers

What does "invalid mode 'kCFRunLoopCommonModes' ..."mean?

Environment: Version 11.0 beta 3 (11M362v) Here's the full text: invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per…
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
100
votes
6 answers

Consume Swift Package for multiple targets and platforms in a project?

I have a project with multiple targets, such as an iOS app, a watchOS app, and some frameworks. How can I assign the same Swift Package to all my targets? Xcode only let's me select one: If I try to add the Swift Package again so I can try…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
94
votes
13 answers

Getting 'no such module' error when importing a Swift Package Manager dependency

I'm running Xcode 11 Beta 4. I'm using CocoaPods, and wanted to use one of my dependencies with Swift Package Manager as a static library instead of as a framework. On a fresh project created with Xcode 11, the dependency can be imported…
Adar Hefer
  • 1,514
  • 1
  • 12
  • 18
92
votes
11 answers

How to upload IPA now that Application Loader is no longer included in Xcode 11

I'm a little afraid to ask this question because the problem seems huge to me and yet I don't see anyone panicking about it. I'm a little afraid to sound crazy, but I'm going to go for it : As we can read on Apple's post Submissions Update…
Enzo B.
  • 2,341
  • 1
  • 11
  • 33
82
votes
2 answers

Xcode 11 backward compatibility: "UIWindowScene is only available in iOS 13 or newer"

In Xcode 11, I created a new app project from the Single View App template. I want this app to run in iOS 12 as well as iOS 13. But when I switch the deployment target to iOS 12, I got a lot of error messages like this one: UIWindowScene is only…
matt
  • 515,959
  • 87
  • 875
  • 1,141
81
votes
8 answers

Where can I download old versions of Xcode?

I am able to download the current versions of Xcode and other resources from the Apple Developer Center(s), but where can I download older versions? Specifically, I am looking for recent older Xcode
Marina
  • 3,222
  • 5
  • 25
  • 35
78
votes
2 answers

SwiftUI: unwanted split view on iPad

Problem: a view on Pad shows up with unwanted split view. My current setup is: Catalina OSX beta 5 + Xcode 11 Beta 5 Here is the code I used, with a Navigation View and a Navigation Title: import SwiftUI struct SwiftUIView: View { var body:…
Mane Manero
  • 3,086
  • 5
  • 25
  • 47
77
votes
8 answers

Xcode 11 add new constraints set zero: use set value instead of default / standard

I used to use autolayout add new constraints to make simple constraints to superview / relative view like this (for loooong time): However, recently after updated to the latest xcode (11.3.3 or just 11.3/11C29), I have this weird issue: when I set…
Eddie
  • 1,903
  • 2
  • 21
  • 46
75
votes
9 answers

How to fix "Scrollable Content Size Ambiguity" in Xcode 11 (iOS 12, iOS 13) using Auto Layout

When using Auto Layout, I am unable to set up a simple UIScrollView in my view controller in Xcode 11 beta. I know that I must constrain the scroll view to the edges, and then set the scroll view width and height equal to the width and height of the…
Pranav Ramesh
  • 780
  • 1
  • 5
  • 9
1
2 3
87 88