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
pod spec lint error with On Demand Resources #10933
Comments
Oh that is a great issue report! We will fix for 1.11.1. We have apps building for ODR but no lint tests. Thanks a lot. We can ship this release hopefully this week. |
@penelopearaujo I cannot seem to reproduce locally. Do you have a sample repo I can try this with or a podspec? |
makes me wonder if this an Xcode related issue? I tried Xcode 13 beta and it passed and Xcode 12.5.1 and it passed locally. |
Thanks, @dnkoutso! I will try again after updating Xcode to 12.5.1 version :) You can reproduce the error with this sample project, which does nothing, but tests this ODR thing. |
awesome |
Yes I tried your sample repo and I cant repro at this time. |
@penelopearaujo in your repo there is no actual |
Well there is spec.on_demand_resources = { 'roboto' => ['Sources/Resources/*.ttf'] } which doesnt match it. |
OK after messing around with it I repro'd!
|
Yes! I forgot to commit after moving things around 🤦🏻♀️ |
it should not be an Xcode issue I dont think. I got a fix already coming up. |
Cool! Thanks ;) |
PR #10936 |
Fixed and merged! You can use bundler to point to the |
Hey! Updated the version (now using
Is it related or should I open another issue for this? |
do not open yet a new issue let me verify on my end. |
@penelopearaujo I just tried your sample repo again with 1.11.2 and it passes:
make sure you are using 1.11.2. Try |
|
The podspec: Pod::Spec.new do |spec|
spec.name = "Palettes"
spec.version = "0.0.2"
spec.summary = "A pod to get palettes and assets."
spec.description = <<-DESC
A pod to get instant and beautiful color palettes.
DESC
spec.homepage = "https://github.com/penelopearaujo/palettes"
spec.license = 'ISC'
spec.author = { "PMPA" => "pmpa@cin.ufpe.br" }
spec.source = { :git => "https://github.com/penelopearaujo/palettes.git", :tag => "#{spec.version}" }
spec.source_files = "**/*.{swift,h,m}"
spec.on_demand_resources = { 'roboto' => ['palettes/palettes/Roboto-Regular.ttf'] }
spec.pod_target_xcconfig = {"PRODUCT_BUNDLE_IDENTIFIER" => "me.pmpa.palettes" ,"DEVELOPMENT_TEAM" => "PMPA"}
spec.swift_version = '5.0'
spec.platform = :ios, '14.4'
end |
oooh @penelopearaujo I see its |
@penelopearaujo I will try to land that PR today or tomorrow (PST) and unblock you. Thanks for your patience. |
Yes, that's the problem! I was moving code around to check if the issue was local before replying, haha. |
Report
What did you do?
.ttf
file to my projecton demand resource tag
to my.ttf
filespec.on_demand_resources
key in my podspec and specified the path to the.ttf
filepod spec lint
What did you expect to happen?
expected the spec to pass validation so that I could push it to cocoapods
What happened instead?
running
pod spec lint
resulted in the error:I do not have a target or project called App, and the PRODUCT_BUNDLE_IDENTIFIER build setting is set in my project's info.plist as
$(PRODUCT_BUNDLE_IDENTIFIER)
CocoaPods Environment
Stack
Installation Source
Plugins
The text was updated successfully, but these errors were encountered: