Skip to content
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

invalid range "t-5" in string transliteration [iOS] #34610

Closed
Romick2005 opened this issue Sep 6, 2022 · 11 comments
Closed

invalid range "t-5" in string transliteration [iOS] #34610

Romick2005 opened this issue Sep 6, 2022 · 11 comments
Labels

Comments

@Romick2005
Copy link
Contributor

Description

Get this error on running pod install on Mac Mini m1:
image
image
ios/Podfile:
image
node_modules/react-native/scripts/cocoapods/utils.rb:144:
image

Suggested change:
image

Version

0.70.0

Output of npx react-native info

System:
OS: macOS 12.5.1
CPU: (8) arm64 Apple M1
Memory: 553.00 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.18.0 - /usr/local/bin/npm
Watchman: 2021.09.27.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

cd ios && pod install

Snack, code example, screenshot, or link to a repository

Already provided

@Sam-Lam-Secret-Key-Labs
Copy link

Possible duplicate:
#34530

@Romick2005
Copy link
Contributor Author

Escape t with \t character in node_modules/react-native/scripts/cocoapods/utils.rb:144 also works:

        lib_search_paths.delete("$(TOOLCHAIN_DIR)/usr/lib/swif\t-5.0/$(PLATFORM_NAME)")
        lib_search_paths.delete("\"$(TOOLCHAIN_DIR)/usr/lib/swif\t-5.0/$(PLATFORM_NAME)\"")

@hengkx
Copy link

hengkx commented Sep 8, 2022

same errors

@Romick2005
Copy link
Contributor Author

Romick2005 commented Sep 8, 2022

Issue was introduced in this commit
And fix is waiting to be merged.

Romick2005 added a commit to Romick2005/react-native that referenced this issue Sep 8, 2022
@ray-holland-es
Copy link

I am also getting this error when running pod install - This is on an Intel based Mac.

facebook-github-bot pushed a commit that referenced this issue Sep 13, 2022
Summary:
Fix invalid range "t-5" in string transliteration [iOS] for M1 pod install issue.

This should fix pod install error for M1 machines.

## Changelog
[iOS] [Fixed] - Fix ios pod install error

Pull Request resolved: #34636

Test Plan: Run pod install on M1 machine.

Reviewed By: sammy-SC

Differential Revision: D39423276

Pulled By: cipolleschi

fbshipit-source-id: 4ec95af7103395792facba0f93fd8de05a3fe78d
dmytrorykun pushed a commit that referenced this issue Sep 14, 2022
Summary:
Fix invalid range "t-5" in string transliteration [iOS] for M1 pod install issue.

This should fix pod install error for M1 machines.

## Changelog
[iOS] [Fixed] - Fix ios pod install error

Pull Request resolved: #34636

Test Plan: Run pod install on M1 machine.

Reviewed By: sammy-SC

Differential Revision: D39423276

Pulled By: cipolleschi

fbshipit-source-id: 4ec95af7103395792facba0f93fd8de05a3fe78d
@mdeoliveira-hw
Copy link

I am also getting this on M1. Did the fix that had been merged, fix the problem for you ?

@Romick2005
Copy link
Contributor Author

Romick2005 commented Sep 30, 2022

Yes it was merged and available starting from version 0.70.1

@Romick2005
Copy link
Contributor Author

Now it works!

@mdeoliveira-hw
Copy link

I still got the issue after upgrading to RN 0.70.1. There is something wrong with my configuration ?

[!] An error occurred while processing the post-install hook of the Podfile.

invalid range "t-5" in string transliteration

/node_modules/react-native/scripts/cocoapods/utils.rb:145:in `delete'
/node_modules/react-native/scripts/cocoapods/utils.rb:145:in `fix_library_search_path'
/node_modules/react-native/scripts/cocoapods/utils.rb:85:in `block (2 levels) in fix_library_search_paths'
/node_modules/react-native/scripts/cocoapods/utils.rb:84:in `each'
/node_modules/react-native/scripts/cocoapods/utils.rb:84:in `block in fix_library_search_paths'
/node_modules/react-native/scripts/cocoapods/utils.rb:83:in `each'
/node_modules/react-native/scripts/cocoapods/utils.rb:83:in `fix_library_search_paths'
/node_modules/react-native/scripts/react_native_pods.rb:158:in `react_native_post_install'
/ios/Podfile:38:in `block (3 levels) in from_ruby'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-core-1.11.3/lib/cocoapods-core/podfile.rb:196:in `post_install!'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:945:in `run_podfile_post_install_hook'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:933:in `block in run_podfile_post_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:932:in `run_podfile_post_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:331:in `block (2 levels) in create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in `write!'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:330:in `block in create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `<main>'

Here is info about my project

System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 5.55 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    Watchman: 2022.09.05.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.1 => 0.70.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found```

@Romick2005
Copy link
Contributor Author

Have you actually open this file on line 145?
node_modules/react-native/scripts/cocoapods/utils.rb:145

You can see code in action there and comment that line just check if it helps

@mdeoliveira-hw
Copy link

Yes, I checked the file. If I comment the line, pod install worked, but it's not a lasting solution

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this issue May 22, 2023
facebook#34636)

Summary:
Fix invalid range "t-5" in string transliteration [iOS] for M1 pod install issue.

This should fix pod install error for M1 machines.

## Changelog
[iOS] [Fixed] - Fix ios pod install error

Pull Request resolved: facebook#34636

Test Plan: Run pod install on M1 machine.

Reviewed By: sammy-SC

Differential Revision: D39423276

Pulled By: cipolleschi

fbshipit-source-id: 4ec95af7103395792facba0f93fd8de05a3fe78d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants