xcode11

How to stop Xcode 11 from changing CFBundleVersion and CFBundleShortVersionString to $(CURRENT_PROJECT_VERSION) and $(MARKETING_VERSION)?

♀尐吖头ヾ 提交于 2020-01-12 03:35:27
问题 Since version 11, Xcode sets my CFBundleVersion value to $(CURRENT_PROJECT_VERSION) and my CFBundleShortVersionString to value $(MARKETING_VERSION) whenever I enter Version or Build values in the target settings (tab "General"). The actual version and build values that I enter are now stored in the project.pbxproj file. I do not want or like this behaviour, as I use shell scripts to modify the values at buildtime. I can manually set the correct values in the Info.plist file, but as soon as I

SwiftUI How to push to next screen when tapping on Button

依然范特西╮ 提交于 2020-01-10 06:01:17
问题 I can navigate to next screen by using NavigationButton (push) or present with PresentationButton (present) but i want to push when i tap on Buttton() Button(action: { // move to next screen }) { Text("See More") } is there a way to do it? 回答1: You can do using NavigationLink Note: Please try in real device. in simulator sometimes not work properly. struct MasterView: View { @State var selection: Int? = nil var body: some View { NavigationView { VStack { NavigationLink(destination:

Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler

最后都变了- 提交于 2020-01-10 04:47:07
问题 I have a VoiceSampler.framework that was built with Xcode 10.3 I am trying to use that framework in Xcode11 in a new project. I have successfully added that framework, but when I write import VoiceSample in AppDelegate, I get the following error: Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler: /Users/apple/Projects/CaptureAppSwift/VoiceSampler.framework/Modules/VoiceSampler.swiftmodule/arm64.swiftmodule Is there a Build Setting I can tweak in Xcode 11 to make it

Unable to infer complex closure return type with SwiftUI

☆樱花仙子☆ 提交于 2020-01-10 03:51:05
问题 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 code doesn't resolve the error). Does anyone have a cue what is going wrong here? struct LandmarkRow: View { var landmark: Landmark var body: some View { HStack { landmark.image(forSize: 50) Text(verbatim: landmark.name) Spacer() if landmark

How to set iOS 13 glyphs programmatically [duplicate]

夙愿已清 提交于 2020-01-04 07:53:50
问题 This question already has answers here : How to use default iOS images? (3 answers) Closed 7 months ago . Starting with iOS 13, Apple is providing a bunch of glyphs which can be used "everywhere you can use an image". You can use SF symbols to represent tasks and types of content in a variety of specific places, such as navigation bars, toolbars, tab bars, context menus, and Home Screen Quick Actions. Throughout the rest of your app, you can use a symbol everywhere you can use an image. I

ScrollView acting weired (Xcode 11 GM seed - SwiftUI)

主宰稳场 提交于 2020-01-03 05:26:29
问题 I was trying to make a custom list. And its acting weired if we add Encapsulated VStack in scrollView and try to add new row from that VStack. But we have to encapsulate because in Xcode will give "complex view complier error". I am providing full code for better understanding. Please try to run it. New element is not added as expected and its pushing everything upward. struct RowView: View { var body: some View { VStack{ HStack{ Spacer() .foregroundColor(Color.black) Spacer() } } .background

ScrollView acting weired (Xcode 11 GM seed - SwiftUI)

断了今生、忘了曾经 提交于 2020-01-03 05:26:29
问题 I was trying to make a custom list. And its acting weired if we add Encapsulated VStack in scrollView and try to add new row from that VStack. But we have to encapsulate because in Xcode will give "complex view complier error". I am providing full code for better understanding. Please try to run it. New element is not added as expected and its pushing everything upward. struct RowView: View { var body: some View { VStack{ HStack{ Spacer() .foregroundColor(Color.black) Spacer() } } .background

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

泪湿孤枕 提交于 2020-01-02 08:56:16
问题 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 (11A419c). Now, updating to Xcode 11 GM Seed 2 (11A420a). error: accessing build database "/Users/john.doe/Library/Developer/Xcode/DerivedData/FrameworkSDK-esxhqchxkdevuiapyebthsdscpje/Build/Intermediates.noindex/XCBuildData/build.db": disk I/O error Using

No iOS 13 simulator in Xcode 11 beta 5

╄→尐↘猪︶ㄣ 提交于 2020-01-02 03:15:29
问题 I have installed Xcode 11 beta 5 and create a sample project There is no iOS 13 simulators available: When I go on Add simulator -> Download more simulator iOS 13 is not available in list: What should I do to install an iOS 13 simulator? 回答1: I'm not sure why it is happening, but you can create new simulators and it will work Click Add Additional Simulators from the menu where you would normally select the simulator (where you select your target) Click the + icon in the bottom left Create a

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

依然范特西╮ 提交于 2020-01-02 02:43:10
问题 I try to test app on iOS13 beta. When I tap button on welcome screen to segue to another screen app freezes and then terminates. When I debug in Xcode 11 i see following warning lines in console log [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: '(null)' [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: '(null)' and then after several seconds app terminates