You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9563cb5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cocoapods): escape local file URIs for unicode paths (#56907)
Summary:
#56878 shows that using unicode characters in paths fails with pod install.
Expo fixed this internally here: expo/expo#45779Fixes#56878
## How:
Build local `file://` sources through a shared helper that percent-encodes filesystem paths before passing them to `URI::File.build`. This avoids Ruby/CocoaPods URI failures when React Native projects or local prebuilt tarballs live under paths containing Unicode characters or spaces.
Apply the helper to `RNCore` and `ReactNativeDependencies` local tarball sources, including RNCore dSYM-processed prebuilt paths, while leaving remote Maven and Sonatype URLs unchanged.
Add focused coverage for Unicode, spaces, ASCII paths, and the raw `URI::File.build` regression case.
## Changelog:
[IOS] [FIXED] - fixed escaping local file URIs for unicode paths in ruby scripts
Pull Request resolved: #56907
Test Plan: - Test with creating a new project in a path containing a unicode character and the run pod install.
Reviewed By: cortinico
Differential Revision: D105968728
Pulled By: cipolleschi
fbshipit-source-id: 6d5b9043aafe3d86494f3b5ca0f208e46f1f3739
0 commit comments