-
Notifications
You must be signed in to change notification settings - Fork 65
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
Automating Pods-Acknowledgements.plist copy #20
Comments
Really nice :) |
Thanks a lot for these instructions, they’re definitely useful. I’ve added a mention to this “issue” in the project readme, so I’ll close it. Ideally, these instructions should be located inside the podspec file itself, and I’m still looking for a way to achieve this. AFAIK, that’s not possible with the current CocoaPods, but it is on the roadmap. I guess I’ll give this pod a “1.0” version tag as soon as it gets implemented. |
Any way to put the target name in the filename automagically so it picks up plists with 'fancy' names? |
@stevemoser Hum, I guess we could parse the content of the app bundle, and look for files with names ending with “-acknowledgements.plist”. I’ll put that in the next version, if that sounds good. |
That's really cool! |
With CocoaPods version 0.34, the path to the |
Thanks @lukaskollmer for the info! |
In run script phase, don't forget the quotation marks! In case of CocoaPods ver. 0.34 it should be like:
|
Adding a hook to the Podfile changed, and it should be:
I think it's worth not only mentioning this issue, but also inserting these instructions in the Read Me. @vtourraine if you agree, I can do a PR. |
Guys, these don't work anymore since cocoapods v1.0.0, because of the "abstract_target" definition. |
anybody, how does it help to copy acknowledgements to project directory? Which of scripts in build target would put this file in archive/app on archive/build action? Answer: your hands :/ BTW def after_install_section(target_name)
# pod acknowledgements section
require 'fileutils'
file = %Q'Pods-#{target_name}-acknowledgements.plist'
from = %Q'Pods/Target Support Files/Pods-#{target_name}/'
to = %Q'Custom/Resources/Pods/'
FileUtils.cp_r(from + file, to + file, :remove_destination => true)
end |
If you want to automatically copy Pods-Acknowledgements, there are two options:
Add a hook to the Podfile:
or
Add a new run script build phase at the end of your target build phases with the following line:
The text was updated successfully, but these errors were encountered: