Cocoapods: Path passed to install_resource is incorrect for Hockey App

Created on 23 May 2016  Â·  3Comments  Â·  Source: CocoaPods/CocoaPods

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with
what info we expect.
Please remove this line and all above before submitting.

Report

What did you do?

Tried to do a Jenkins build after updating project with CocoaPods 1.0.0

What did you expected to happen?

Build to succeed.

What happened instead?

Build Failed

The issue appears to be that the PODS_CONFIGURATION_BUILD_DIR variable in Pods-Target-resource.sh is creating an incorrect path. this is the same issue others have reported here https://github.com/CocoaPods/CocoaPods/issues/4963. that issue was closed but seems like the problem is persisting.

Here's a code snippet:
if [[ "$CONFIGURATION" == "AdHoc" ]]; then
install_resource "GoogleAppIndexing/Resources/GoogleAppIndexingResources.bundle"
install_resource "$PODS_CONFIGURATION_BUILD_DIR/HockeySDK/HockeySDKResources.bundle"
install_resource "IQKeyboardManager/IQKeyBoardManager/Resources/IQKeyboardManager.bundle"
install_resource "SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle"
fi

Note HockeySDK is the only one with PODS_CONFIGURATION_BUILD_DIR. Its the only one failing.

awaiting input

Most helpful comment

What command are you using to build? Note that you need to set BUILD_DIR instead of CONFIGURATION_BUILD_DIR.

All 3 comments

What command are you using to build? Note that you need to set BUILD_DIR instead of CONFIGURATION_BUILD_DIR.

Likely a duplicate of #5358

Yes, its the same issue as #5358.

Was this page helpful?
0 / 5 - 0 ratings