No podspec found for Interactable
idlework opened this issue · comments
When I add this package to my project I get the error: No podspec found for Interactable
.
yarn add react-native-interactable
- add
pod 'Interactable', :path => '../node_modules/react-native-interactable'
pod install
orpod 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.
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://git@github.com/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
- go to "node_modules/react-native-interactable/lib/ios" folder
- add new blank file rename it "Interactable.podspec"
- 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" => "author@domain.com" }
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
- save it.
- open your terminal now and from your project main root
cd ios
press enter andpod 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:
- If you have any version of
react-native-interactable
installed - remove it (yarn remove react-native-interactable
). Also unlink itreact-native unlink react-native-interactable
- Add version from master by running
yarn add https://github.com/wix/react-native-interactable.git#master
- Install pods by running
cd ios
andpod install
. Pod installation should report thatInteractable
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:
- Make sure you have this entry in
package.json
:"react-native-interactable": "https://github.com/wix/react-native-interactable.git#master"
- 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"