I'm using CocoaPods for my app.
One of the modules is written in Swift, so my Podfile is as below.
platform :ios, "8.0"
use_frameworks!
target "ossTest" do
pod 'Charts', "~> 2.0"
pod "Color-Picker-for-iOS", "~> 2.0"
end
post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods/Pods-Acknowledgements.plist', 'ossTest/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
# error
#FileUtils.cp_r('Pods/Pods-acknowledgements.plist', 'ossTest/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
end
When I run pod install
, an error message appears:
[!] An error occurred while processing the post-install hook of the Podfile.
unknown file type: Pods/Target Support Files/Pods/Pods-Acknowledgements.plist
Of course, I've prepared Setting.bundle and inside the bundle, I've created an empty Acknowledgement.plist, and modified root.plist to the suggested setting.
My CocoaPods' version is 0.39.0.
How can I solve the error?
In my case, I was just running pod install
in the wrong directory. Obviously, because file paths in your Podfile are relative, it means you should run the script from your project's root directory.
Turns out the issue is not with CocoaPods. Instead it can't find a file at the provided location... Go in finder and insure there is a file at "Pods/Target Support Files/Pods/Pods-Acknowledgements.plist"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With