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
9
votes
6 answers

iOS SwiftUI: ScrollView ignore top safe area

I have a shared view in my app that can be called in different places. The root of this view is a scroll view, but sometimes it ignores the top safe area and it collapses under the navigation bar. Here two screenshots that shows better the…
Andrea Miotto
  • 7,084
  • 8
  • 45
  • 70
9
votes
1 answer

How to build a Fat Framework that includes Mac Catalyst?

How does one build a fat framework that includes the architectures necessary to build to Mac Catalyst apps?
9
votes
2 answers

Deprecation warning in Mac Catalyst but only in Objective-C, not in Swift

I'm using Xcode 11 on the GM build of Catalina (10.15). I'm working on building my iOS app for Mac Catalyst. My iOS app has a deployment target of iOS 11. I have a simple line in a view controller such as: self.modalInPopover = YES; Compiles clean…
rmaddy
  • 314,917
  • 42
  • 532
  • 579
9
votes
2 answers

Google Maps integration into SwiftUI

Im fairly new into programming with Xcode and SwiftUI and am having trouble integrating Google Maps into a SwiftUI project. I added all the right API keys into my AppDelegate.swift file and have created a view called GoogMapView that i am trying to…
zlyt
  • 259
  • 5
  • 23
9
votes
3 answers

UITableViewCell selectedBackgroundView's color not visible when building on iOS 13

I have given a tableview cell a color on selection in cellForRowAtIndexPath using let backgroundView = UIView() backgroundView.backgroundColor = UIColor.grey3 //custom color cell.selectedBackgroundView = backgroundView Since I am…
Samuël
  • 1,147
  • 1
  • 10
  • 17
9
votes
2 answers

Could not find module 'MyCustomFramework' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7

I have a custom framework that I am archiving for use in another project. After updating to Xcode11 I get the following error in my project utilizing the framework. Could not find module 'MyCustomFramework' for target 'x86_64-apple-ios-simulator';…
FSUWX2011
  • 355
  • 1
  • 3
  • 8
9
votes
1 answer

iOS13 can't support the background update notification?

iOS13 can't support the background update notification.Is this an OS-level bug? And when app enter background,the Xcode warning shows: Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended.…
YongJie
  • 119
  • 1
  • 7
9
votes
1 answer

NSCocoaErrorDomain Code=257 file couldn’t be opened because you don’t have permission to view it : FileManager attributesOfItem returns nil in iOS13

FileManager returns permission error while trying to get the file size, in iOS 13 devices. do { let attr = try FileManager.default.attributesOfItem(atPath: my_file_path) //--> Getting nil fileSize = attr[FileAttributeKey.size] as! UInt64 }…
manukv
  • 2,031
  • 18
  • 30
9
votes
3 answers

Xcode 11 GM - error: accessing build database - disk I/O error

Encountering following error when only building a "Universal Binary Framework" for release distribution. Same project and settings works when building "Non-Universal" scheme in debug or release mode. Project uses Objective-C & Xcode 11 GM…
lal
  • 7,410
  • 7
  • 34
  • 45
9
votes
3 answers

How to fix warning "CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: '(null)'"?

I am trying to test app on the iOS 13 beta. When I tap a button on my welcome screen to segue to another screen the app freezes and then terminates. When I debug in Xcode 11 I see following warning lines in the console: [framework] CoreUI:…
Gomer Grek
  • 207
  • 2
  • 9
9
votes
5 answers

Cannot preview in this file - [App Name].app may have crashed on Xcode 11 Beta 5

The Xcode preview does not work if i add a EnviromentObject property wrapper. Everytime i add one the Canvas doesn't build and i get this error: Cannot preview in this file - [App Name].app may have crashed If i replace the EnviromentObject…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
9
votes
1 answer

How to refresh number of ForEach's displaying elements after array's size changes (SwiftUI, Xcode 11 Beta 5)

Im trying to implement a view that can change the amount of displaying items (created by a ForEach loop) if the content array's size changes, just like how a shopping app might change its number of items available after the user pull to…
Nguyễn Khắc Hào
  • 1,980
  • 2
  • 15
  • 25
9
votes
3 answers

How to ignore safe area for a background with a linear gradient in swiftUI?

With SwiftUI, I know how to set a background with a simple color all over screen. So only background ignore the safe area. But when I want to do this with a linear gradient, I don't know do this. My view with a simple background : import…
Guillaume
  • 1,500
  • 3
  • 24
  • 33
9
votes
2 answers

How to format customized SF-Symbols SVG files for import into Xcode11

Has anyone figured out how to create customized SF-Symbols using the techniques outlined in the WWDC video, the only existing documentation that I can find on the subject? According to the video one can simply edit the exported SVG file and reimport…
Brandon C.
  • 410
  • 4
  • 8
9
votes
1 answer

Is there a way to execute a function after an animation in SwiftUI?

In UIKit you can do something like this: UIView.animate(withDuration: TimeInterval, animations: { //animation }) { (Bool) in //code which will be executed after the animation } Is there anything like that in SwiftUI, or can you think of a…
Paul
  • 459
  • 7
  • 14