Skip to content

CocoaPods fix for the addition of traits.#2007

Merged
thomasvl merged 1 commit intoapple:mainfrom
thomasvl:cocoapods
Mar 13, 2026
Merged

CocoaPods fix for the addition of traits.#2007
thomasvl merged 1 commit intoapple:mainfrom
thomasvl:cocoapods

Conversation

@thomasvl
Copy link
Collaborator

Maps the default traits to preprocessor defines when building the library.

Tested by swapping the

#endif

for:

  #warning("Defined.")
#else
  #error("Not defined.")
#endif

And inspecting the output of pod lib lint to confirm the #warning is hit and not the #error. Fixes #2005

Maps the default `traits` to preprocessor defines when building the library.

Tested by swapping the `#endif` for:

```swift
  #warning("Defined.")
  #error("Not defined.")
```

And inspecting the output of `pod lib lint` to confirm the `#warning` is hit and
not the `#error`. Fixes apple#2005
@thomasvl thomasvl requested a review from allevato March 13, 2026 15:16
@thomasvl thomasvl added the 🆕 semver/minor Adds new public API. label Mar 13, 2026
@thomasvl thomasvl enabled auto-merge (squash) March 13, 2026 15:21
@thomasvl thomasvl merged commit 8fe85bb into apple:main Mar 13, 2026
20 checks passed
@thomasvl thomasvl deleted the cocoapods branch March 13, 2026 15:50
@thomasvl thomasvl added 🔨 semver/patch No public API change. and removed 🆕 semver/minor Adds new public API. labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cocoapods] BinaryDelimitedStreams -> Breaking change

2 participants