Skip to content

Conversation

@camden-king
Copy link
Contributor

In GIDAuthStateMigration we treat TARGET_OS_MACCATALYST as TARGET_OS_OSX however they should be treated the same as TARGET_OS_IOS apps. This PR updates that behavior for GIDAuthStateMigration but does not address other usage of TARGET_OS_MACCATALYST checks throughout the codebase.

@camden-king camden-king marked this pull request as ready for review June 5, 2025 21:56
@camden-king camden-king changed the base branch from main to camden-king/migration-bug-fixes June 6, 2025 16:51
@brnnmrls brnnmrls self-requested a review June 6, 2025 22:16
@brnnmrls
Copy link
Member

brnnmrls commented Jun 6, 2025

Can you fix the typo in the title, please?

@brnnmrls
Copy link
Member

brnnmrls commented Jun 6, 2025

Spoke offline! Let's not perform any migrations on Mac Catalyst apps to avoid any increased risk of overwriting current signed in users. This means we'll have preprocessor directives such as #elif TARGET_OS_IOS && !TARGET_OS_MACCATALYST. The following describe how Mac Catalyst apps may be impacted:

  1. Data protected migration - We should not be performing the migration on Mac Catalyst since they should be treated as TARGET_OS_IOS apps AKA not using this particular migration.
  2. GTMAppAuth migration - We already are not performing the migration on Mac Catalyst so we would continue this pattern for now. Though, this will be further investigated whether this migration should be a requirement for it.

@camden-king camden-king changed the title Update GIDAuthStateMMigration to treat Catalyst apps as iOS apps Update GIDAuthStateMigration to not perform migration when built for Mac Catalyst Jun 9, 2025
@camden-king camden-king merged commit 0b30eb6 into camden-king/migration-bug-fixes Jun 11, 2025
20 of 22 checks passed
@camden-king camden-king deleted the camden-king/mac-catalyst-handling branch June 11, 2025 16:14
camden-king added a commit that referenced this pull request Jun 17, 2025
camden-king added a commit that referenced this pull request Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants