Post

Replies

Boosts

Views

Activity

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
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 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 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.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’24
Reply to I have a bone to pick with Xcode
Editor options: AppCode, VSC have much better visual aids for easier readability of code. Cursor has even colored matching brackets, vertical guides with extensions... in Xcode I have to do mental gymnastics all the time to find proper starting or ending bracket. God forbid I have something than spans out of monitor height... A nice touch is also some IDEs write out in grey a type of parameters or values so I don'e need to always alt+click everywhere. Below is example of nice little helpers, make code much easier and faster to read
Feb ’25
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.
Replies
Boosts
Views
Activity
May ’21
Reply to Code coverage generation fails on M1 Mac when excluding Arm64 architecture
Same issue on M1 mini, Xcode 12.5 release version. :(
Replies
Boosts
Views
Activity
Jun ’21
Reply to Code coverage generation fails on M1 Mac when excluding Arm64 architecture
Ok I think I have found a problem inside my project: some of the targets had excluded arm64 architecture so I removed that. Also update any cocoapods you have, we had some before that has set arm64 as excluded architecture, but now there is none that has that setting, so coverage is working.
Replies
Boosts
Views
Activity
Jul ’21
Reply to Enum cases with associated values cannot be marked potentially unavailable
I solved my issues in imported pods to raise iOS version for each target and pod to min 13.0 and also removed arm64 from excluded architecture. This is important on new M1 macs as you cannot run on simulator if you do not have arm64 architecture in build.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13 beta 2 SwiftUI previews from swift package broken
I'm currently on 13.2.1 release Xcode version and getting needs -Onone Swift optimization level to use previews. On many SwifUI views with previews canvas doesn't even open. This makes my work on any SwiftUI project right now a big pain. :(
Replies
Boosts
Views
Activity
Jan ’22
Reply to Problem connecting Xcode Cloud with GitLab Self-Managed
I have exact same problem and there is still no solution? I mean, a company where I help on project is paying for xcode cloud and we cannot use it. This is dragging for more than one month already! Please give us some information or something, I have to report to my client what is going on!!!
Replies
Boosts
Views
Activity
Dec ’22
Reply to Problem connecting Xcode Cloud with GitLab Self-Managed
Now this is getting funny... I cannot remove old SCM and I cannot register new one. I was searching a bit on internet and found this: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/3947#note_155251805 I do not have admin access to our gitlab, but can anyone with same problem try and confirm solution?
Replies
Boosts
Views
Activity
Jan ’23
Reply to After update to MacOS to 13.2 previews are not showing correct view
Looks like the fault is in AppDelegate where we added some delay on app startup so local DB can finish up deleting obsolete data. With no delay in AppDelegate previews are working ok. A bit strange that AppDelegate affects SwiftUI previews.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’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.
Replies
Boosts
Views
Activity
Feb ’23
Reply to Cannot remove SCM
I still have a problem with connecting back to our Gitlab, is there any update on this? On appstore connect on xcode cloud tab I cannot select new SCM and I cannot create new application in Gitlab as I do not have redirect URI.
Replies
Boosts
Views
Activity
Jun ’23
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)?
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode Preview says:Cannot preview in this file: Failed to launch (App Name)
i also have the same error in Xcode Version 16.0 (16A242d).
Replies
Boosts
Views
Activity
Oct ’24
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.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to I have a bone to pick with Xcode
Editor options: AppCode, VSC have much better visual aids for easier readability of code. Cursor has even colored matching brackets, vertical guides with extensions... in Xcode I have to do mental gymnastics all the time to find proper starting or ending bracket. God forbid I have something than spans out of monitor height... A nice touch is also some IDEs write out in grey a type of parameters or values so I don'e need to always alt+click everywhere. Below is example of nice little helpers, make code much easier and faster to read
Replies
Boosts
Views
Activity
Feb ’25
Reply to I have a bone to pick with Xcode
Find usages: this functionality in Xcode is so basic, that it is embarrassing. Below is example from IntelliJ how to make usages and mark them separately where we have reading and writing of values. It is for js, but it was similar in AppCode. How hard can it be?
Replies
Boosts
Views
Activity
Feb ’25