Post

Replies

Boosts

Views

Activity

Reply to Cast Any to Sendable
For example there is a method func centralManager(_ cbCentralManager: CBCentralManager, didDiscover cbPeripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber) from CBCentralManagerDelegate In our project we send advertisement data forward as we need it in the app to check if device is correct and to verify ids so that we will connect to right device. I made a Sendable structure for storing scan data: public let peripheral: Peripheral /// A dictionary containing any advertisement and scan response data. public let advertisementData: [String : Any] /// The current RSSI of the peripheral, in dBm. A value of 127 is reserved and indicates the RSSI /// was not available. public let rssi: NSNumber } and I get warning: Stored property 'advertisementData' of 'Sendable'-conforming struct 'ScanData' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode So what to do here? We want to make our projects Swift6 ready and also have strict concurrency, but default API we have are making this impossible on some parts. Second example is usage of NSPRedicate in HKAnchoredObjectQuery initializer. It is not sendable, which also throws warning for Swift6.
3w
Reply to Cannot remove SCM
Managed to finally solve this issue with adding one "dummy" repository from github and then access the settings in "User and access" section. The only question now remains is how to use one git source for 2 projects (one is on different company, one is for staging builds, the other one is for production)?
Oct ’23
Reply to Cannot remove SCM
Still a problem for me, I get Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method. in our gitlab. We also tried this [https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/3947#note_155251805) workaround, but nothing works.
Feb ’23
Reply to Xcode Bot: Test assertion, Timed out while synthesising event
I have similar problem on new mac mini M1, when I tap onto textField and software keyboard should come up, but it doesn't. Funny thing is that same test is working on Intel mac with no problem and I also have disabled hardware keyboard in simulator. To add more funny things, if I erase simulator first of tests will always work, but next one or on repeated run it is a lottery. Should we make bug ticket for Apple? I think this is something wrong on simulator on M1 macs.
May ’21