fastlane: undefined method `[]=' for nil:NilClass for sigh manage

New Issue Checklist

Issue Description

Error received when attempting to run sigh manage

Complete output when running fastlane, including the stack trace and command used
$sigh manage
INFO [2016-10-26 09:55:52.19]: Loading Provisioning profiles from ~/Library/MobileDevice/Provisioning Profiles/

Looking for related GitHub issues on fastlane/fastlane...
Search query: undefined method `[]=' for nil

URL: https://api.github.com/search/issues?q=undefined%20method%20%60[]='%20for%20nil+repo:fastlane/fastlane
➡️  undefined method `[]=' for nil:NilClass for sigh manage
   https://github.com/fastlane/fastlane/issues/6751 [open] 0 💬
   8 minutes ago

➡️  undefined method `<<' for nil:NilClass
   https://github.com/fastlane/fastlane/issues/6731 [closed] 5 💬
   11 hours ago

➡️  Pilot tool is crashing with undefined method 'strip' for nil:NilClass (NoMethodError)
   https://github.com/fastlane/fastlane/issues/3238 [open] 0 💬
   6 weeks ago

and 182 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60[]='%20for%20nil&type=Issues&utf8=✓
/Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/local_manage.rb:130:in `block in load_profiles': [!] undefined method `[]=' for nil:NilClass (NoMethodError)
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/local_manage.rb:128:in `each'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/local_manage.rb:128:in `load_profiles'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/local_manage.rb:45:in `list_profiles'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/local_manage.rb:9:in `start'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/commands_generator.rb:114:in `block (2 levels) in run'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane_core-0.53.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/commands_generator.rb:120:in `run'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/commands_generator.rb:11:in `start'
        from /Users/ffadmin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/bin/sigh:6:in `<top (required)>'
        from /Users/ffadmin/.rbenv/versions/2.3.1/bin/sigh:22:in `load'
        from /Users/ffadmin/.rbenv/versions/2.3.1/bin/sigh:22:in `<main>'

Environment

Please run fastlane env and copy the output below. This will help us help you 👍

Stack

Key Value
OS 10.12.1
Ruby 2.3.1
Bundler? false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 8.0
Git git version 2.8.4 (Apple Git-73)
Installation Source /Users/ffadmin/.rbenv/versions/2.3.1/bin/fastlane
Host Mac OS X 10.12.1 (16B2555)
Ruby Lib Dir /Users/ffadmin/.rbenv/versions/2.3.1/lib
OpenSSL Version OpenSSL 1.0.2j 26 Sep 2016

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
credentials_manager 0.16.2 ✅ Up-To-Date
spaceship 0.36.2 ✅ Up-To-Date
fastlane_core 0.53.0 ✅ Up-To-Date
deliver 1.14.5 ✅ Up-To-Date
snapshot 1.16.2 ✅ Up-To-Date
frameit 3.0.0 ✅ Up-To-Date
pem 1.3.2 ✅ Up-To-Date
cert 1.4.3 ✅ Up-To-Date
sigh 1.11.2 ✅ Up-To-Date
produce 1.2.1 ✅ Up-To-Date
gym 1.11.3 ✅ Up-To-Date
pilot 1.11.1 ✅ Up-To-Date
scan 0.13.1 ✅ Up-To-Date
supply 0.7.1 ✅ Up-To-Date
match 0.10.0 ✅ Up-To-Date
screengrab 0.5.5 ✅ Up-To-Date
fastlane 1.106.2 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded*

Loaded gems

Gem Version
did_you_mean 1.0.0
highline 1.7.8
commander 4.4.0
terminal-table 1.4.5
json 1.8.3
multipart-post 2.0.0
faraday 0.9.2
faraday_middleware 0.10.0
dotenv 2.1.1
net-ssh 3.2.0
net-sftp 2.1.2
plist 3.1.0
rubyzip 1.1.7
security 0.1.3
krausefx-shenzhen 0.14.10
slack-notifier 1.5.1
i18n 0.7.0
thread_safe 0.3.5
tzinfo 1.2.2
minitest 5.8.3
activesupport 4.2.7.1
colored 1.2
claide 1.0.1
xcodeproj 1.3.3
rouge 1.11.1
xcpretty 0.2.4
terminal-notifier 1.7.1
addressable 2.3.8
credentials_manager 0.16.2
multi_xml 0.5.5
unf_ext 0.0.7.2
unf 0.1.4
domain_name 0.5.20160826
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 1.6.8
xcode-install 2.0.8
word_wrap 1.0.0
multi_json 1.12.1
babosa 1.0.2
excon 0.54.0
gh_inspector 1.0.2
fastlane_core 0.53.0
bundler 1.13.6
mini_magick 4.5.1
xcpretty-travis-formatter 0.0.4
uber 0.0.15
representable 2.3.0
retriable 2.1.0
mime-types-data 3.2016.0521
mime-types 3.1
hurley 0.2
little-plugger 1.1.4
logging 2.1.0
jwt 1.5.6
memoist 0.15.0
os 0.9.6
signet 0.7.3
googleauth 0.5.1
httpclient 2.8.2.4
google-api-client 0.9.19
io-console 0.4.5

About this issue

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

Most upvoted comments

I’m using a Windows 10 host to connect using SSH to my Sierra host.

I’ve created public/private keys on Windows host and I can now successfully run admin$ security list-keychain “/Users/admin/Library/Keychains/login.keychain-db” “/Library/Keychains/System.keychain”

sigh manage also works successfully

Thanks for your help Martin @PlayDevelop

This post saved me: https://www.quernus.co.uk/2016/10/10/ssh-keychain-changes-macos-sierra/

  1. On my CI machine, added my id_rsa.pub to ~/.ssh/authorized_keys All good now.

I guess we can mark this as closed, may be useful if sigh could give a pointer.

I have also tried unlock_keychain with no result. Also tried manually unlock with security -v unlock-keychain with no result. When running match connected to CI machine over ssh it gives me

[13:13:05]: Cloning remote git repo… [13:13:07]: 🔓 Successfully decrypted certificates repo [13:13:07]: Verifying that the certificate and profile are still valid on the Dev Portal… [13:13:10]: Installing certificate… [13:13:11]: Error parsing provisioning profile at path ‘/var/folders/43/kfcrmxz90yl_74dt6tcly5kc0000gn/T/d20161110-8308-fo59i9/profiles/adhoc/<ad hoc provision..>’ [13:13:11]: 🔒 Successfully encrypted certificates repo