Post

Replies

Boosts

Views

Activity

Reply to @FocusedBinding
I wonder how I would make it work when using an optional, like: struct FocusedDeckKey : FocusedValueKey {     typealias Value = Binding<DeckViewModel?> } Because then my commands look like: struct AppCommands: Commands {     @FocusedBinding(\.currentDeck) private var currentDeck: DeckViewModel? } 👆💥 Type of expression is ambiguous without more context In my case the value I am trying to use is an optional selection, so it's possible to be nil
Jun ’20
Reply to Watch app version issue in Xcode Cloud
I was able to build. First, I manually set the version in the project to 4.7.0 for both Apple Watch, Extension and Main app. I got some errors after that, but they seem "random errors" on the builds. Then I noticed our workflow was using "the latest Xcode" which meant Xcode 13.3 Beta 1. Instead I set it to Xcode 12.2.1 I got some random errors after. I tried the build hours later and finally it worked. Since I did more than one approach trying to fix this at a time, I cannot tell what "fix" my issue. I will report later when I make a new build and if I get more info
Feb ’22
Reply to Xcode 13.4.1 "Toggle Appearance" not working
In the post I originally linked someone posted the solution for this problem https://developer.apple.com/forums/thread/707994?answerId=717730022#717730022 deleted /Library/Developer/PrivateFrameworks installed Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg on my system at least, XcodeSystemResources.pkg creates the /Library/Developer/PrivateFrameworks folder. anyway that fixed "Toggle Appearance" in the Simulator for me! thanks for the tip!
Jul ’22
Reply to Xcode randomly modifies my scheme content
For my team this is happening still with Xcode 14.1 RC2 even though I removed the apple watch paired to the simulator I use. I assume the workaround doesn't really work because of the new simulator selector.. as in there is another simulator picked by default with an Apple Watch paired with it. I will try by removing Apple Watch paired to all simulators
Oct ’22
Reply to OAuth and Apple Watch authentication
as a compliment to my question. A couple years ago, there was a talk https://developer.apple.com/wwdc21/10003 that mentioned sharing the OAuth token with Synced Keychain Items. That implies sharing the OAuth token, which I cannot do, but also has the effect (depending on the implementation) that if you log in on iOS, you will be logged in on the iPad and Mac if the app is present in those platforms, the same goes with log out. Also, some of our users actually share Apple ID, which caused some issues for those users as well
Sep ’23
Reply to Snapshot testing differences between local machine and Xcode Cloud
In the GitHub discussion, someone mentioned Did you compare the supported languages between your local simulator and CI simulator? The line height increases when you add a language like Hindi or Arabic as a supported language. Which reminded me that I hadn't set up a test plan for the project. A test plan is one way to configure the language/region of the the app, which I set the same as I had locally on my machine, then, with this configuration, the test passed as expected
Apr ’24