{"action":"closed","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/1023","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/1023/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/1023/events","html_url":"https://github.com/fastlane/fastlane/issues/1023","id":123678119,"number":1023,"title":"Getting expand_path crash while running","user":{"login":"sborkin","id":14924551,"avatar_url":"https://avatars.githubusercontent.com/u/14924551?v=3","gravatar_id":"","url":"https://api.github.com/users/sborkin","html_url":"https://github.com/sborkin","followers_url":"https://api.github.com/users/sborkin/followers","following_url":"https://api.github.com/users/sborkin/following{/other_user}","gists_url":"https://api.github.com/users/sborkin/gists{/gist_id}","starred_url":"https://api.github.com/users/sborkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sborkin/subscriptions","organizations_url":"https://api.github.com/users/sborkin/orgs","repos_url":"https://api.github.com/users/sborkin/repos","events_url":"https://api.github.com/users/sborkin/events{/privacy}","received_events_url":"https://api.github.com/users/sborkin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/gym","name":"gym","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"samrobbins","id":986528,"avatar_url":"https://avatars.githubusercontent.com/u/986528?v=3","gravatar_id":"","url":"https://api.github.com/users/samrobbins","html_url":"https://github.com/samrobbins","followers_url":"https://api.github.com/users/samrobbins/followers","following_url":"https://api.github.com/users/samrobbins/following{/other_user}","gists_url":"https://api.github.com/users/samrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/samrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samrobbins/subscriptions","organizations_url":"https://api.github.com/users/samrobbins/orgs","repos_url":"https://api.github.com/users/samrobbins/repos","events_url":"https://api.github.com/users/samrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/samrobbins/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-23T15:28:30Z","updated_at":"2016-04-06T21:11:35Z","closed_at":"2016-04-06T21:11:35Z","body":"Hello,\r\n\r\nI trying to build my app using fastlane and circleci and getting a crash on expand_path inside the gym module.\r\n\r\nHere's my fastline file:\r\n\r\n```ruby\r\nfastlane_version \"1.48.0\"\r\n\r\nplatform :ios do\r\n    lane :circleci do\r\n\r\n    create_keychain(\r\n        name: \"###\",\r\n        default_keychain: true,\r\n        unlock: true,\r\n        timeout: 3600,\r\n        lock_when_sleeps: true,\r\n        password: \"####\"\r\n    )\r\n\r\n    import_certificate(\r\n        certificate_path: \"fastlane/certificates/ios_distribution.cer\",\r\n        keychain_name: \"###\"\r\n    )\r\n\r\n    import_certificate(\r\n        certificate_path: \"fastlane/certificates/distribution.p12\",\r\n        certificate_password: \"####\",\r\n        keychain_name: \"##\"\r\n    )\r\n\r\n    sigh(\r\n        app_identifier: \"com.applicaster.tvml\",\r\n        username: \"###\",\r\n        cert_id: \"###\",\r\n    )\r\n\r\n    ENV[\"PROFILE_UDID\"] = lane_context[SharedValues::SIGH_UDID]\r\n    gym(\r\n        use_legacy_build_api: true,\r\n        clean: true,\r\n        scheme: \"ApplicasterTVML\",\r\n        codesigning_identity: \"iPhone Distribution: Applicaster Ltd\",\r\n        destination: \"generic/platform=tvOS\",\r\n        output_directory: \"build/\",\r\n        output_name: \"ApplicasterTVML.ipa\"\r\n    )\r\n\r\n    ENV['FASTLANE_PASSWORD']='####'\r\n    pilot(\r\n        username: \"###\",\r\n        ipa: \"build/ApplicasterTVML.ipa\"\r\n    )\r\n\r\n    end\r\nend\r\n```\r\n\r\nThe output:\r\n\r\n```\r\n04:11:40: --- Step: Verifying required fastlane version ---\r\n\r\n04:11:40: fastlane version valid\r\n04:11:40: Driving the lane 'ios circleci' 🚀\r\n\r\n04:11:40: --- Step: create_keychain ---\r\n\r\n04:11:40: [SHELL COMMAND]: security list-keychains -d user\r\n\r\n04:11:40: --- Step: import_certificate ---\r\n\r\n04:11:40: --- Step: import_certificate ---\r\n\r\n04:11:40: --- Step: sigh ---\r\n\r\n+-------------------------------------+--------------------------+\r\n| Summary for sigh 1.2.1 |\r\n+-------------------------------------+--------------------------+\r\n| adhoc | false |\r\n| skip_install | false |\r\n| development | false |\r\n| force | false |\r\n| app_identifier | ### |\r\n| username | ### |\r\n| ignore_profiles_with_different_name | false |\r\n| cert_id | ### |\r\n| skip_fetch_profiles | false |\r\n| skip_certificate_verification | false |\r\n+-------------------------------------+--------------------------+\r\n\r\n04:11:40: Starting login with user '###'\r\n[04:11:42]: Successfully logged in\r\n[04:11:42]: Fetching profiles...\r\n[04:11:48]: Found 1 matching profile(s)\r\n[04:11:48]: Downloading provisioning profile...\r\n04:11:49: Successfully downloaded provisioning profile...\r\n04:11:49: Installing provisioning profile...\r\n/Users/distiller/TVML-DemoApp-tvOS/AppStore_com.applicaster.tvml.mobileprovision\r\n04:11:49: Setting Provisioning Profile type to 'app-store'\r\n\r\n04:11:49: --- Step: gym ---\r\n\r\n04:11:49: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816\r\n04:11:49: Installing provisioning profile...\r\n04:11:49: xcrun xcodebuild -list -project './ApplicasterTVML.xcodeproj'\r\n\r\n+---------------------------+----------------------------------------------------------------------------------+\r\n| Summary for gym 1.2.0 |\r\n+---------------------------+----------------------------------------------------------------------------------+\r\n| project | ./ApplicasterTVML.xcodeproj |\r\n| scheme | ApplicasterTVML |\r\n| clean | true |\r\n| output_directory | build/ |\r\n| output_name | ApplicasterTVML |\r\n| silent | false |\r\n| codesigning_identity | ### |\r\n| include_symbols | true |\r\n| include_bitcode | false |\r\n| use_legacy_build_api | true |\r\n| export_method | app-store |\r\n| buildlog_path | ~/Library/Logs/gym |\r\n| provisioning_profile_path | /Users/distiller/TVML-DemoApp-tvOS/AppStore_com.applicaster.tvml.mobileprovision |\r\n| destination | generic/platform=tvOS |\r\n+---------------------------+----------------------------------------------------------------------------------+\r\n\r\n[04:11:51]: xcrun xcodebuild -showBuildSettings -scheme 'ApplicasterTVML' -project './ApplicasterTVML.xcodeproj'\r\n[04:11:52]: $ set -o pipefail && xcodebuild -scheme 'ApplicasterTVML' -project './ApplicasterTVML.xcodeproj' -destination 'generic/platform=tvOS' -archivePath '/Users/distiller/Library/Developer/Xcode/Archives/2015-12-21/ApplicasterTVML 2015-12-21 04.11.51.xcarchive' clean archive CODE_SIGN_IDENTITY='####' | tee '/Users/distiller/Library/Logs/gym/ApplicasterTVML-ApplicasterTVML.log' | xcpretty\r\n[04:11:54]: > ▸ Cleaning ApplicasterTVML/ApplicasterTVML [Debug]\r\n[04:11:54]: > ▸ Check Dependencies\r\n[04:11:54]: > ▸ Clean Succeeded\r\n[04:11:54]: > ▸ Building ApplicasterTVML/ApplicasterTVML [Release]\r\n[04:11:54]: > ▸ Check Dependencies\r\n[04:11:54]: > ▸ Compiling AppDelegate.swift\r\n[04:11:57]: > ▸ Linking ApplicasterTVML\r\n[04:12:00]: > ▸ Processing Info.plist\r\n[04:12:00]: > ▸ Generating 'ApplicasterTVML.app.dSYM'\r\n[04:12:00]: > ▸ Touching ApplicasterTVML.app\r\n[04:12:04]: > ▸ Signing /Users/distiller/Library/Developer/Xcode/DerivedData/ApplicasterTVML-cdfikdgufuqgycdtamkrshhbqzvf/Build/Intermediates/ArchiveIntermediates/ApplicasterTVML/InstallationBuildProductsLocation/Applications/ApplicasterTVML.app\r\n[04:12:04]: > ▸ Touching ApplicasterTVML.app.dSYM\r\n[04:12:05]: > ▸ Archive Succeeded\r\n[04:12:05]: Successfully stored the archive. You can find it in the Xcode Organizer.\r\n[04:12:05]: Variable Dump:\r\n[04:12:05]: {:PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios circleci\", :ORIGINAL_DEFAULT_KEYCHAIN=>\"\\\"/Users/distiller/Library/Keychains/login.keychain\\\"\", :SIGH_PROFILE_PATH=>\"/Users/distiller/TVML-DemoApp-tvOS/AppStore_com.applicaster.tvml.mobileprovision\", :SIGH_PROFILE_PATHS=>[\"/Users/distiller/TVML-DemoApp-tvOS/AppStore_com.applicaster.tvml.mobileprovision\"], :SIGH_UDID=>\"###\", :SIGH_PROFILE_TYPE=>\"app-store\"}\r\n[04:12:05]: no implicit conversion of nil into String\r\n\r\n+------+-------------------------------------+-------------+\r\n| fastlane summary |\r\n+------+-------------------------------------+-------------+\r\n| Step | Action | Time (in s) |\r\n+------+-------------------------------------+-------------+\r\n| 1 | Verifying required fastlane version | 0 |\r\n| 2 | create_keychain | 0 |\r\n| 3 | import_certificate | 0 |\r\n| 4 | import_certificate | 0 |\r\n| 5 | sigh | 9 |\r\n| 6 | gym | 15 |\r\n+------+-------------------------------------+-------------+\r\n\r\n[04:12:05]: fastlane finished with errors\r\n\r\n😨 An error occured. Please enable crash reports using fastlane enable_crash_reporting.\r\n👍 This makes resolving issues much easier and helps improve fastlane.\r\n🔒 The reports will be stored securely on getsentry.com.\r\n✨ Once crash reporting is enabled, you get a clean output when something goes wrong.\r\n\r\n🙊 More information about privacy: https://github.com/KrauseFx/fastlane/releases/tag/1.33.3\r\n\r\n/Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/actions/gym.rb:22:in expand_path': no implicit conversion of nil into String (TypeError) from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/actions/gym.rb:22:inrun'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:142:in block (2 levels) in execute_action' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/actions/actions_helper.rb:37:inexecute_action'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:128:in block in execute_action' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:127:inchdir'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:127:in execute_action' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/fast_file.rb:149:inmethod_missing'\r\nfrom Fastfile:35:in block (2 levels) in parsing_binding' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/lane.rb:36:incall'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/lane.rb:36:in call' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:51:inblock in execute'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:46:in chdir' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/runner.rb:46:inexecute'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/lane_manager.rb:46:in cruise_lane' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/lib/fastlane/command_line_handler.rb:30:inhandle'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/bin/fastlane:37:in block (2 levels) in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:inrun'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:inrun!'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!' from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/bin/fastlane:155:inrun'\r\nfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.48.0/bin/fastlane:161:in <top (required)>' from /usr/bin/fastlane:23:inload'\r\n\r\nbundle exec fastlane ios circleci returned exit code 1\r\n\r\nfrom /usr/bin/fastlane:23:in `\r\n\r\n' Action failed: bundle exec fastlane ios circleci\r\n```"}}