xcode11

Xcode 11 beta 5: UI freezes when adding textFields into UIAlertController

人盡茶涼 提交于 2019-12-24 06:27:28
问题 When I add one or more textField into UIAlertController the app freezes, once I deleted the textFields it works perfectly fine. Xcode 11 beta 5 running on Mojave 10.14.6 @IBAction func addRecipeBtnHandler(_ sender: Any) { let alert = UIAlertController(title: "Add new recipe", message: nil, preferredStyle: .alert) alert.addTextField { textField in textField.placeholder = "title" } alert.addTextField { textField in textField.placeholder = "description" } let action = UIAlertAction(title: "Add",

Xcode 11 beta 5: UI freezes when adding textFields into UIAlertController

我们两清 提交于 2019-12-24 06:26:11
问题 When I add one or more textField into UIAlertController the app freezes, once I deleted the textFields it works perfectly fine. Xcode 11 beta 5 running on Mojave 10.14.6 @IBAction func addRecipeBtnHandler(_ sender: Any) { let alert = UIAlertController(title: "Add new recipe", message: nil, preferredStyle: .alert) alert.addTextField { textField in textField.placeholder = "title" } alert.addTextField { textField in textField.placeholder = "description" } let action = UIAlertAction(title: "Add",

Copying Resource Files For Xcode SPM Tests

吃可爱长大的小学妹 提交于 2019-12-23 04:07:09
问题 I am new to the Swift Package Manager but with its integration into Xcode 11 it is time to give it a try. I have a new application and SPM library within a new workspace. I have a working library with tests and have successfully imported the library into the application. I need to extend the SPM library with new tests that parse json files. I have learned that a resources directory feature is not supported. The only workable scheme seems to be a file copy step added to the library build

Error using String(format: , args) with SwiftUI in Xcode11 Beta 4

泄露秘密 提交于 2019-12-22 10:56:35
问题 After upgrading to Xcode 11 Beta 4, I starting seeing an error when using String(format: , args) with @State property. See code below. Second Text line throws an error: Expression type 'String' is ambiguous without more context while Text s 1, 3, and 4 work just fine. struct ContentView : View { @State var selection = 2 var body: some View { VStack { Text("My selection \(selection)") // works Text("My selection \(String(format: "%02d", selection))") // error Text("My selection \(String(format

Xcode 11 Won't Open New Editor Pane

若如初见. 提交于 2019-12-22 01:58:55
问题 So Xcode 11 changed the way editor panes are added and removed. Ok, fine, I got used to it soon enough. But a few days after using the Xcode 11 GM build, the option to add an editor is suddenly disabled. Could be a bug, could be a 'feature' that I've inadvertently triggered. Neither the menu, toolbar button nor shortcut ( ^ ⌘ T ) will give me another editor (though they all did with the same build yesterday). Any ideas? (Note: this screenshot has the Navigator pane hidden for simplicity. It's

Optional linking for Swift Combine.framework in Xcode 11

耗尽温柔 提交于 2019-12-21 04:09:13
问题 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 have error dyld: Library not loaded: /System/Library/Frameworks/Combine.framework/Combine We fixed same issue for SwiftUI by linking it optionally. But we can't make same for Combine as it can not be even selected for linking 回答1: You can add the

Xcode 11 Upgrade | Could not find iPhone X simulator | XRPackageModel 9.0.omo

你说的曾经没有我的故事 提交于 2019-12-21 01:27:13
问题 Anyone else getting this since upgrading from Xcode 10.3 to Xcode 11 when running react-native run-ios and any idea to get back up and running? CoreData: annotation: Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo' error Could not find iPhone X simulator 回答1: I remember this happening before and amending: node_modules⁩ ▸ ⁨

Can't update Xcode 11 [closed]

為{幸葍}努か 提交于 2019-12-20 17:34:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 months ago . Trying to update from Xcode 11 GM to 11.1 always fail. I tried moving /Applications/Xcode.app first... nothing works This is my commerce log: 2019-10-08 12:29:08+01 leviathan installd[556]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=501 "The package is attempting to install content to

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

假装没事ソ 提交于 2019-12-19 14:19:10
问题 This question already has answers here : App archived with Xcode 11.2 (11B52) rejected: ITMS-90534: Invalid Toolchain (2 answers) Closed last month . 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 to the App Store, make sure you are using the GM version of Xcode 10.1 and the SDK for iOS 12.1 and

How to have a dynamic List of Views using SwiftUI

限于喜欢 提交于 2019-12-18 14:55:26
问题 I can do a static List like List { View1() View2() } But how do i make a dynamic list of elements from an array? I tried the following but got error: Closure containing control flow statement cannot be used with function builder 'ViewBuilder' let elements: [Any] = [View1.self, View2.self] List { ForEach(0..<elements.count) { index in if let _ = elements[index] as? View1 { View1() } else { View2() } } } Is there any work around for this? What I am trying to accomplish is a List contaning