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
21
votes
1 answer

How do I put a swift package in Edit Mode?

So I want to edit some files in a swift package in Xcode 11.0 beta (11M336w) on MacOS 10.15 Beta (19A471t). Let's take https://github.com/AndyQ/NFCPassportReader as an example. It has an example app which uses the repo from GitHub. Suppose I want to…
Tycho Pandelaar
  • 7,367
  • 8
  • 44
  • 70
21
votes
5 answers

Unable to infer complex closure return type with SwiftUI

Following part 3 of Apple's tutorial on SwiftUI, Handling User Input, I get this error: Unable to infer complex closure return type; add explicit type to disambiguate I'm using the same code as the tutorial (even coping from the 'Complete' sample…
Tieme
  • 62,602
  • 20
  • 102
  • 156
20
votes
3 answers

MFMailComposeViewController behaves differently in iOS 13 simulator and device

I'm trying to display MFMailComposeViewController in an app. if MFMailComposeViewController.canSendMail() { let mailComposeViewController = MFMailComposeViewController() mailComposeViewController.navigationBar.tintColor = .white …
Isuru
  • 30,617
  • 60
  • 187
  • 303
20
votes
9 answers

Unable to build react native project after updating to xcode 11.0

I have a react native project running on react native version 0.59.8 , and xcode version 10.3. Somehow my xcode got updated to version 11.0 and after that i am unable to build the project using react-native run-ios command. I have tried cleaning up…
Ganesh Krishna
  • 714
  • 1
  • 7
  • 13
20
votes
2 answers

Add localizable.strings to Swift Package?

In my previous framework, I have a localizable.strings file with some global entries for localization. On the left lane, there was a “Localize” button in Xcode to do this. How can I do this with Swift Package Manager?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
20
votes
2 answers

How to go to another view with button click

I have a button in my code and I have a file called LogindView.swift I cannot get the code to open another view file when clicking on the button. Can anybody give me an example on how to do it. In my button action I have tried to write LogindView()…
Jens Thomsen
  • 327
  • 1
  • 2
  • 5
19
votes
2 answers

Xcode 11 recompiles too much

Xcode 11 is recompiling (nearly?) my whole project, even if I just change a local private variable, or change a value of a constant in local scope, sometimes even in local private function scope. I sometime can get 2 or 3 changes with quick builds…
Nikolay Suvandzhiev
  • 8,465
  • 6
  • 41
  • 47
19
votes
1 answer

What is the "Development Assets" feature introduced in Xcode 11 and how to use it?

When I examined settings of a target in Xcode 11.1 (accessed when clicking on a project in the Project navigator sidebar and then clicking on an executable target), I noticed a new expandable section called "Development Assets", which wasn't present…
Max Desiatov
  • 5,087
  • 3
  • 48
  • 56
19
votes
2 answers

Xcode 11 stuck on archiving

I‘m using Xcode 11 GM 2 to archive my app. It uses CocoaPods and Swift. When trying to archive my app, it infinitely gets stuck here: This still happens after removing Firebase or other frameworks. Any ideas on how to resolve this?
thatmarcel
  • 388
  • 3
  • 15
19
votes
3 answers

Xcode 11 PDF image assets "Preserve Vector Data" not working in SwiftUI?

I'm trying to use vector-based PDF images using "Single-Scale" in an app I'm working on using SwiftUI in Xcode 11, but the image always looks blurry when I scale it up in size. I had no trouble with this in UIKit in Xcode 11. I created a dummy app…
Danielle
  • 201
  • 2
  • 5
19
votes
2 answers

Save packages downloaded by SPM into project GIT using Xcode 11

I started using new Xcode 11 which integrates SPM. I added first dependency to my project: but detected that files are not fetched into my project folder but into Xcode's cache: I would like to commit all my dependencies files into my main project…
Kamil Harasimowicz
  • 4,684
  • 5
  • 32
  • 58
19
votes
6 answers

how to make the modal view with a transparent background in SwiftUI?

Anyone knows how to to make the modal view with a transparent background. Exactly like the below link in swift Swift Modal View Controller with transparent background
user11967411
19
votes
2 answers

Binding an element of an array of an ObservableObject : 'subscript(_:)' is deprecated

I'm using an ObservableObject 'DataStore', which contains an array ('exampleList') of objects ('exampleObject'). @Published exampleList = [exampleObject]() I'm calling the DataStore via @EnvironmentObject ('dataStore'). @EnvironmentObject var…
hasselfred
  • 191
  • 1
  • 7
19
votes
4 answers

Optional linking for Swift Combine.framework in Xcode 11

Our application supports iOS 11 and higher. In iOS 13 we use SwiftUI + Combine we wrap import of SwiftUI or Combine framework with correspondent check #if canImport(SwiftUI) or #if canImport(Combine). If we run our app from Xcode 11 under iOS 12 we…
Igor Palaguta
  • 3,579
  • 2
  • 20
  • 32
18
votes
1 answer

Add dependency on a local swift package in Xcode 11

I am trying to add a dependency on a local swift package in my Xcode project. (I don't want to add a dependency using a file url file://me/dev/app/package as this cannot be shared to other environments) I tried to drag & drop the package to the…
Guig
  • 9,891
  • 7
  • 64
  • 126