Ask user to run 'pod install' when a resource to copy not found

parent 462be233
...@@ -8,6 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -8,6 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### Enhancements
* Ask user to run `pod install` when a resource not found during in copy resources script.
[Muhammed Yavuz Nuzumlalı](https://github.com/manuyavuz)
* Add support to track `.def` sources. * Add support to track `.def` sources.
[Dimitris Koutsogiorgas](https://github.com/dnkoutso) [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#4490](https://github.com/CocoaPods/CocoaPods/pull/4490) [#4490](https://github.com/CocoaPods/CocoaPods/pull/4490)
......
...@@ -114,6 +114,12 @@ realpath() { ...@@ -114,6 +114,12 @@ realpath() {
install_resource() install_resource()
{ {
if [ ! -e "${PODS_ROOT}/$1" ]; then
cat << EOM
error: Resource "${PODS_ROOT}/$1" not found. Run 'pod install' to update the copy resources script.
EOM
exit 1
fi
case $1 in case $1 in
*\.storyboard) *\.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$1\\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$1\\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment