xcode11.2

TintColor not changing for UIBarButtonItem for .normal stage in case of iOS 13.2

岁酱吖の 提交于 2021-01-28 03:42:24
问题 I have tried the almost max solution and it did not help, selected state color is applying but for a normal state, it's not applying. This issue I am facing specifically in iOS13.2 only. tabBarItem.setTitleTextAttributes([NSAttributedString.Key.font: tabFont, NSAttributedString.Key.foregroundColor: UIColor.yellow], for: .selected) tabBarItem.setTitleTextAttributes([NSAttributedString.Key.font: tabFont, NSAttributedString.Key.foregroundColor: UIColor.white], for: UIControl.State.normal) I have

Xcode11 Editors (via “Add Editor to Right”) are disabled

瘦欲@ 提交于 2020-07-14 21:20:30
问题 It has been working all this while since I upgraded to Xcode11.2 . A couple of days back noticed it and now it's not allowing me to add an editor to the layout. Similar to Editor changes introduced in Xcode 11. Tried: Restarting Xcode Rebooting MacBook No Xcode update pending in AppStore Any other suggestions to try before reinstalling the Xcode? Current State for Xcode: Disabled Editor add option Disabled Editor option via Menu->Editor Update A: After using "Adjust Editor Option" This

Swift UI: Missing return in a function expected to return 'some View'

倖福魔咒の 提交于 2019-12-25 01:37:57
问题 As I am conditionally checking, I cannot return "some view" for the func doFavoriteMath . private func doFavoriteMath(section: Labvalueslist) -> some View { for numbers in userData.favoriteIDS { if section.id == (numbers) { return ItemRow(list: section) } } } var body: some View { NavigationView { List { ForEach(userData.labvaluesUserdata) {section in self.doFavoriteMath(section: section) } } } } 回答1: There's no need to return an opaque type from your function. It always returns something of

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

After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView

蹲街弑〆低调 提交于 2019-12-17 02:18:20
问题 After upgrading to Xcode 11.2 from Xcode 11.1 my app crashes: *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)' Why is this happening? How can I prevent this crash? 回答1: Congratulation The New version of Xcode (11.2.1) is

New Xcode version 11.2.1 build app layout problem [duplicate]

て烟熏妆下的殇ゞ 提交于 2019-12-13 03:37:26
问题 This question already has answers here : Presenting modal in iOS 13 fullscreen (26 answers) Closed 14 days ago . When I update the Xcode to 11.2.1, then build the app have layout problem, like this. This is the normal version: How do I modify it? 回答1: try to presenting viewController using below code. Swift: let vc = UIViewController() vc.modalPresentationStyle = .fullScreen self.present(vc, animated: true, completion: nil) Objective-c: UIStoryboard *story = [UIStoryboard storyboardWithName:@

RXSwift: Modifying URLRequest if request fails in `retryWhen`

强颜欢笑 提交于 2019-12-13 03:37:20
问题 I need to modify the headers of the request when the request fails but the request doesn't change when I modify the request in retryWhen Here is my implementation: func makeRequest(serviceRequest: URLRequest) { let maxRetry = 2 var localRequest = serviceRequest request(request: localRequest).retryWhen { errors in return errors.enumerated().flatMap { (arg) -> Observable<Int64> in localRequest.setValue("someValue", forHTTPHeaderField: "someKey") let (index, error) = arg return index <= maxRetry

Can't submit apps to AppStore: ERROR ITMS-90534: "Invalid Toolchain

陌路散爱 提交于 2019-11-30 06:35:12
问题 ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds. " ERROR ITMS-90534: "Invalid Toolchain . New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds." I found this error during upload

Why does my SwiftUI app crash when navigating backwards after placing a `NavigationLink` inside of a `navigationBarItems` in a `NavigationView`?

蓝咒 提交于 2019-11-27 10:18:42
问题 Minimal reproducible example (Xcode 11.2 beta, this works in Xcode 11.1): struct Parent: View { var body: some View { NavigationView { Text("Hello World") .navigationBarItems( trailing: NavigationLink(destination: Child(), label: { Text("Next") }) ) } } } struct Child: View { @Environment(\.presentationMode) var presentation var body: some View { Text("Hello, World!") .navigationBarItems( leading: Button( action: { self.presentation.wrappedValue.dismiss() }, label: { Text("Back") } ) ) } }