CocoaPods/CocoaPods — pull request #1556 by fluidsonic (2013-11-06 13:53:45+00:00)
Title: Corrected wrong output path passed to actool for Apps.

CocoaPods' new xcassets feature broke our projects because its copy resource script fails to run.
The output directory for `actool` is wrong.

Current output directory:
`"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}"`

But correct would be:
`"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}"`

**Reason:** `WRAPPER_NAME` is defined as `${PRODUCT_NAME}.${WRAPPER_SUFFIX}`, but we override `WRAPPER_NAME` for our projects (which is completely legal to do ;).

Even better might be:
`"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"`

But the [Xcode Build Setting Reference](https://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW71) isn't accurate about the variable's default values for Apps so I have no idea if we can rely on `UNLOCALIZED_RESOURCES_FOLDER_PATH`.

For example we observed that `UNLOCALIZED_RESOURCES_FOLDER_PATH` equals `$WRAPPER_NAME` while the documentation states that its default value is something like `$WRAPPER_NAME/Contents/Contents/Resources`.