I have an iOS for which I want to run a build phase that reads a value from a JSON file, export that as an environment variable and then read that in my Info.plist.

I currently have: 

[![enter image description here](https://i.stack.imgur.com/83Uer.png)](https://i.stack.imgur.com/83Uer.png)
[![enter image description here](https://i.stack.imgur.com/rk0nD.png)](https://i.stack.imgur.com/rk0nD.png)

```
# Build Scripts/SetAPIVersion
set -e

if ! which jq > /dev/null; then
echo "error: jq is missing. Be sure to git pull `dev-box` and run apply.sh"
exit 1
fi

export API_VERSION =$(cat ../src/version.json | jq .api)

echo "Set API Version to $(API_VERSION)!"

```

My application will build however the value does not appear to be set. What am I doing wrong here?