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
18
votes
3 answers

How can I exclude files/folders from repo with Swift Package Manager?

My library FlexColorPicker recently adopted SPM support. It works but I don't like that when FlexColorPicker package is added via Xcode, some unneeded files are downloaded. For example, FlexColorPicker.podspec and the entire GifsAndScreenshots…
Rasto
  • 17,204
  • 47
  • 154
  • 245
18
votes
2 answers

Xcode 11, Main Interface fixed with Main.storyboard

Main Interface is not changing with another storyboard in Xcode 11, it always run with Main.storyboard after changing with another storyboard, I have checked "is initial View Controller" after using a View Controller in new Storyboard. I have tested…
Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46
18
votes
10 answers

NSBluetoothAlwaysUsageDescription required, but bluetooth is not used

In my ios app with new Xcode 11 GM Seed 2 after deploy, apple returned error: ITMS-90683: Missing Purpose String in Info.plist with…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
18
votes
5 answers

SwiftUI: How to persist @Published variable using UserDefaults?

I want a @Published variable to be persisted, so that it's the same every time when I relaunch my app. I want to use both the @UserDefault and @Published property wrappers on one variable. For example I need a '@PublishedUserDefault var…
Sreeni
  • 205
  • 2
  • 6
18
votes
2 answers

Is it possible to install Xcode 11 on High Sierra (10.13.6)?

I have a Mac early 2011 running MacOS high sierra 10.13.6. My Mac can't upgrade to higher MacOS versions. I need to install XCode 11 to take advantage of SwiftUI. This answer worked for XCode 10.2 but didn't work for XCode 11. So can I install…
Mostafa Mazrouh
  • 181
  • 1
  • 1
  • 4
17
votes
5 answers

iOS SwiftUI how to bring up extra actions like "Embed in VStack" when interacting with code?

I am looking at this SwiftUI tutorial and it suggests I can see extra actions upon Command-Clicking the SwiftUI elements in code. In my Xcode, this jumps me to the class definition. I see there's an option in XCode 11.0 t change the Option key to…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
17
votes
1 answer

App store app uploading failed with ERROR ITMS-90534 and WARNING ITMS-90703

I'm trying to upload the app to the app store. But getting the error as below: App Store Connect Operation Error ERROR ITMS-90534: "Invalid Toolchain. Your app was built with an unsupported version of Xcode or SDK. If you plan to submit this build…
swapnil patel
  • 384
  • 2
  • 17
17
votes
4 answers

Change button background colour on tap in SwiftUI

I am trying to change colour of my Button in SwiftUI. This is my whole CustomButton view struct: struct CustomButton: View { @State private var didTap:Bool = false var body: some View { Button(action: { self.didTap =…
0ndre_
  • 3,577
  • 6
  • 26
  • 44
17
votes
5 answers

Adding Local dependencies in XCode11 using SPM

Is it posible to integrate local dependencies with SPM in xcode 11, File > Swift Packages > Add Package dependency... It only seems to populate and let me select git repos hosted on bitbucket I am just not sure if I am approaching the issue the…
user6252584
  • 229
  • 2
  • 8
17
votes
7 answers

UITabBarItem icon not colored correctly for iOS 13 when a bar tint color is specified in Interface Builder in Xcode 11, beta 2

I have a problem with the color of my UITabBarItems when I run on iOS 13 simulators, using Xcode 11, beta 2. I have made a sample project from scratch, and everything works correctly when I do not specify a bar tint color. However, when I do…
Jordan Wood
  • 2,727
  • 3
  • 12
  • 17
17
votes
6 answers

How change .navigationBarTitle font in SwiftUI?

I'm using SwiftUI with Xcode 11 and I want to change NavigationBarTitle font with these lines of codes: .navigationBarTitle (Text("Navigation Bar Title"), displayMode: .inline) .font(.subheadline) but nothing happened. any suggestion or…
Sajjad
  • 1,536
  • 2
  • 17
  • 31
17
votes
4 answers

Xcode 11 Beta won't build because of WatchKit?

Worked on Xcode 10. Now in the beta I can't build I keep getting this error: a "WatchKit" is not available when building for iOS Simulator. Consider using #if !os(iOS) to conditionally import this framework.
jimijon
  • 2,046
  • 1
  • 20
  • 39
16
votes
1 answer

SwiftUI List Background color

I am trying on setting a view background color to black with the following code struct RuleList: View {[![enter image description here][1]][1] private var presenter: ConfigurationPresenter? @ObservedObject private var viewModel:…
trusk
  • 1,634
  • 2
  • 18
  • 32
16
votes
4 answers

How to connect outlet from storyboard to UITableViewCell class Xcode 11

How can we connect outlet with the table view custom cell class in storyboard? As in earlier Xcodes, there is a button to open two windows in storyboard screen but in new Xcode that button is missing. Please guide how to achieve that functionality.
iPhone 7
  • 1,731
  • 1
  • 27
  • 63
16
votes
10 answers

Install claimed to have succeeded, but application could not be found on device Xcode 11

Just after switching from Xcode 10 to 11, I am unable to install my app on any device The error at launch time after installation succeeded says : Install claimed to have succeeded, but application could not be found on device. Details says :…
glemoulant
  • 517
  • 7
  • 18