-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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(ios): add xcode 14 workaround (turn off signing resource bundles) for pods #34826
Conversation
Base commit: 36c9716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should refactor this in the ReactNativePodsUtils
file and add some tests.
I don't like how this modifies all pods, not only the ones included by rn. We only need this for one resource bundle: react-native/React-Core.podspec Line 46 in 88b7b64
|
we use this strategy because we also have other resource bundles at expo 😅 please do whatever best fit for react-native templates. |
yeah I agree that this workaround is not ideal - my current concern is that if we do it for just that specific resource bundle, developers might still hit the issue. I feel that maybe we should just add this to the template so that developers will have to "opt in" into copying this pod postinstall over in their setups understanding what this is doing. |
also, it seems that by going for this route (of not doing the signing) you might incurr in Apple rejection along the lines of:
see more details here. So maybe we should go another route and tell folks to go for
instead, as suggested here? (meaning, configuring the team account to sign it all) |
I think the rejects are "unrelated" and not caused by unsigned resource bundles. We have gone through review a couple of times now with unsigned resource bundles and xcode 14. 🤷♂️ We could just add a new func like we did for the m1 so people can opt out more easily without removing the whole post install func call. |
What if we modify this to act only on the Also, it would be nice to wrap this code in a function that lives in the @kelset, if you are busy, I can take it. Let me know what do you prefer |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
19b6f48
to
4860792
Compare
Base commit: 36c9716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kelset! Thank you for doing this! I left some more improvements for the tests. Let me know what do you think!
291b9cf
to
357df61
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @kelset in 967de03. When will my fix make it into a release? | Upcoming Releases |
… for pods (#34826) Summary: This is inspired by the Expo workaround expo/expo@d970a9e to address an issue that cocoapods has with Xcode 14: CocoaPods/CocoaPods#11402 This wants to address this #34673 in a way that we can also cherry-pick on the 0.70 branch. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [iOS] [Fixed] - add xcode 14 workaround (turn off signing resource bundles) for `React-Core` Pull Request resolved: #34826 Test Plan: Tested locally by opening RNTester via Xcode 14.0.1, and targetting my iPhone as device. After applying the patch, the error for React Core AccessibilityResources disappears. Also, added ruby test for new patch. Reviewed By: hramos Differential Revision: D40063828 Pulled By: hramos fbshipit-source-id: e10d5b6a917a6a7cbacd14ecfdac55e60e46c6f8
Will be fixed in CocoaPods 1.12.0: CocoaPods/CocoaPods#11402 (comment) |
… for pods (facebook#34826) Summary: This is inspired by the Expo workaround expo/expo@d970a9e to address an issue that cocoapods has with Xcode 14: CocoaPods/CocoaPods#11402 This wants to address this facebook#34673 in a way that we can also cherry-pick on the 0.70 branch. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [iOS] [Fixed] - add xcode 14 workaround (turn off signing resource bundles) for `React-Core` Pull Request resolved: facebook#34826 Test Plan: Tested locally by opening RNTester via Xcode 14.0.1, and targetting my iPhone as device. After applying the patch, the error for React Core AccessibilityResources disappears. Also, added ruby test for new patch. Reviewed By: hramos Differential Revision: D40063828 Pulled By: hramos fbshipit-source-id: e10d5b6a917a6a7cbacd14ecfdac55e60e46c6f8
Summary
This is inspired by the Expo workaround expo/expo@d970a9e to address an issue that cocoapods has with Xcode 14: CocoaPods/CocoaPods#11402
This wants to address this #34673 in a way that we can also cherry-pick on the 0.70 branch.
Changelog
[iOS] [Fixed] - add xcode 14 workaround (turn off signing resource bundles) for
React-Core
Test Plan
Tested locally by opening RNTester via Xcode 14.0.1, and targetting my iPhone as device. After applying the patch, the error for React Core AccessibilityResources disappears.
Also, added ruby test for new patch.