xcode11

Compiler error: Invalid library file - CoreLocation

那年仲夏 提交于 2020-01-02 01:08:09
问题 I have one of my application, that is created in Xcode 8. I have used CoreLocation and MapKit in that app. I have update app with latest iOS till now. and it was working fine. Now I am updating application with iOS 1 . So I hvae opened app with Xcode 11.0 and updated all the required code. Also updated setting that is suggested by Xcode "Perform Changes" and all that. Now I run application, but I am getting error like : Compiler error: Invalid library file . I have searched lot, but can't

Sign in with Apple - Different behaviour Simulator VS iPhone

。_饼干妹妹 提交于 2020-01-01 16:49:09
问题 I'm trying to setup Sign-in with Apple with Xcode (Beta 11.0 beta 6). Works great on simulator, but when I run it on my iPhone (iOS 13.1), I don't get the same display. On Simulator: On iPhone: This is how I call my "Sign in with Apple": - (IBAction)signInWithApple:(id)sender { if (@available(iOS 13.0, *)) { ASAuthorizationAppleIDProvider *appleIDProvider = [[ASAuthorizationAppleIDProvider alloc] init]; ASAuthorizationAppleIDRequest *request = [appleIDProvider createRequest]; request

How to get the keyboard height on multiple screens with SwiftUI and move the button

﹥>﹥吖頭↗ 提交于 2020-01-01 11:51:13
问题 The following code gets the keyboard height when the keyboard is displayed and moves the button by the keyboard height. This movement is performed in the same way at the transition source (ContentView) and the transition destination (SecibdContentView), but the button does not move at the transition destination. How can I make the buttons move the same on multiple screens? import SwiftUI struct ContentView: View { @ObservedObject private var keyboard = KeyboardResponder() var body: some View

How to get the keyboard height on multiple screens with SwiftUI and move the button

和自甴很熟 提交于 2020-01-01 11:51:07
问题 The following code gets the keyboard height when the keyboard is displayed and moves the button by the keyboard height. This movement is performed in the same way at the transition source (ContentView) and the transition destination (SecibdContentView), but the button does not move at the transition destination. How can I make the buttons move the same on multiple screens? import SwiftUI struct ContentView: View { @ObservedObject private var keyboard = KeyboardResponder() var body: some View

SwiftUI: How to persist @Published variable using UserDefaults?

此生再无相见时 提交于 2020-01-01 07:07:07
问题 I want a @Published variable to be persisted, so that it's the same every time when I relaunch my app. I want to use both the @UserDefault and @Published property wrappers on one variable. For example I need a ' @PublishedUserDefault var isLogedIn '. I have the following propertyWrapper import Foundation @propertyWrapper struct UserDefault<T> { let key: String let defaultValue: T init(_ key: String, defaultValue: T) { self.key = key self.defaultValue = defaultValue } var wrappedValue: T { get

Does not conform to protocol BindableObject - Xcode 11 Beta 4

拈花ヽ惹草 提交于 2020-01-01 01:25:08
问题 Playing around with examples out there. Found a project that had a class that was a bindableobject, it didn't give any errors. Now that Xcode 11 beta 4 is out, I'm getting the error: Type 'UserSettings' does not conform to protocol 'BindableObject' It has a fix button on the error, when you click on that, it adds typealias PublisherType = <#type#> It expects you to fill in the type. What would the type be? class UserSettings: BindableObject { let didChange = PassthroughSubject<Void, Never>()

Xcode 11: Changes in code not updated to app or breakpoint doesn't work

十年热恋 提交于 2019-12-31 04:14:07
问题 XCode: 11.1 OS: 10.15 Test device: iPhone 5s, iOS: 12.4.2 Hi guys, I made a stupid mistake to immediately upgrade Xcode and MacOS, without waiting for a later stable version. Anyway, if I made changes in my code, for example adding a NSLog() line, this addition is not updated on the app in my test device. To make it work, I have to uninstall the app from the test device, and reinstall it by running the code from Xcode. This happens every time I make changes in code. I have to delete the app

Can't use @ObservedObject on real iPhone

纵饮孤独 提交于 2019-12-29 00:44:21
问题 i can't get my view to appear when it uses @ObservedObject in it. The app crashed when i try to present it and i get this error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x9) The app runs fine on the simulator. It only crashes on my iPhone 6s iOS 13 beta 6 Xcode beta 5 That's my basic code: class NetworkManager: ObservableObject { } struct ContentView : View { @ObservedObject var networkManager: NetworkManager = NetworkManager() var body: some View { Text("Hi Stack") } } #if DEBUG struct

SecKeyCopyKeyExchangeResult() function return an error, “kSecKeyKeyExchangeParameterRequestedSize is missing”

☆樱花仙子☆ 提交于 2019-12-25 01:41:10
问题 I'm using Xcode11 Beta as IDE and Swift. Below is my code, my code can work well on Xcode10.3, but it can't work on Xcode11. When I call the function SecKeyCopyKeyExchangeResult(), the stack always return an error, "kSecKeyKeyExchangeParameterRequestedSize is missing", but it's okay on Xcode10.3. I checked Apple Developer portal, haven't any clue on it. ` func main() { testECDH() } private func testECDH(){ generateKeyPair() let alicePublicKey = getPublicKey() let alicePrivateKey =

TabbedView using SwiftUI in Xcode11Beta (11M336w)

独自空忆成欢 提交于 2019-12-24 19:14:17
问题 I am following along with the session from WWDC2019 here : https://developer.apple.com/videos/play/wwdc2019/216/ I have the following code working for creating a TabbedView using SwiftUI : //Section1 | ContentView (mine)--------------------------- import SwiftUI struct ContentView : View { var body: some View { NavigationView { TabbedView(selection: .constant(1)) { PlaceForm().tabItemLabel(Text("Tab1")).tag(1) FavoritesForm().tabItemLabel(Text("Tab2")).tag(2) } } } } #if DEBUG struct