Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Missing Updates for Non-Simulator Builds #26

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

PSchmiedmayer
Copy link
Member

Fix Missing Updates for Non-Simulator Builds

⚙️ Release Notes

  • Fix Missing Updates for Non-Simulator Builds

CC: Interesting situation here @vishnuravi & @Supereg. Our CI did not catch this error as we only build for simulator target. Might be interesting to explore how we could mitigate this in the future, e.g., also run an archive of the UITests application to run on the generic iOS target & test release builds at the same time?

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@PSchmiedmayer PSchmiedmayer added the bug Something isn't working label May 24, 2024
@PSchmiedmayer PSchmiedmayer self-assigned this May 24, 2024
@PSchmiedmayer PSchmiedmayer merged commit 76732eb into main May 24, 2024
6 checks passed
@PSchmiedmayer PSchmiedmayer deleted the fixBuild branch May 24, 2024 21:26
@@ -40,15 +40,15 @@ class TimedWalkTestViewModel {
func requestPedemoterAccess() {
#if !targetEnvironment(simulator)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn’t a better solution be to move as much code out of the if compiler directive? E.g. have additional code for simulator at the start of the method and return before we reach the code executed on the life device. CoreMotion compiles in the simulator it just doesn’t do anything.

In essence: don’t exclude code using compiler directives (as best as possible) only use them to add additional code special to the simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants