homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
160 stars 122 forks source link

[!] An error occurred while processing the pre-install hook of the Podfile. #44

Closed b08Walls closed 3 years ago

b08Walls commented 3 years ago

Hello and good day,

Working with my development team we ran into this issue when installing pods with the latest version of your package:

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

undefined method `pre_install' for nil:NilClass

/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:162:in pre_install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:869:inrun_podfile_pre_install_hook' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:857:in block in run_podfile_pre_install_hooks' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:145:inmessage' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:856:in run_podfile_pre_install_hooks' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:254:inblock in download_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:252:indownload_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:161:in install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:inrun' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:inrun' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in <top (required)>' /usr/local/bin/pod:23:inload' /usr/local/bin/pod:23:in <main>'

As a temporary fix for anyone running into this issue we just rolled back to version 1.0.7, but it would be nice to know the right way to work with the latest version if there is any.

Thank you.

rossmartin commented 3 years ago

Hey thank you for reporting this. This is fixed with the latest version, 1.0.9.

JorgeQuevedoC commented 3 years ago

Hi @rossmartin, I am on the team with @b08Walls and after you released version 1.0.9 I tried to update the package and this time I get the error attached Screen Shot 2021-07-17 at 10 52 17 AM

rossmartin commented 3 years ago

Hi @rossmartin, I am on the team with @b08Walls and after you released version 1.0.9 I tried to update the package and this time I get the error attached

Hmm that's strange. I can't reproduce.

Can you please try deleting your ios/Podfile.lock file and your ios/Pods folder? Then do a pod install and see if it will build.

vitaliykreminskiy commented 2 years ago

Had the same issue. Removing the react-native-mapbox-navigation from the project and adding it back again solved the issue for me. Maybe that was linking issue