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
16
votes
7 answers

Can I use color literals in SwiftUI

I want to use my color assets from the assets catalog using color literals. In UIKit, we can directly use color literal is there any way to use color literals in SwiftUI I have searched from Color initializer with UIColor parameter but none found
Amit Samant
  • 13,257
  • 2
  • 10
  • 16
16
votes
1 answer

How to set an ordered relationship with NSPersistentCloudKitContainer?

When I checked Used with CloudKit, the error Folder.children must not be ordered appeared. Any idea about an ordered relationship? Using Xcode 11 (beta 3). Here's the Folder Entity:
hstdt
  • 5,652
  • 2
  • 34
  • 34
16
votes
4 answers

SwiftUI Change View with Button

I understand there is PresentationButton and NavigationButton in order to change views in the latest SwiftUI. However I want to do a simple operation like below. When user clicks on SignIn button if credentials are correct it will sign them in but…
Atils
  • 171
  • 1
  • 2
  • 4
15
votes
6 answers

Not getting APNS Device token on ios 13

I have issue related to APNS device token . Before I was using Xcode 10.2 and iOS 12.1. At this moment I used to get the device token in delegate method -(void)application:(UIApplication *)application…
IOS Dev
  • 151
  • 1
  • 1
  • 4
15
votes
1 answer

SwiftUI: How to change the image for a selected item in TabbedView

Is there any way to change the image of a tab item in SwiftUI's TabbedView when it's selected or unselected? TabbedView(selection: $selection) { Text("Home").tabItem { Image(systemName: "house") Text("Home") }.tag(0) …
da1
  • 487
  • 5
  • 10
15
votes
2 answers

Install Command Line Developer Tools: can't install the software because it is not currently available from the software update server

I'm having a problem installing the Command Line Developer Tools with xcode-select --install using Xcode 11 beta and on Mac Mojave 10.14.5. The download starts happening and then gets promptly stopped with a message stating: Can't install the…
user3325126
  • 1,284
  • 4
  • 15
  • 36
14
votes
1 answer

Convert Xcode 11 testresult .xcresult to JUnit?

Since Xcode 11 the resulting output file from automated testing (Unit tests or UITests) has become .xcresult (See screenshot below). Before Xcode 11, a TestSummaries.plist file was created in the test folder that was used to build a JUnit…
ErikBrandsma
  • 1,661
  • 2
  • 20
  • 46
14
votes
2 answers

Swift UI setting making rectangle square

In SwiftUI, I have a VStack with a Rectangle inside. The rectangle automatically fills the parent VStack, which is great for the width, but I want to make the height equal to the width so it's square. How do I set the aspect ratio to 1:1 or set…
yantronica
  • 353
  • 1
  • 3
  • 12
14
votes
1 answer

Firebase pods generate duplicate symbols for architecture arm64

I need help to solve my duplicate symbols errors. It started after installing Firebase Analytics with CocoaPods. The duplicate symbols were all (34)…
Dan Abnormal
  • 1,188
  • 11
  • 21
14
votes
5 answers

iOS TabBar item title issue in iOS13

I am having issue in tabBar title for iOS13 on compiling from Xcode 11.It works perfect whle compiling from Xcode 10.Please find the screenshot for the issue and below is the code for customising the tabBar. The code is self.tabBar.isTranslucent =…
Sanjeev Pant
  • 141
  • 1
  • 3
14
votes
2 answers

How to change build setting versioning in Xcode 11 using script?

Since Xcode 11 had change Version to $(MARKETING_VERSION) & Build to $(CURRENT_PROJECT_VERSION) there are new field in build setting How can I change this value with script due to xcrun agvtool new-version xcrun agvtool new-marketing-version not…
andrew54068
  • 1,326
  • 14
  • 29
14
votes
4 answers

Xcode 11 ld error "your binary is not an allowed client of /usr/lib/libcrypto.dylib"

My project uses CMake to build, but uses the local macOS version of clang and ld when building on a Mac. After upgrading to Xcode 11 on macOS 10.15 Catalina, I'm unable to link with the following error: ld: cannot link directly with dylib/framework,…
Didier Malenfant
  • 729
  • 1
  • 10
  • 25
14
votes
1 answer

Is there any guide to submit catalyst app?

We have created new app which support iphone, ipad and mac catalyst from xcode 11. We have also create apple distribution profile to upload binary. But at submission time apple says that beta binaries are not supported. I have used xcode 11 and if i…
Amrit Trivedi
  • 1,240
  • 1
  • 9
  • 24
14
votes
1 answer

Xcode 11 - Simulator won't respond

Ever since I updated to Xcode 11, the simulator freezes intermittently. Specially when the keyboard is brought to focus. I don't think it has anything to do with memory or any hardware specs of my Mac since it does not crashes, just doesn't respond…
Marina Aguilar
  • 1,151
  • 9
  • 26
14
votes
4 answers

Xcode 11 archive gives PhaseScriptExecution failed

After I migrate my project from swift 3.2 to swift 4 in Xcode 10 I try to archive in Xcode 11 and give me this error: PhaseScriptExecution Run\ Script …
Navtti
  • 173
  • 1
  • 7