# Fastlane params issue

**URL:** <https://discuss.bitrise.io/t/fastlane-params-issue/220>\
**Category:** Tooling Issues\
**Tags:** fastlane\
**Created:** [January 11, 2017, 11:22am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220 "2017-01-11T11:22:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [January 11, 2017, 11:22am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/1 "2017-01-11T11:22:53Z")

</div>

**Description of the issues**  
It seems that it can’t properly handle spaced in the fastlane params.  
I tried to run a lane with an environment variable that contains a space (example: $APP\_NAME = “My App”) as the following code:

fastlane [lane] app\_name:$APP\_NAME

Also tried:  
fastlane [lane] app\_name:"$APP\_NAME"  
fastlane [lane] app\_name:’$APP\_NAME’  
fastlane [lane] app\_name:"${APP\_NAME}"

but app\_name is always trimmed.

**Environment:**  
Bitrise: Xcode 8.2, on macOS 10.12 (Sierra)  
Fastlane step version: 2.2.0 (latest)  
Fastlane gem version: 2.7.0

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 11, 2017, 11:28am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/2 "2017-01-11T11:28:55Z")

</div>

Thanks for the report, @godreikrisztian will release a new version of the `fastlane` step today which will fix this (the case when your fastlane params include whitespace characters).

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [January 11, 2017, 4:10pm UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/3 "2017-01-11T16:10:05Z")

</div>

@viktorbenei thank you 🙂

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 11, 2017, 4:11pm UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/4 "2017-01-11T16:11:41Z")

</div>

I just checked and @godreikrisztian just finished the new version and should be shared soon! 😉

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [January 11, 2017, 4:38pm UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/5 "2017-01-11T16:38:42Z")

</div>

Hi @vscafuto,  
we released a new version [2.3.0](https://github.com/bitrise-io/steps-fastlane/releases/tag/2.3.0), it will `shell split` the lane input’s value, to properly pass these params to fastlane command.

The new version will be available in the steplib in ~20min.

Thanks for the report!

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 11, 2017, 4:50pm UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/6 "2017-01-11T16:50:37Z")

</div>

It was just released - should be available now 😉

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [January 12, 2017, 7:47am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/7 "2017-01-12T07:47:55Z")

</div>

Thank you @godreikrisztian @viktorbenei 🙂

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [March 23, 2017, 7:54am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/8 "2017-03-23T07:54:10Z")

</div>

I’ve the same problem with fastlane 2.3.7 (maybe a regression?) can you check it please?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 23, 2017, 9:53am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/9 "2017-03-23T09:53:53Z")

</div>

> [@vscafuto](#):
>
> I’ve the same problem with fastlane 2.3.7 (maybe a regression?) can you check it please?

Can you please include the log here? Including the step’s header and footer.

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [March 23, 2017, 10:33am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/10 "2017-03-23T10:33:43Z")

</div>

In my workflow, I set this environment variable:

ENV VARIABLE:

- envman add --key APP\_DISPLAY\_NAME --value Qicraft Norway

FASTLANE STEP  
ci\_script app\_name:$APP\_DISPLAY\_NAME bundle\_identifier:$APP\_BUNDLE\_ID app\_version:$APP\_VERSION app\_build:$APP\_BUILD sku\_name:$APP\_SKU\_NAME output\_path:$MWAPP\_PROJECT\_PATH deploy:TestFlight

(I also tried app\_name: “$APP\_DISPLAY\_NAME” but it doesn’t work)

LOG:

±-----------------------------------------------------------------------------+  
| (4) fastlane@2.3.7 |  
±-----------------------------------------------------------------------------+  
| id: fastlane |  
| version: 2.3.7 |  
| collection: [https://github.com/bitrise-io/bitrise-steplib.git](https://github.com/bitrise-io/bitrise-steplib.git) |  
| toolkit: go |  
| time: 2017-03-22T09:13:16-07:00 |  
±-----------------------------------------------------------------------------+  
| |  
e[34mINFOe[0m[09:13:16] \* e[32;1m[OK]e[0m Step dependency (go) installed, available.

e[34;1mConfigs:e[0m

- WorkDir: /Users/vagrant/git
- Lane: ci\_script app\_name:Qicraft bundle\_identifier:com.technogym.mywellness.qicraftnorway app\_version:4.0.0 app\_build:4003 sku\_name:qicraftnorway1.0 output\_path:/Users/vagrant/git/Mywellness deploy:TestFlight
- UpdateFastlane: true

e[34;1mExpand WorkDire[0m  
e[32;1mExpanded WorkDir: /Users/vagrant/gite[0m

e[34;1mDetermine desired Fastlane versione[0m  
Checking Gemfile.lock (/Users/vagrant/git/Gemfile.lock) for fastlane gem  
Gemfile.lock does not exist

e[34;1mUpdate system installed Fastlanee[0m  
e[32;1m$ gem “install” “fastlane” "–no-document"e[0m  
Successfully installed tty-screen-0.5.0  
Successfully installed fastlane-2.22.0  
2 gems installed

## e[34;1mFastlane version:e[0m e[32;1m$ fastlane "–version"e[0m fastlane installation at path: /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.22.0/bin/fastlane

fastlane 2.22.0

e[34;1mRun Fastlanee[0m  
e[32;1m$ fastlane “ci\_script” “app\_name:Qicraft” “bundle\_identifier:com.technogym.mywellness.qicraftnorway” “app\_version:4.0.0” “app\_build:4003” “sku\_name:qicraftnorway1.0” “output\_path:/Users/vagrant/git/Mywellness” "deploy:TestFlight"e[0m  
[09:13:27]: e[32m-------------------------------------------------e[0m  
[09:13:27]: e[32m— Step: Verifying required fastlane version —e[0m  
[09:13:27]: e[32m-------------------------------------------------e[0m  
[09:13:27]: Your fastlane version 2.22.0 matches the minimum requirement of 1.36.0 ✅  
[09:13:27]: e[32m------------------------------e[0m  
[09:13:27]: e[32m— Step: default\_platform —e[0m  
[09:13:27]: e[32m------------------------------e[0m  
[09:13:27]: e[32mDriving the lane ‘ios ci\_script’ 🚀e[0m  
[09:13:27]: e[32m-----------------------------------------------------e[0m  
[09:13:27]: e[32m— Step: Switch to ios manage\_prov\_profiles lane —e[0m  
[09:13:27]: e[32m-----------------------------------------------------e[0m  
[09:13:27]: Cruising over to lane ‘ios manage\_prov\_profiles’ 🚖  
[09:13:27]: e[32m-------------------e[0m  
[09:13:27]: e[32m— Step: match —e[0m  
[09:13:27]: e[32m-------------------e[0m  
[09:13:27]: e[32mSuccessfully loaded ‘/Users/vagrant/git/fastlane/Matchfile’ 📄e[0m

±---------------------±-----------------------------------------------------+  
| Detected Values from ‘./fastlane/Matchfile’ |  
±---------------------±-----------------------------------------------------+  
| git\_url | [git@bitbucket.org](mailto:git@bitbucket.org):mywellnesscloud/fastlane-match.git |  
±---------------------±-----------------------------------------------------+

As you can see, the app\_name parameter is not Qicraft Norway but only Qicraft

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [March 23, 2017, 10:54am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/11 "2017-03-23T10:54:59Z")

</div>

Hi @vscafuto could you please try to export the `APP_DISPLAY_NAME ` env var

> [@vscafuto](#):
>
> envman add --key APP\_DISPLAY\_NAME --value Qicraft Norway

this way:

`envman add --key APP_DISPLAY_NAME --value "Qicraft Norway"`

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [March 23, 2017, 11:04am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/12 "2017-03-23T11:04:40Z")

</div>

Workflow:  
envman add --key APP\_DISPLAY\_NAME --value “$APP\_DISPLAY\_NAME”

Log:  
envman add --key APP\_DISPLAY\_NAME --value ‘Qicraft Norway’

Run Fastlane  
$ fastlane “ci\_script” “app\_name:Qicraft” “Norway” “bundle\_identifier:com.technogym.mywellness.qicraftnorway” “app\_version:4.0.0” “app\_build:4004” “sku\_name:qicraftnorway1.0” “output\_path:/Users/vagrant/git/Mywellness” “deploy:TestFlight”  
[04:00:52]: -------------------------------------------------  
[04:00:52]: — Step: Verifying required fastlane version —  
[04:00:52]: -------------------------------------------------  
[04:00:52]: Your fastlane version 2.22.0 matches the minimum requirement of 1.36.0 ✅  
[04:00:52]: ------------------------------  
[04:00:52]: — Step: default\_platform —  
[04:00:52]: ------------------------------  
±-----------------±------+  
| Lane Context |  
±-----------------±------+  
| DEFAULT\_PLATFORM | ios |  
±-----------------±------+  
[04:00:52]: Could not find lane ‘ci\_script Norway’. Available lanes: ios test, ios beta, ios deploy, ios ci\_script, ios produce\_screenshots

It doesn’t work. It trims the name in two strings

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [March 23, 2017, 11:09am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/13 "2017-03-23T11:09:31Z")

</div>

@vscafuto could you please share your bitrise.yml? If it contains secret informations please send us a message on bitrise-on-site chat.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 23, 2017, 11:11am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/14 "2017-03-23T11:11:36Z")

</div>

Actually I think only the `- fastlane:` step section would be enough - or just send the build’s URL to us in email/onsite chat @vscafuto

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 23, 2017, 11:21am UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/15 "2017-03-23T11:21:29Z")

</div>

Got the logs and config - the issue is with the fastlane step’s lane param, you have to quote your params if those include spaces, just like in Bash. Instead of:

```auto
- fastlane@2.3.7:
        inputs:
        - lane: ci_script app_name:$APP_DISPLAY_NAME bundle_identifier:$APP_BUNDLE_ID
            app_version:$APP_VERSION ...

```

Should be:

```auto
- fastlane@2.3.7:
        inputs:
        - lane: ci_script "app_name:$APP_DISPLAY_NAME" "bundle_identifier:$APP_BUNDLE_ID"
            "app_version:$APP_VERSION" ...

```

---

<div class="post-metadata">

**Author:** ![vscafuto](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/vscafuto/32/37_2.png) [@vscafuto](https://discuss.bitrise.io/u/vscafuto)\
**Post date:** [March 23, 2017, 3:09pm UTC](https://discuss.bitrise.io/t/fastlane-params-issue/220/16 "2017-03-23T15:09:12Z")

</div>

It works! Thank you 🙂
