pod install 在创建 Acknowledgements.plist 时导致错误 "unknown file type"
pod install causes error "unknown file type" when creating Acknowledgements.plist
我正在为我的应用程序使用 CocoaPods。
其中一个模块是用Swift编写的,所以我的Podfile如下。
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
当我运行pod install
时,出现错误信息:
[!] An error occurred while processing the post-install hook of the Podfile.
unknown file type: Pods/Target Support Files/Pods/Pods-Acknowledgements.plist
当然,我已经准备好 Setting.bundle 并在包内创建了一个空的 Acknowledgement.plist,并将 root.plist 修改为建议的设置。
我的 CocoaPods 版本是 0.39.0.
如何解决错误?
事实证明问题不在于 CocoaPods。相反,它无法在提供的位置找到文件...进入 finder 并确保在 "Pods/Target Support Files/Pods/Pods-Acknowledgements.plist"
处有一个文件
就我而言,我只是 运行宁 pod install
在错误的目录中。显然,因为 Podfile 中的文件路径是相对的,这意味着您应该 运行 项目根目录中的脚本。
我正在为我的应用程序使用 CocoaPods。
其中一个模块是用Swift编写的,所以我的Podfile如下。
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
当我运行pod install
时,出现错误信息:
[!] An error occurred while processing the post-install hook of the Podfile.
unknown file type: Pods/Target Support Files/Pods/Pods-Acknowledgements.plist
当然,我已经准备好 Setting.bundle 并在包内创建了一个空的 Acknowledgement.plist,并将 root.plist 修改为建议的设置。
我的 CocoaPods 版本是 0.39.0.
如何解决错误?
事实证明问题不在于 CocoaPods。相反,它无法在提供的位置找到文件...进入 finder 并确保在 "Pods/Target Support Files/Pods/Pods-Acknowledgements.plist"
处有一个文件就我而言,我只是 运行宁 pod install
在错误的目录中。显然,因为 Podfile 中的文件路径是相对的,这意味着您应该 运行 项目根目录中的脚本。