Skip to content
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

undefined method `copy_resources_script_path' for <Pod::PodTarget> #1157

Closed
dennisreimann opened this issue Jul 1, 2013 · 7 comments
Closed

Comments

@dennisreimann
Copy link

It looks like the commit 363af1f broke some post_install hooks that were relying on the library representation being passed into the block. An example that breaks with the release of 0.21.0 (and its release candidates) from the HockeySDK-iOS podspec:

s.post_install do |library_representation|
    File.open(library_representation.copy_resources_script_path, 'a') do |file|
        file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
    end
end

The Mapbox iOS SDK seems to have this problem too: mapbox/DEPRECATED-mapbox-ios-sdk#265

@fabiopelosin
Copy link
Member

I can confirm the bug, in the last release the Pod target is being used instead of the aggregate target for the library representation. This is a serious bug which needs to be fixed ASAP. I already have implemented a partial fix (the issue is present also on the installer) and I might be able to complete and push it tonight.

@dennisreimann
Copy link
Author

Nice! 🍰

@nejra
Copy link

nejra commented Jul 3, 2013

I will also be very grateful if this is going to be fixed any time soon :) I'm having issues with MapBox SDK.

@akaralar
Copy link

akaralar commented Jul 3, 2013

same here! having issues with MapBox 1.0.3

@akaralar
Copy link

akaralar commented Jul 3, 2013

i update cocoapods with "gem update cocoapods", but it says there is nothing to update. when will this fix be available there? or can you point me as to how i will clone it from github?

@nullproduction
Copy link

subscribe to the issue akaralar.
How to upgrade to the Github?

@alloy
Copy link
Member

alloy commented Jul 31, 2013

@akaralar @nullproduction Use gem install cocoapods instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants