question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid range "t-5" in string transliteration

See original GitHub issue

New Version

0.70.0

Old Version

0.66.4

Build Target(s)

iOS debug

Output of react-native info


System:
    OS: macOS 12.5.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 95.17 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 8.1.0 - /usr/local/bin/npm
    Watchman: 2022.08.22.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:
      API Levels: 30, 31, 32
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0
      System Images: android-30 | ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.0-rc.4 => 0.70.0-rc.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Issue and Reproduction Steps

Upon doing pod install or npx pod-install this message will occur.

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

invalid range "t-5" in string transliteration

~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:144:in `delete'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:144:in `fix_library_search_path'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:85:in `block (2 levels) in fix_library_search_paths'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:84:in `each'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:84:in `block in fix_library_search_paths'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:83:in `each'
~/Documents/${Project_dir}/node_modules/react-native/scripts/cocoapods/utils.rb:83:in `fix_library_search_paths'
~/Documents/${Project_dir}/node_modules/react-native/scripts/react_native_pods.rb:158:in `react_native_post_install'
~/Documents/${Project_dir}/ios/Podfile:28: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>'

I have tried using ruby rvm and use ruby 2.7.5 and adding the gemfile after bundle install, it still gives the same error.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:8
  • Comments:8

github_iconTop GitHub Comments

5reactions
Sam-Lam-Secret-Key-Labscommented, Sep 6, 2022

it works if we remove these 2 lines:

@Sam-Lam-Secret-Key-Labs

Could you please specify which file you modified? I’m facing the same issue. Thanks!

node_modules/react-native/scripts/cocoapods/utils.rb

This work around is working, for now, shouldnt make you miss anything.

4reactions
codingslash76commented, Sep 6, 2022

I am also facing the same issue. RN Version - 0.70.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove email address from string in Ruby - Stack Overflow
The problem is i get the error "invalid range "y-d" in string transliteration (ArgumentError)" which I assume is because it's treating my ...
Read more >
Invalid range “a-Z” in transliteration operator – vars.pm line 17
Over the weekend, while running adconfig on one of our cloned instance, I got an error I searched over Metalink and found a...
Read more >
Rosette API | Features & Functions
The Rosette Address similarity endpoint compares two addresses and returns a match score from 0 to 1 indicating how similar the two addresses...
Read more >
bQW - River Thames Conditions
Odyssea t5 36, Aicha partie 2/10, Meklarin puhe, Saga noren, ... 22 fret 7 string, Speakercraft aim7 mt one, Ben franklin school barcelona, ......
Read more >
Learning multi character alignment rules and classification of ...
88 Substring-based Transliteration with Conditional Random Fields Sravana Reddy ... that this reporting will generate the target string is a valid string as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found