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
10
votes
5 answers

In Xcode 11, what are the keyboard shortcuts to open/change file in assistant editor?

Seems like we can use ^⇧⌘↩︎ to focus/unfocus current editor, though even when the current editor gets unfocused, I'm not sure how to control what gets opened in the assistant editor. I would like to know the keyboard shortcuts for: Open a specified…
Ivy Xing
  • 284
  • 2
  • 8
10
votes
3 answers

How to write apps for iOS 12 in Xcode 11?

I just installed Xcode on my new MacBook. The new starting templates for Swift iOS require iOS SDK 13+ (ie they either need UISceneDelegate or SwiftUI). Is there a way to create a new app using a built-in template that is compatible with iOS 12?
Frederic
  • 499
  • 2
  • 7
  • 14
10
votes
2 answers

SwiftUI Text won't expand into multiple lines

I've just started using SwiftUI with the retail build. I cannot get one of my text views to automatically expand into multiple lines. I've read many thread on SO and HackingWithSwift but cannot get it to work. I think perhaps it might be tied to…
iShaymus
  • 512
  • 7
  • 26
10
votes
3 answers

Assert Current fallback trait collection contains one or more unspecified traits:

Once our app is run on iOS13 then the log is full of wried assertions. Anybody some tips how to remove it? 2019-09-19 08:05:43.528382+0200 Ts-2-cz-test[56066:20590106] [Assert] Current fallback trait collection contains one or more unspecified…
Jan Loose
  • 103
  • 4
10
votes
3 answers

Swift 5 (Xcode 11 Betas 5 & 6) - How to write to a JSON file?

This question has been asked quite a few times over the years, but it has changed again in Swift 5, particularly in the last two betas. Reading a JSON file seems to be quite simple: func readJSONFileData(_ fileName: String) ->…
Jack Bashford
  • 43,180
  • 11
  • 50
  • 79
10
votes
1 answer

Excluding files in Swift Packages

To exclude entire sections of a file, I can use macros to target platforms such as #if os(iOS) || os(watchOS). Is there a way to do this in Package.swift, or another way to target a few files for specific platforms in Swift Package Manager?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
10
votes
3 answers

SwiftUI: Uppercase a localized string for a view, e.g. `Text`?

Using Xcode beta 6 and SwiftUI, creating a Text view using a >localized< string, how can I uppercase it without having to make the localized string value uppercased? I guess I want a ViewModifier for changing case, but it does not seem to…
Sajjon
  • 8,938
  • 5
  • 60
  • 94
10
votes
2 answers

No iOS 13 simulator in Xcode 11 beta 5

I have installed Xcode 11 beta 5 and create a sample project There is no iOS 13 simulators available: When I go on Add simulator -> Download more simulator iOS 13 is not available in list: What should I do to install an iOS 13 simulator?
Kevin ABRIOUX
  • 16,507
  • 12
  • 93
  • 99
10
votes
3 answers

Xcode 11 - Disable resize mode in catalyst swift

We are converting our Swift based iOS app to Mac compatible using Catalyst in Xcode 11. We are facing an issue in UI when user resize app window. So can we disable resize mode and give fix frame for app window?
Hardik Thakkar
  • 15,269
  • 2
  • 94
  • 81
10
votes
1 answer

Xcode 11 beta - playbackState is only available in iOS 13.0 or newer

I'm getting error: 'playbackState' is only available in iOS 13.0 or newer but MPNowPlayingInfoCenter.playbackState was used in my app for iOS 11. This is issue of iOS 13? Can I handle it now? was in iOS11: @available(iOS 5.0, *) open class…
Dmytro
  • 101
  • 9
10
votes
2 answers

TextField onCommit is never called

I have been working with SwiftUI for a week now, and as everyone, I am struggling to identify if something that doesn't work is either a bug or a misunderstanding on my part. I am using the TextField view but the onCommit closure is never executed.…
kontiki
  • 37,663
  • 13
  • 111
  • 125
10
votes
1 answer

iPhone 7 simulator is not found on Xcode 11 beta

I have downloaded Xcode 11 beta and create a project for iOS 13.0. When I search on target simulator device. There is only iPhone 8 to iPhone XR only available. iPhone 7 and iPhone 7Plus is missing. Help me.
Kathiresan Murugan
  • 2,783
  • 3
  • 23
  • 44
9
votes
1 answer

Module 'Alamofire' has no member named 'SessionManager'

Why I am getting this error, I didn't got. I already changed Alamofire to AF as using Alamofire 5. Please guide what's wrong and what need to change. Below is my code where i am getting error: private func callAlamoFireFormalData(makeThisFunction :…
iPhone 7
  • 1,731
  • 1
  • 27
  • 63
9
votes
3 answers

You don’t have permission to write to the folder that the file “ostream” is in

I had an error while editing a C++ file and Xcode put out a suggestion I clicked fix and I've been getting this pop up every time I try to run ANY file or project. More than that that I can't uninstall Xcode because the pop up is not allowing me to…
shant_01
  • 172
  • 1
  • 8
9
votes
1 answer

No such module 'PackageDescription' in Xcode 11

I have an existing projects of a framework and library and would like them to use Swift Package Manager. I have a Xcode 11 and have already already read Creating a Swift Package with Xcode. After adding Package.swift to the project and an…
Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93