Skip to content

refactor: move version_flags from deprecated s.xcconfig to s.pod_target_xcconfig#25

Open
naxey wants to merge 1 commit into
fbeccaceci:mainfrom
naxey:fix/podspec-version-flags
Open

refactor: move version_flags from deprecated s.xcconfig to s.pod_target_xcconfig#25
naxey wants to merge 1 commit into
fbeccaceci:mainfrom
naxey:fix/podspec-version-flags

Conversation

@naxey
Copy link
Copy Markdown

@naxey naxey commented Mar 17, 2026

Summary

Replaces the deprecated s.xcconfig with s.pod_target_xcconfig for version_flags in
FastSquircle.podspec.

s.xcconfig has been deprecated since CocoaPods 0.38 in favor of the explicit
pod_target_xcconfig / user_target_xcconfig split.

Related: #24

Test plan

  1. pod install
  2. Build succeeds

The version_flags define was set via `s.xcconfig` which only applies to
the consumer (app target), not to the pod's own compilation. This caused
`REACT_NATIVE_MINOR_VERSION` to be undefined (defaulting to 0) when
compiling FastSquircle's .mm files, making the `#if < 81` guard compile
the legacy code path on RN >= 0.82.

Move the flag to `s.pod_target_xcconfig` so it reaches the pod's own
build.

Fixes fbeccaceci#24
@naxey naxey changed the title fix: pass REACT_NATIVE_MINOR_VERSION to pod target xcconfig refactor: move version_flags from deprecated s.xcconfig to s.pod_target_xcconfig Mar 24, 2026
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.

1 participant