# Fastlane "undefined method \`downcase' for nil:NilClass" error during "Deploy to iTunes Connect" step

**URL:** <https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255>\
**Category:** Builds\
**Created:** [September 21, 2018, 2:34am UTC](https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255 "2018-09-21T02:34:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tracegmail](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tracegmail/32/1757_2.png) [@tracegmail](https://discuss.bitrise.io/u/tracegmail)\
**Post date:** [September 21, 2018, 2:34am UTC](https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255/1 "2018-09-21T02:34:13Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

During the ‘deploy-to-itunesconnect-deliver’ step, our Xamarin iOS build is hitting this error:  
/usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/fastlane\_core/lib/fastlane\_core/fastlane\_folder.rb:24:in `swift?': [!] undefined method ‘downcase’ for nil:NilClass (NoMethodError).

I did notice a similar issue here ([[!] undefined method `downcase' for nil:NilClass (NoMethodError) on 2.105.0 · Issue #13403 · fastlane/fastlane · GitHub](https://github.com/fastlane/fastlane/issues/13403)) that suggests the error repros with 2.105.0 of fastlane, but not in 2.014.0.

Log:  
±-----------------------------------------------------------------------------+

| (12) deploy-to-itunesconnect-deliver |  
±-----------------------------------------------------------------------------+  
| id: deploy-to-itunesconnect-deliver |  
| version: 2.14.1 |  
| collection: [GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib](https://github.com/bitrise-io/bitrise-steplib.git) |  
| toolkit: go |  
| time: 2018-09-20T16:09:49-07:00 |  
±-----------------------------------------------------------------------------+  
| |  
INFO[16:09:49] \* [OK] Step dependency (go) installed, available.  
Configs:

- IpaPath: /Users/vagrant/deploy/ActivityApp.iOS.ipa
- PkgPath:
- ItunesconUser: [REDACTED]
- AppPassword:
- AppID: [REDACTED]
- BundleID: [REDACTED]
- SubmitForReview: yes
- SkipMetadata: no
- SkipScreenshots: no
- SkipAppVersionUpdate: no
- TeamID: [REDACTED]
- TeamName:
- Platform: ios
- Options:
- GemfilePath: ./Gemfile
- FastlaneVersion: latest
- ITMSParameters: -t DAV  
Setup  
fastlane version defined: latest, installing…  
$ fastlane “-v”  
fastlane installation at path:  
/usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/bin/fastlane

* * *

fastlane 2.105.0  
Setup took 8.490155 seconds to complete  
Deploy  
…  
AppID parameter specified, BundleID will be ignored  
$ fastlane “deliver” “–username” “[REDACTED]” “–app” “1279352275” “–team\_id” “[REDACTED]” “–ipa” “/var/folders/90/5stft2v13fb\_m\_gv3c8x9nwc0000gn/T/ipaOrPkg644818726/tmp.ipa” “–force” “–submit\_for\_review” “–platform” “ios”  
[16:10:04]: Get started using a Gemfile for fastlane [Setup - fastlane docs](https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile)

…

/usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/fastlane\_core/lib/fastlane\_core/fastlane\_folder.rb:24:in `swift?': [!] undefined method `downcase’ for nil:NilClass (NoMethodError)  
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/fastlane\_core/lib/fastlane\_core/ui/fastlane\_runner.rb:71:in `run!' from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!’  
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/deliver/lib/deliver/commands\_generator.rb:182:in `run' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/deliver/lib/deliver/commands_generator.rb:17:in `start’  
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/fastlane/lib/fastlane/cli\_tools\_distributor.rb:100:in `take_off' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.105.0/bin/fastlane:20:in `\<top (required)\>’  
from /usr/local/bin/fastlane:23:in `load' from /usr/local/bin/fastlane:23:in `’  
Deploy failed, error: exit status 1

## Environment:

[Bitrise.io](http://Bitrise.io): Hybrid (Xamarin, Ionic, …) on macOS, includes Visual Studio for Mac, Stable channel  
Step: Deploy to iTunes Connect (v214.1)

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : Every time.
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : First hit the issue today (2018.09.20). The most recent previous time we ran this build configuration was on 2018.08.02 (it was successful then).

### Local reproduction

\_Can it be reproduced on your own Mac/PC? No, it repro’s only as part of the “Deploy to iTunes Connect” workflow step, after the app build has completed successfully.

## Build log

[https://app.bitrise.io/build/e737bd72fadd24e8](https://app.bitrise.io/build/e737bd72fadd24e8)

---

<div class="post-metadata">

**Author:** ![tracegmail](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tracegmail/32/1757_2.png) [@tracegmail](https://discuss.bitrise.io/u/tracegmail)\
**Post date:** [September 21, 2018, 4:17pm UTC](https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255/2 "2018-09-21T16:17:31Z")

</div>

**Update** : I was able to get past the ‘undefined method’ error and successfully complete the build by reverting the ‘deploy-to-itunesconnect-deliver’ step back to version 2.14.0 (from 2.14.1).

---

<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:** [September 24, 2018, 1:03pm UTC](https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255/3 "2018-09-24T13:03:56Z")

</div>

Hi @tracegmail thanks for letting us know!

Unfortunately there seems to be a Delivery issue with the latest Fastlane version, so for some of these errors downgrading is a suitable workaround.

---

<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:** [October 24, 2018, 1:04pm UTC](https://discuss.bitrise.io/t/fastlane-undefined-method-downcase-for-nil-nilclass-error-during-deploy-to-itunes-connect-step/6255/4 "2018-10-24T13:04:00Z")

</div>

Closed on October 24, 2018, 1:04pm UTC

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