fastlane: `supported_platforms': [!] undefined method `split' for nil:NilClass (NoMethodError)

Issue Description

Issue occurs when no run target is set for scheme(only using the scheme for running tests). Workaround was to set a run target(test host in my case).

Complete output when running fastlane, including the stack trace and command used
scan
fastlane_core-0.57.0/lib/fastlane_core/project.rb:188:in `supported_platforms': [!] undefined method `split' for nil:NilClass (NoMethodError)
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/fastlane_core-0.57.0/lib/fastlane_core/project.rb:184:in `ios?'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan/detect_values.rb:28:in `set_additional_default_values'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan.rb:27:in `config='
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan/manager.rb:4:in `work'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan/commands_generator.rb:41:in `block (2 levels) in run'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/fastlane_core-0.57.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan/commands_generator.rb:60:in `run'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/lib/scan/commands_generator.rb:14:in `start'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/gems/scan-0.14.2/bin/scan:6:in `<top (required)>'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/bin/scan:23:in `load'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/bin/scan:23:in `<main>'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
	from /Users/belmoj/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

Environment

I have scan and gym installed as separate gems, without ‘fastlane’ installed.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 43 (13 by maintainers)

Commits related to this issue

Most upvoted comments

doing a PR now 😉

Sure. I’ll try to do it now.

This has been fixed and released in fastlane_core 0.57.1

Run gem update fastlane_core to get the fix! We’ll do gym and scan releases with this change next week 👍

which version of xcode do you use? seems to be SUPPORTED_PLATFORMS is not set in the project.

can you run

xcodebuild -showBuildSettings -scheme app -project path/to/your/app.xcodeproj

and check if “supported_platforms” is set. i think this is intrudoced by this PR: https://github.com/fastlane/fastlane/pull/6925

@0xced can you help here?