Skip to content

fix: override podspecs dependencies c++ version#46888

Closed
Titozzz wants to merge 1 commit into
mainfrom
Titozzz-patch-1
Closed

fix: override podspecs dependencies c++ version#46888
Titozzz wants to merge 1 commit into
mainfrom
Titozzz-patch-1

Conversation

@Titozzz
Copy link
Copy Markdown
Collaborator

@Titozzz Titozzz commented Oct 8, 2024

Summary:

Some dependencies would override C++ version like this.

We force it back to be the current version set by react-native so that we are sure projects are using the correct version

Changelog:

[IOS] [FIXED] - Enforce we use the correct C++ version for all, even if dependency tries to set it

Test Plan:

This can be test via
https://github.com/Titozzz/cpp17bug

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Oct 8, 2024
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

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

Thanks @Titozzz for fixing this properly!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 8, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in d7a8aae.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @Titozzz in d7a8aae

When will my fix make it into a release? | How to file a pick request?

blakef pushed a commit that referenced this pull request Oct 15, 2024
Summary:
Some dependencies would override C++ version like [this](https://github.com/mrousavy/react-native-vision-camera/blob/83abb0832a22b6b080f8412ed17b0992532b0eb2/VisionCamera.podspec#L36).

We force it back to be the current version set by react-native so that we are sure projects are using the correct version

[IOS] [FIXED] - Enforce we use the correct C++ version for all, even if dependency tries to set it

Pull Request resolved: #46888

Test Plan:
This can be test via
https://github.com/Titozzz/cpp17bug

Reviewed By: blakef

Differential Revision: D64042099

Pulled By: cipolleschi

fbshipit-source-id: c36dda0a718e52e19d53c3e9d895315141cb040c
@mrousavy
Copy link
Copy Markdown
Contributor

oh, sorry. This is my lib and it should set the pod target xcconfig, not the root project's xcconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants