react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

Unable to find a specification for `React-jsinspectortracing` depended upon by `MultipleImagePicker`

Open chathuralakmal opened this issue 7 months ago • 2 comments

After updating MultipleImagePicker from version 1.1.8 to the latest 2.2.3, I encountered the following CocoaPods error during installation:

[!] Unable to find a specification for React-jsinspectortracing depended upon by MultipleImagePicker

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile. What I've tried:

Ran pod repo update Tried pod install --repo-update Cleared all Pods/, Podfile.lock, and DerivedData Fully reinstalled node_modules and pods Verified the Podfile and all dependencies Environment:

{ "expo": "^52.0.18", "react-native": "0.76.5", "@baronha/react-native-multiple-image-picker": "2.2.3" }

chathuralakmal avatar May 14 '25 10:05 chathuralakmal

Apply this patch app/patches/@baronha%[email protected]:

diff --git a/MultipleImagePicker.podspec b/MultipleImagePicker.podspec
index 50a6fee2e708801d5f65a621e911bbce71fcef0e..4ece31b3154d0e68094e80d72f280410c8958e6b 100644
--- a/MultipleImagePicker.podspec
+++ b/MultipleImagePicker.podspec
@@ -41,7 +41,7 @@ Pod::Spec.new do |s|
     s.dependency "React-Core"
     add_dependency(s, "React-jsinspector", :framework_name => "jsinspector_modern")
     add_dependency(s, "React-rendererconsistency", :framework_name => "React_rendererconsistency")
-    add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
+    # add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
   end
 
   load 'nitrogen/generated/ios/MultipleImagePicker+autolinking.rb'

Basically from 2.2.3, this library is compatible only with RN >= 0.79

Daavidaviid avatar Jun 11 '25 15:06 Daavidaviid

The following change is required in the Podspec file https://github.com/jpudysz/react-native-unistyles/commit/25d378b8cfecc791b2c0d632ba274c6abb9d03b0

@baronha

if ENV["USE_FRAMEWORKS"]
    RN_VERSION = get_rn_version(ENV['REACT_NATIVE_PATH']) || 999

    s.dependency "React-Core"
    add_dependency(s, "React-jsinspector", :framework_name => "jsinspector_modern")

    if RN_VERSION >= 79
      add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
    end

    if RN_VERSION >= 80
      add_dependency(s, "React-jsinspectorcdp", :framework_name => 'jsinspector_moderncdp')
    end

    add_dependency(s, "React-rendererconsistency", :framework_name => "React_rendererconsistency")
  end

ertucaglar avatar Jul 03 '25 14:07 ertucaglar