DylanVann / react-native-fast-image

šŸš© FastImage, performant React Native image component.
MIT License
8.21k stars 1.51k forks source link

LoadError - dlopen(/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 9): no suitable image found. #778

Open oleg-moseyko opened 3 years ago

oleg-moseyko commented 3 years ago

$ yarn add react-native-fast-image yarn add v1.22.5 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] šŸ” Resolving packages... [2/4] šŸšš Fetching packages... [3/4] šŸ”— Linking dependencies... warning " > @react-native-community/cameraroll@4.0.2" has incorrect peer dependency "react-native@>=0.60 <=0.62". [4/4] šŸ”Ø Building fresh packages... success Saved lockfile. success Saved 3 new dependencies. info Direct dependencies ā”œā”€ @react-native-community/cameraroll@4.0.2 ā”œā”€ react-native-fast-image@8.3.4 ā””ā”€ react-native-image-pan-zoom@2.1.12 info All dependencies ā”œā”€ @react-native-community/cameraroll@4.0.2 ā”œā”€ react-native-fast-image@8.3.4 ā””ā”€ react-native-image-pan-zoom@2.1.12 āœØ Done in 20.58s.

$ npx pod-install npx: installed 1 in 1.458s Scanning for pods... 1.10.1

pod install Installing unimodules: expo-application@2.4.1 from ../node_modules/expo-application/ios expo-constants@9.3.5 from ../node_modules/expo-constants/ios expo-error-recovery@1.4.0 from ../node_modules/expo-error-recovery/ios expo-file-system@9.3.0 from ../node_modules/expo-file-system/ios expo-font@8.4.0 from ../node_modules/expo-font/ios expo-image-loader@1.3.0 from ../node_modules/expo-image-loader/ios expo-keep-awake@8.4.0 from ../node_modules/expo-keep-awake/ios expo-linear-gradient@8.4.0 from ../node_modules/expo-linear-gradient/ios expo-location@10.0.0 from ../node_modules/expo-location/ios expo-permissions@10.0.0 from ../node_modules/expo-permissions/ios expo-secure-store@9.3.0 from ../node_modules/expo-secure-store/ios expo-splash-screen@0.8.1 from ../node_modules/expo-splash-screen/ios expo-sqlite@8.5.0 from ../node_modules/expo-sqlite/ios expo-updates@0.4.2 from ../node_modules/expo-updates/ios unimodules-app-loader@1.4.0 from ../node_modules/unimodules-app-loader/ios unimodules-barcode-scanner-interface@5.4.0 from ../node_modules/unimodules-barcode-scanner-interface/ios unimodules-camera-interface@5.4.0 from ../node_modules/unimodules-camera-interface/ios unimodules-constants-interface@5.4.0 from ../node_modules/unimodules-constants-interface/ios unimodules-core@6.0.0 from ../node_modules/@unimodules/core/ios unimodules-face-detector-interface@5.4.0 from ../node_modules/unimodules-face-detector-interface/ios unimodules-file-system-interface@5.4.0 from ../node_modules/unimodules-file-system-interface/ios unimodules-font-interface@5.4.0 from ../node_modules/unimodules-font-interface/ios unimodules-image-loader-interface@5.4.0 from ../node_modules/unimodules-image-loader-interface/ios unimodules-permissions-interface@5.4.0 from ../node_modules/unimodules-permissions-interface/ios unimodules-react-native-adapter@5.7.0 from ../node_modules/@unimodules/react-native-adapter/ios unimodules-sensors-interface@5.4.0 from ../node_modules/unimodules-sensors-interface/ios unimodules-task-manager-interface@5.4.0 from ../node_modules/unimodules-task-manager-interface/ios

Auto-linking React Native modules for target fast: RNFastImage, RNGestureHandler, RNReanimated, RNScreens, and react-native-cameraroll Analyzing dependencies

ā€•ā€•ā€• MARKDOWN TEMPLATE ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•

Command

/Applications/MAMP/Library/bin/pod install

Report

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-darwin14]
    RubyGems : 2.5.2.3
        Host : macOS 11.0.1 (20B50)
       Xcode : 12.3 (12C33)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /Applications/MAMP/Library/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Podfile

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'fast' do
  use_unimodules!
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  # Uncomment the code below to enable Flipper.
  #
  # You should not install Flipper in CI environments when creating release
  # builds, this will lead to significantly slower build times.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work.
  #
  #  use_flipper!
  #  post_install do |installer|
  #    flipper_post_install(installer)
  #  end
  pod 'react-native-cameraroll', :path => '../node_modules/@react-native-community/cameraroll'

end

Error

LoadError - dlopen(/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 9): no suitable image found.  Did find:
        /Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi_c.bundle: code signature in (/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi_c.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. - /Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi_c.bundle
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi.rb:6:in `rescue in <top (required)>'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ffi-1.15.0/lib/ffi.rb:3:in `<top (required)>'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Applications/MAMP/Library/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:131:in `block (2 levels) in versions'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:124:in `map'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:124:in `block in versions'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:479:in `concurrent_requests_catching_errors'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:121:in `versions'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:99:in `block in versions_by_source'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `each'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `each_with_object'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `versions_by_source'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:56:in `specification_name'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:216:in `search'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `select'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `search'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:385:in `find_cached_set'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:165:in `search_for'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `each'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_by'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:53:in `block in sort_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:52:in `sort_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Applications/MAMP/Library/lib/ruby/gems/2.3.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/Applications/MAMP/Library/bin/pod:22:in `load'
/Applications/MAMP/Library/bin/pod:22:in `<main>'

ā€•ā€•ā€• TEMPLATE END ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•ā€•

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FApplications%2FMAMP%2FLibrary%2Flib%2Fruby%2Fgems%2F2.3.0%2Fgems%2Fffi-1.15.0%2Flib%2Fffi_c.bundle%2C+9%29%3A+no+suitable+image+found.++Did+find%3A%0A%09%2FApplications%2FMAMP%2FLibrary%2Flib%2Fruby%2Fgems%2F2.3.0%2Fgems%2Fffi-1.15.0%2Flib%2Fffi_c.bundle%3A+code+signature+in+%28%2FApplications%2FMAMP%2FLibrary%2Flib%2Fruby%2Fgems%2F2.3.0%2Fgems%2Fffi-1.15.0%2Flib%2Fffi_c.bundle%29+not+valid+for+use+in+process+using+Library+Validation%3A+mapped+file+has+no+cdhash%2C+completely+unsigned%3F+Code+has+to+be+at+least+ad-hoc+signed.+-+%2FApplications%2FMAMP%2FLibrary%2Flib%2Fruby%2Fgems%2F2.3.0%2Fgems%2Fffi-1.15.0%2Flib%2Fffi_c.bundle&type=Issues

If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

Aborting run An unexpected error was encountered. Please report it as a bug: CocoaPodsError: The command pod install failed ā””ā”€ Cause: Error: pod exited with non-zero code: 1 at CocoaPodsPackageManager._installAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:85286) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async CocoaPodsPackageManager.installAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:84649) at async runAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:109680) at async /Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:109766 { code: 'COMMAND_FAILED', cause: Error: pod exited with non-zero code: 1 at ChildProcess.h (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:1073) at Object.onceWrapper (events.js:421:26) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1047:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) ... at Object.spawnAsync [as default] (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:558) at CocoaPodsPackageManager._runAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:86068) at CocoaPodsPackageManager._installAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:84933) at CocoaPodsPackageManager.installAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:84660) at runAsync (/Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:109688) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async /Users/olegmoseyko/.npm/_npx/54993/lib/node_modules/pod-install/build/index.js:2:109766 { pid: 55020, output: [ '', "Searching for inspections failed: undefined method map' for nil:NilClass\n" + 'Did you mean? tap\n' ], stdout: '', stderr: "Searching for inspections failed: undefined methodmap' for nil:NilClass\n" + 'Did you mean? tap\n', status: 1, signal: null }, isPackageManagerError: true }

sonson1023 commented 3 years ago

+1

maoapp commented 1 year ago

same here :(