# Bitrise ignoring Xcode Run Script

**URL:** <https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705>\
**Category:** Builds\
**Tags:** ios, xcode\
**Created:** [July 21, 2019, 5:23pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705 "2019-07-21T17:23:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bot](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bot](https://discuss.bitrise.io/u/bot)\
**Post date:** [July 21, 2019, 5:23pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/1 "2019-07-21T17:23:22Z")

</div>

I have a Xcode Build Phase Run Script to add some extra settings on dev builds like so:

```auto
if ["${CONFIGURATION}" != "Release"]; then

echo "Copying Data"
echo "${PROJECT_DIR}/${PRODUCT_NAME}/Settings.bundle"
echo "To product"
echo "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"

cp -r "${PROJECT_DIR}/${PRODUCT_NAME}/Settings.bundle" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"
fi

```

When I compile/archive it locally, I see the output:

```auto
Copying Data
/......../mt-scheduler-ios/MyApp/App/Settings.bundle
To product
/....../Xcode/DerivedData/App-dwgayfmddwkoatgfcxhmxthgkbga/Build/Intermediates.noindex/ArchiveIntermediates/Production/BuildProductsPath/Production-iphoneos/App.app

```

Is there something that could cause to ignore the Run Script phase or maybe some of those variables, like: ${PROJECT\_DIR} or ${BUILT\_PRODUCTS\_DIR} don’t exists on Bitrise environment?

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [July 22, 2019, 8:50am UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/2 "2019-07-22T08:50:48Z")

</div>

Hi @bot!

Can you please post a build URL here about this happening so we can check out the logs? 🙂

---

<div class="post-metadata">

**Author:** ![bot](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bot](https://discuss.bitrise.io/u/bot)\
**Post date:** [July 27, 2019, 8:49pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/3 "2019-07-27T20:49:17Z")

</div>

build URL like this one?  
Let me know if that’s not what you needed.

> **[Bitrise - Mobile Continuous Integration and Delivery](https://app.bitrise.io/users/sign_in)**
>
> Mobile Continuous Integration and Delivery for your whole team, with dozens of integrations for your favourite services.

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [July 30, 2019, 12:36pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/4 "2019-07-30T12:36:25Z")

</div>

Hi there! 👋 The build URL would begin with `app.bitrise.io/build/` and would also contain your app’s build slug which is an alphanumeric string. The URL would point to the page where you normally view your build log. Could you send me that URL please?

---

<div class="post-metadata">

**Author:** ![bot](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bot](https://discuss.bitrise.io/u/bot)\
**Post date:** [July 30, 2019, 2:32pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/5 "2019-07-30T14:32:12Z")

</div>

That’s exactly what I posted before, but it seems this forum is parsing the link and cropping the URL.  
See how it looks when it’s on edit mode:

 ![31](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/6/6d01ab73f6881940feeafdadc3c04f7188af4cbe.png)

Here’s the path without host to see if it fixes the issue:  
“build/26fe857daf582715#?tab=log”

---

<div class="post-metadata">

**Author:** ![bot](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bot](https://discuss.bitrise.io/u/bot)\
**Post date:** [July 31, 2019, 1:23pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/6 "2019-07-31T13:23:07Z")

</div>

it turns out the script is being executed, but it’s just not being echoed for some reason.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [August 30, 2019, 1:23pm UTC](https://discuss.bitrise.io/t/bitrise-ignoring-xcode-run-script/9705/7 "2019-08-30T13:23:11Z")

</div>

Closed on August 30, 2019, 1:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
