Pod install generates an "unknown file type" error when creating Acknowledgements.plist

I am using CocoaPods for my application.

One of the modules is written in Swift, so my subfile looks like this.

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 prepared Set.bundle and inside the package, I created an empty Acknowledgement.plist and changed root.plist before the proposed setup.

My version of CocoaPods is 0.39.0.

How can I solve this error?

+8
ios cocoapods
source share
2 answers

In my case, I just ran pod install in the wrong directory. Obviously, since the file paths in your subfile are relative, this means that you must run the script from the project root directory.

+16
source share

Turns out the problem is not CocoaPods. Instead, he cannot find the file in the specified location ... Go to the search engine and make sure that there is a file in the folder "Subprograms / Target support files / Pods / Pods -Acknowledgements.plist"

+2
source share

All Articles