React-native-interactable: No podspec found for Interactable

Created on 17 Jun 2019  路  16Comments  路  Source: wix/react-native-interactable

When I add this package to my project I get the error: No podspec found for Interactable.

  1. yarn add react-native-interactable
  2. add pod 'Interactable', :path => '../node_modules/react-native-interactable'
  3. pod install or pod update

results in error: No podspec found for 'Interactable' in '../node_modules/react-native-interactable'

There is no podspec in the node_modules/react-native-interactable folder.

Most helpful comment

Hello there I think you need to add some code before pod working fine follow the steps bellow
but before that make sure you add in your "Podfile"
this line firest
pod 'Interactable', :path => '../node_modules/react-native-interactable/lib/ios'
and then save it and

  1. go to "node_modules/react-native-interactable/lib/ios" folder
  2. add new blank file rename it "Interactable.podspec"
  3. add this code in the file

Pod::Spec.new do |s|
s.name = "Interactable"
s.version = "1.0.0"
s.summary = "Interactable"
s.description = "Interactable"
s.homepage = "https://github.com/wix/react-native-interactable"
s.license = "MIT"
s.author = { "author" => "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/wix/react-native-interactable.git", :tag => "master" }
s.source_files = "Interactable/*/.{h,m}"
s.requires_arc = true
s.dependency "React"
end

  1. save it.
  2. open your terminal now and from your project main root cd ios press enter and pod install
    Should work fine. cheers...

All 16 comments

save issue here.
Version on package-lock.json

"react-native-interactable": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/react-native-interactable/-/react-native-interactable-1.0.0.tgz", "integrity": "sha512-e/GyydV3nFWVL36frdM8H+wGxy5pJu0WjlN6dgtBIRCaGz7nLbCRWFINs7SRwIaI9LPXVAqEXQTOc2d5LJN4HA==" },

Is there any update about this issue?

Ok, I solved it by removing Interactable from pods and linking iOS project manually.

it seems rn0.60 requires that iOS dependencies be linked through pods

Any solution?

@Mohsen2839 I've been installing from master instead of NPM to get the podspec

@alexichristakis
Can you tell how to install from master

I am trying npm install git+https://[email protected]/wix/react-native-interactable.git\#master but still i am not getting podspec file

Hello there I think you need to add some code before pod working fine follow the steps bellow
but before that make sure you add in your "Podfile"
this line firest
pod 'Interactable', :path => '../node_modules/react-native-interactable/lib/ios'
and then save it and

  1. go to "node_modules/react-native-interactable/lib/ios" folder
  2. add new blank file rename it "Interactable.podspec"
  3. add this code in the file

Pod::Spec.new do |s|
s.name = "Interactable"
s.version = "1.0.0"
s.summary = "Interactable"
s.description = "Interactable"
s.homepage = "https://github.com/wix/react-native-interactable"
s.license = "MIT"
s.author = { "author" => "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/wix/react-native-interactable.git", :tag => "master" }
s.source_files = "Interactable/*/.{h,m}"
s.requires_arc = true
s.dependency "React"
end

  1. save it.
  2. open your terminal now and from your project main root cd ios press enter and pod install
    Should work fine. cheers...

@airqb that will stay in my local right then other project member needs to do the same steps again.

@shubhanus, @izadmehr will I think so, you know yesterday I soo it at the master file https://github.com/wix/react-native-interactable/blob/master/Interactable.podspec already included but When I try to install it using npm or yaren.., no such file Interactable.podspecy in the local folder

@airqb because npm version is different. it's not from the master.

I am using RN 0.60.4 and I have successfully installed react-native-interactable from master branch. My steps:

  1. If you have any version of react-native-interactable installed - remove it (yarn remove react-native-interactable). Also unlink it react-native unlink react-native-interactable
  2. Add version from master by running yarn add https://github.com/wix/react-native-interactable.git#master
  3. Install pods by running cd ios and pod install. Pod installation should report that Interactable pod has been added. NOTE: There is no need to add any entry in your podfile - RN 60 auto-linker does that automatically.

It worked for me like this and app ran with interactable functionality

@martynasadomaitis That doesn't work, it just states that react-native-interactable was skipped as no podspec file was found.

@Appkidd There might be some package caching issue involved:

  1. Make sure you have this entry in package.json: "react-native-interactable": "https://github.com/wix/react-native-interactable.git#master"
  2. run yarn upgrade react-native-interactable

If after this /node_modules/react-native-interactable/Interactable.podspec still does not exist, then I am not sure what is wrong

@martynasadomaitis Using Yarn instead of NPM did the trick - thanks a lot 馃憤

You can manually add library to workspace
Then, select Interactable.xcodeproj in "Libraries" group -> Build Settings -> Header search path -> Enter "${SRCROOT}/../../../../ios/Pods/Headers/Public" with "recursive"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elanpang picture elanpang  路  5Comments

yoavrofe picture yoavrofe  路  4Comments

rexlow picture rexlow  路  6Comments

brentvatne picture brentvatne  路  6Comments

m10653 picture m10653  路  4Comments