Post

Replies

Boosts

Views

Activity

Reply to EXC_BAD_ACCESS crash in some Swift Testing test on a macro
As extra context. I realized the test was "wrong", instead of testing #expect(viewModel.isSavedSearchButtonDisabled) I needed to test #expect(viewModel.isSavedSearchButtonDisabled == false) With this change, the test passed correctly without crashing. This implies that this crash happens on test failures Also, If I wrote the expectation like #expect(viewModel.savedSearchState == .active && viewModel.isSavedSearchButtonDisabled) The test would fail (as per logic), but it wouldn't crash. huh?
Dec ’24
Reply to Decoding Error when starting a Live Activity via Push Notification
After thinking a bit more, I understand the problem. the decoder already is set to use Dates in Seconds from Epoch format, as the JSON includes the timestamp. Then any other dates as part of the attributes, need the same format Which looking back, makes total sense. It was difficult to build the live activity without knowing that the date was the problem and no other property
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
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
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
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’23
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 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 EXC_BAD_ACCESS crash in some Swift Testing test on a macro
As extra context. I realized the test was "wrong", instead of testing #expect(viewModel.isSavedSearchButtonDisabled) I needed to test #expect(viewModel.isSavedSearchButtonDisabled == false) With this change, the test passed correctly without crashing. This implies that this crash happens on test failures Also, If I wrote the expectation like #expect(viewModel.savedSearchState == .active && viewModel.isSavedSearchButtonDisabled) The test would fail (as per logic), but it wouldn't crash. huh?
Replies
Boosts
Views
Activity
Dec ’24
Reply to Decoding Error when starting a Live Activity via Push Notification
After thinking a bit more, I understand the problem. the decoder already is set to use Dates in Seconds from Epoch format, as the JSON includes the timestamp. Then any other dates as part of the attributes, need the same format Which looking back, makes total sense. It was difficult to build the live activity without knowing that the date was the problem and no other property
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Decoding Error when starting a Live Activity via Push Notification
I did a test where I changed the type of startDate to String and the decoding error didn't appear anymore. This was just a lucky guess, I didn't find anywhere that the date was wrong
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
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
Replies
Boosts
Views
Activity
Apr ’24
Reply to Watch app version issue in Xcode Cloud
At the end I managed to solve this issue. I wrote a blog post about it in https://tech.sats.com/ios/2023/10/15/setting-ios-app-version-with-git-tags-in-xcode-cloud.html
Replies
Boosts
Views
Activity
Oct ’23
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
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to 'Bad file descriptor' error from URL session data task on Apple Watch?
I experience the same issue (no solution found yet). As extra context in my case I use Keychain to sync an OAuth token between my iOS and watchOS apps.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to No download dSYM in Testflight. Again!
Still the same issue
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’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
Replies
Boosts
Views
Activity
Oct ’22
Reply to Xcode Previews error: symbol(s) not found for architecture arm64
Feedback reported ID: FB11678756 Mmm.. while development I casually added a line, which made importing the SATSCore framework in the file. That framework was implicitly available already through the @_exported import SATSCore call in the app’s entry point. It may seem that this issue may be related to implicitly imported libraries
Replies
Boosts
Views
Activity
Oct ’22
Reply to Xcode Previews error: symbol(s) not found for architecture arm64
I should add this only fails with Xcode previews, not when running the app in simulator/device. I use a M1 Max MacBook pro
Replies
Boosts
Views
Activity
Oct ’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!
Replies
Boosts
Views
Activity
Jul ’22
Reply to Xcode 13.4.1 "Toggle Appearance" not working
I didn't mentioned in the post, but I am talking about the simulator. I also have the same behavior described by @DoxxerApple 👇
Replies
Boosts
Views
Activity
Jun ’22
Reply to I would avoid Xcode 14 (seems to have corrupted my system)
One thing I think it may be related is some local Xcode files you would normally add to .gitignore. I cloned the project again in a different folder, then it works to open that copy of the project
Replies
Boosts
Views
Activity
Jun ’22
Reply to Xcode Cloud failed to install brew?
For me too. this started happening fairly recently.
Replies
Boosts
Views
Activity
Feb ’22