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
45
votes
12 answers

ios 13 - Custom SearchBar with UISearchBar _searchField not working

Before Xcode-11-Beta (ios13) below code for custom searchbar value for key to get textField working fine. Now getting below crash log. 'NSGenericException', reason: 'Access to UISearchBar's _searchField ivar is prohibited. This is an application…
Pratik Sodha
  • 3,679
  • 2
  • 19
  • 38
42
votes
2 answers

Xcode11 Editors (via "Add Editor to Right") are disabled

It has been working all this while since I upgraded to Xcode11.2. A couple of days back noticed it and now it's not allowing me to add an editor to the layout. Similar to Editor changes introduced in Xcode 11. Tried: Restarting Xcode Rebooting…
ashokds
  • 2,204
  • 1
  • 7
  • 11
42
votes
1 answer

addSubview SwiftUI View to UIKit UIView in Swift

I have tried to addSubview a SwiftUI View to UIView. self.view.addSubview(contentView) Error: Cannot convert value of type 'ContentView' to expected argument type 'UIView' Kindly help me to implement this UI. import UIKit import SwiftUI class…
Kathiresan Murugan
  • 2,783
  • 3
  • 23
  • 44
41
votes
8 answers

Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler

I have a VoiceSampler.framework that was built with Xcode 10.3 I am trying to use that framework in Xcode11 in a new project. I have successfully added that framework, but when I write import VoiceSample in AppDelegate, I get the following…
Bharat Biswal
  • 1,755
  • 2
  • 15
  • 23
40
votes
3 answers

How to fix "Read-Write-Data Sandbox: error when using Mac Catalyst

I recently updated to macOS Catalina so I could update some of my apps with Mac support using Catalyst. Whenever I run the app and it tries to access the CloudKit data (I use CloudKit to sync Core Data, Data if an iCloud Account is available), it…
117MasterChief96
  • 548
  • 1
  • 5
  • 16
39
votes
16 answers

Cannot preview in this file - active scheme does not build this file : SwiftUI on Xcode 11 in CatalinaOS

I opened Landmark App using SwiftUI on Xcode 11 in macOS Catalina(10.15) and while opening the Canvas Editor for .swift files containing SwiftUI is showing Cannot preview in this file - active scheme does not build this file Try Again,…
ruhulrahat
  • 1,325
  • 4
  • 15
  • 23
39
votes
5 answers

Add a border with cornerRadius to an Image in SwiftUI Xcode beta 5

how can I add a border with a cornerRadius to an Image. I get a deprecation warning saying that i should use a RoundedRectange Shape, but i don't know how to use that exactly Beta 4: Image(uiImage: ...) .border(Color.black, width: 2,…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
38
votes
1 answer

Xcode 11 Won't Open New Editor Pane

So Xcode 11 changed the way editor panes are added and removed. Ok, fine, I got used to it soon enough. But a few days after using the Xcode 11 GM build, the option to add an editor is suddenly disabled. Could be a bug, could be a 'feature' that…
Jaysen Marais
  • 3,956
  • 28
  • 44
38
votes
4 answers

Xcode 11 UILaunchImages has been deprecated, use launch storyboards instead Warning

I just downloaded Xcode 11 Beta 4 and when I want to build my Swift 4 project gives me: UILaunchImages has been deprecated, use launch storyboards instead How can I fix it?
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
38
votes
10 answers

SwiftUI: Automatic Preview Updating Error "Failed to build ContentView.swift"

I'm trying to run the Automatic Preview in Xcode 11, however even though the project builds successfully, the automatic preview fails giving me the error Failed to build ContentView.swift. Failed to code sign ContentView.swift. I have just created…
Ash_B
  • 393
  • 1
  • 3
  • 8
37
votes
8 answers

Compiler error: Invalid library file - CoreLocation

I have one of my application, that is created in Xcode 8. I have used CoreLocation and MapKit in that app. I have update app with latest iOS till now. and it was working fine. Now I am updating application with iOS 1. So I hvae opened app with Xcode…
VRAwesome
  • 4,721
  • 5
  • 27
  • 52
36
votes
4 answers

SwiftUI dynamic List with Sections does not Layout correctly

I'm trying to create a simple dynamic list grouped into sections. (SwiftUI iOS13 Xcode11 beta 2) A simple static example would be : struct StaticListView : View { var body: some View { List { Section(header: Text("Numbers"),…
Bo Frese
  • 893
  • 1
  • 8
  • 9
35
votes
4 answers

Xcode 11 beta 4 error: Command CompileSwiftSources failed with a nonzero exit code

I've downloaded the latest Xcode beta 4. When I build I'm getting the same error with 3 of my pods: Command CompileSwiftSources failed with a nonzero exit code :0: error: unknown argument: '-w' :0: error: unknown argument:…
Daniel Ryan
  • 6,976
  • 5
  • 45
  • 62
35
votes
8 answers

Xcode build fails due to Undefined symbol: __swift_FORCE_LOAD_$_swiftUIKit

I created a brand new project in Xcode 11 (an iOS single-view project with SwiftUI) and enable Mac as a target device. Without doing anything else, I try to build, and I get this error: ld: warning: directory not found for option…
Ky -
  • 30,724
  • 51
  • 192
  • 308
34
votes
8 answers

Does iOS 13 has new way of getting device notification token?

So my friend got this email from OneSignal Due to a change that may occur as part of the upcoming iOS 13 release, you must update to the latest version of the iOS SDK before building your app with Xcode 11. All of OneSignal’s wrapper SDKs including…
Ahmadreza
  • 6,950
  • 5
  • 50
  • 69
1 2
3
87 88