-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local path for s.source in podspec #216
Comments
Apparently I am not sure why it was removed. 😕 |
Can we get any response? This was so convenient |
I do, in fact, have a workaround. But it is questionable, I'd say. HowAssuming In pod 'MyFramework', :podspec => "./MyFramework.podspec" Then, edit your s.source = { :http => 'file:' + __dir__ + '/MyFramework.zip' } Why
|
Was really missing this feature today, workaround above works, but is so cumbersome to implement due to need of manually zipping a package. Will CocoaPods consider bringing back |
@iljadaderko I was talking about binary If you're developing an open source pod, you can use |
These workarounds are pretty surprising. Is there no way to include a framework (podspec) that's in development locally to be used within another cocoapods project? It has to be uploaded somewhere? |
As I've said, someone in cocoapods team decided to remove this feature a long time ago. |
I solved this by executing the zip command with the @Katsz solution. Example zipfile = "#{__dir__}/../../artifacts/JasonComponent.zip"
Pod::Spec.new do |s|
s.name = "JasonComponent"
s.version = "1.0.0"
s.summary = "Jason Component"
s.description = "Enables of Jason Components"
s.homepage = "https://github.com/jasonelle/jasonette-ios"
s.screenshots = ""
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = {
"Ethan Gliechtenstein" => "https://github.com/gliechtenstein" ,
"Camilo Castro" => "https://github.com/clsource"
}
system("rm -rf #{zipfile} && zip -r #{zipfile} #{__dir__} > /dev/null")
s.source = { :http => "file://#{zipfile}"}
s.source_files = "src", "src/**/*.{h,m,swift}"
s.requires_arc = true
s.ios.deployment_target = '8.0'
end Then just use |
It works for me with empty path |
any news for this issue? |
This works for me: |
doesn't work for me. I'm getting : |
@slootzky @sunil-chayagol @xT-Tx's answer working for me, Hope you are giving git repo folder path, Not the podfile folder path. Ex: Thanks @xT-Tx |
Thanks, I'll give that a try |
Any news on that? Support for local PS: Since v0.60.0 react-native provides CocoaPods integration by default (https://github.com/facebook/react-native/releases/tag/v0.60.0). |
@eddyfrank you can just use empty git path in react native i.e. following works for me require 'json'
package = JSON.parse(File.read(File.join(__dir__, '../..', 'package.json')))
name = 'ModuleName'
Pod::Spec.new do |s|
s.name = name
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.platform = :ios, '11.4'
s.source = { :git => '' }
s.source_files = '**/*.{h,m}'
s.preserve_paths = '**/*.{h,m}'
s.dependency 'React'
end |
@iljadaderko Thanks. Sounds like a workaround. However, it does not work here :( Error on
|
What .zip file are you referring to? |
This will cause the podfile.lock file to update on every developer local environment 😢 |
Hi, do you have any workarround on this problem? |
@fahmisdk6 not yet.. Our problematic dependency is RNQualtricsDigital from Every time a developer installs dependencies the podfile.lock changes. Here is their podspec:
This is the node_module: |
@wilau2 We're also having this issue with Qualtrics, found any workaround yet? |
I’m unsure what people refer to when they say that this used to work, perhaps it did but was a fluke as the In the case of React Native and pods being shipped inside npm packages, “auto-linking” uses the Podfile In short, the |
I missed context about what repo this was on, I incorrectly assumed it was the main repo, so I better understand your point now. I can’t speak for the current maintainers, only why historically this has been as it was. I would suggest you open a issue on the main repo to clearly discuss your needs and how they deviate from normal CP users. |
@henninghall, no.. we have some discussions with Qualtrics support and it's not the best experience. |
Hi There, What happens if the pod is private? Best Regards |
instead of giving git path i have given the below path for s.source in my podspec
{:path=>"~/Users/sunil/workspace/MyFramework"}
validation does not pass and gives message as unsupported download strategy. is there a way to give local path instead of git path.
The text was updated successfully, but these errors were encountered: