Subito-it / PodBuilder

A tool to precompile CocoaPods pods
Other
284 stars 28 forks source link

incompatible library version ruby 3.0.0 #28

Closed thegalkin closed 3 years ago

thegalkin commented 3 years ago

Had a problem with initialising pod folder because of json(1), to update json I had to reinstall the ruby because there was a problem with installing it on macOS Catalina. So, I ended up installing ruby 3.0.0, updated json and, pod_builder seems to be not working because of the 3rd ruby version...(2) (1) ` thegalkin@Nikitas-Mac-Pro MyPrepod13 % pod_builder init Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Following files may not be writable, so sudo is needed: /Library/Ruby/Gems/2.6.0 /Library/Ruby/Gems/2.6.0/build_info /Library/Ruby/Gems/2.6.0/cache /Library/Ruby/Gems/2.6.0/doc /Library/Ruby/Gems/2.6.0/extensions /Library/Ruby/Gems/2.6.0/gems /Library/Ruby/Gems/2.6.0/specifications Fetching CFPropertyList 3.0.3

Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run:

  bundle install --path vendor/bundle

to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo.

Password: Installing CFPropertyList 3.0.3 Fetching concurrent-ruby 1.1.8 Installing concurrent-ruby 1.1.8 Fetching i18n 1.8.10 Installing i18n 1.8.10 Fetching minitest 5.14.4 Installing minitest 5.14.4 Using thread_safe 0.3.6 Fetching tzinfo 1.2.9 Installing tzinfo 1.2.9 Using activesupport 5.2.5 Using public_suffix 4.0.6 Using addressable 2.7.0 Using httpclient 2.8.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /private/var/folders/8s/jn6d30455ls38cg3yv219tk80000gn/T/bundler20210407-3488-6txblrjson-2.5.1/gems/json-2.5.1/ext/json/ext/generator /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210407-3488-m99f6a.rb extconf.rb creating Makefile

current directory: /private/var/folders/8s/jn6d30455ls38cg3yv219tk80000gn/T/bundler20210407-3488-6txblrjson-2.5.1/gems/json-2.5.1/ext/json/ext/generator make "DESTDIR=" clean

current directory: /private/var/folders/8s/jn6d30455ls38cg3yv219tk80000gn/T/bundler20210407-3488-6txblrjson-2.5.1/gems/json-2.5.1/ext/json/ext/generator make "DESTDIR=" compiling generator.c In file included from generator.c:1: In file included from ./../fbuffer/fbuffer.h:5: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby.h:33: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found

include "ruby/config.h"

     ^~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: note: did not find header 'config.h' in framework 'ruby' (loaded from '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks') 1 error generated. make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/folders/8s/jn6d30455ls38cg3yv219tk80000gn/T/bundler20210407-3488-6txblrjson-2.5.1/gems/json-2.5.1 for inspection. Results logged to /var/folders/8s/jn6d30455ls38cg3yv219tk80000gn/T/bundler20210407-3488-6txblrjson-2.5.1/extensions/universal-darwin-19/2.6.0/json-2.5.1/gem_make.out

An error occurred while installing json (2.5.1), and Bundler cannot continue. Make sure that gem install json -v '2.5.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: pod-builder was resolved to 3.0.1, which depends on cocoapods was resolved to 1.10.1, which depends on cocoapods-core was resolved to 1.10.1, which depends on algoliasearch was resolved to 1.27.5, which depends on json

`

(2) pod_builder build_all Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1 Loading Podfile Updating local specs repositories incompatible library version - /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi_c.bundle /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi.rb:6:inrescue in <top (required)>' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi.rb:3:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ethon-0.12.0/lib/ethon.rb:2:in<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:440:indownload_typhoeus_impl_async' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:372:in download_and_save_with_retries_async' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:365:indownload_file_async' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:338:in download_file' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:78:indeprecated_local_podspecs' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:60:in preheat_existing_files' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:257:inupdate' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:135:in block (3 levels) in update' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:insection' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:134:in block (2 levels) in update' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:133:ineach' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:133:in block in update' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:131:inopen' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:131:in update' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:145:inblock in update_repositories' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:143:in each' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:143:inupdate_repositories' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:235:in block in resolve_dependencies' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:234:in resolve_dependencies' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/lib/pod_builder/analyze.rb:30:in installer_at' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/lib/pod_builder/command/build.rb:24:in call' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/lib/pod_builder/command/build_all.rb:11:incall' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/exe/pod_builder:371:in block in parse_commandline' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/exe/pod_builder:370:in each' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/exe/pod_builder:370:in parse_commandline' /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/pod-builder-3.0.1/exe/pod_builder:386:in <top (required)>' /usr/local/bin/pod_builder:23:in load' /usr/local/bin/pod_builder:23:in

'

Command failed! thegalkin@Nikitas-Mac-Pro MyPrepod13 % gem pristine json --version 2.5.1 Restoring gems to pristine condition... ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /Users/thegalkin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/json-2.5.1/CHANGES.md thegalkin@Nikitas-Mac-Pro MyPrepod13 % sudo gem pristine json --version 2.5.1 Password: Restoring gems to pristine condition... Skipped json-2.5.1, it is a default gem thegalkin@Nikitas-Mac-Pro MyPrepod13 % sudo su sh-3.2# gem pristine json --version 2.5.1 Restoring gems to pristine condition... Skipped json-2.5.1, it is a default gem sh-3.2# `

tcamin commented 3 years ago

Seems like an issue with your ruby setup. I installed Ruby through rbenv installing version 2.6.3 on Big Sur.