fastlane: can't modify frozen String: "true" for enterprise builds
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
So my company makes Enterprise, App Store and Ad-Hoc builds and recently all of our enterprise builds stopped working. I’m using the latest version of fastlane(2.142.0).
Command executed
I use the match command in a ruby script:
other_action.match( type: type, git_url: myGitUrl, git_branch: fi_name, app_identifier: [bundleID], team_id: team, keychain_name: ENV['KEYCHAIN_NAME'], keychain_password: ENV['KEYCHAIN_PASSWORD'], username: username, force_for_new_devices: true, verbose: true )
Complete output when running fastlane, including the stack trace and command used
[+----------------------------+--------------------------------------------------------------------------------------------------------------------Summary for match 2.142.0 | type | enterprise | git_url | myGitURL | git_branch | myGitBranch | app_identifier | myAppIdentifier |team_id | myteamid | keychain_name | mykeychainname | keychain_password | mypassword | username | myusername | force_for_new_devices | true | verbose | true | readonly | false | generate_apple_certs | true | skip_provisioning_profiles | false | storage_mode | git | shallow_clone | false | clone_branch_directly | false | force | false | skip_confirmation | false | skip_docs | false | platform | iosINFO [2020-02-19 21:13:57.68]: Cloning remote git repo… INFO [2020-02-19 21:13:57.68]: If cloning the repo takes too long, you can use the
clone_branch_directlyoption in match. INFO [2020-02-19 21:13:57.68]: $ git clone mybranch INFO [2020-02-19 21:13:57.72]: ▸ Cloning into folder INFO [2020-02-19 21:13:58.29]: ▸ remote: Azure Repos
INFO [2020-02-19 21:13:58.42]: ▸ remote: Found 988 objects to send. (133 ms)
INFO [2020-02-19 21:13:58.65]: ▸ Receiving objects: 100% (988/988), 1.19 MiB | 5.47 MiB/s, done. INFO [2020-02-19 21:13:58.65]: ▸ Resolving deltas: 100% (153/153), done. INFO [2020-02-19 21:13:58.68]: $ git --no-pager branch --list origin/enterprise --no-color -r INFO [2020-02-19 21:13:58.69]: Checking out branch enterprise… INFO [2020-02-19 21:13:58.69]: $ git checkout --orphan enterprise INFO [2020-02-19 21:13:58.71]: ▸ Switched to a new branch ‘enterprise’ INFO [2020-02-19 21:13:58.71]: $ git reset --hard INFO [2020-02-19 21:13:58.72]: 🔓 Successfully decrypted certificates repo INFO [2020-02-19 21:13:58.72]: Verifying that the certificate and profile are still valid on the Dev Portal… /usr/local/lib/ruby/gems/2.7.0/gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use&blockinstead /usr/local/lib/ruby/gems/2.7.0/gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use&blockinstead Reading keychain entry, because either user or password were empty WARN [2020-02-19 21:13:59.54]: Couldn’t find a valid code signing identity for enterprise… creating one for you now±---------------------±------------------------------------------------------+ | Summary for cert 2.142.0 | ±---------------------±------------------------------------------------------+ | development | false | | generate_apple_certs | true | | force | true | | username | myusername | | team_id | myteamid | | keychain_path | /Users/runner/Library/Keychains/iOS-deathstar-9073-db | | keychain_password | password | | platform | ios | ±---------------------±------------------------------------------------------+
INFO [2020-02-19 21:13:59.55]: Starting login with user myusername Reading keychain entry, because either user or password were empty INFO [2020-02-19 21:14:00.77]: Successfully logged in INFO [2020-02-19 21:14:01.17]: $ security import /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/d20200219-19584-x8pinj/certs/enterprise/BCFKZWR2RL.p12 -k ‘/Users/runner/Library/Keychains/iOS-deathstar-9073-db’ -P ‘’ -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild INFO [2020-02-19 21:14:01.26]: ▸ 1 key imported. INFO [2020-02-19 21:14:01.27]: Setting key partition list… (this can take a minute if there are a lot of keys installed) INFO [2020-02-19 21:14:01.27]: $ security set-key-partition-list -S apple-tool:,apple: -s -k *** /Users/runner/Library/Keychains/iOS-deathstar-9073-db 1> /dev/null INFO [2020-02-19 21:14:01.32]: $ security import /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/d20200219-19584-x8pinj/certs/enterprise/BCFKZWR2RL.cer -k ‘/Users/runner/Library/Keychains/iOS-deathstar-9073-db’ -P ‘’ -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild INFO [2020-02-19 21:14:01.38]: ▸ 1 certificate imported. INFO [2020-02-19 21:14:01.39]: Setting key partition list… (this can take a minute if there are a lot of keys installed) INFO [2020-02-19 21:14:01.39]: $ security set-key-partition-list -S apple-tool:,apple: -s -k *** /Users/runner/Library/Keychains/iOS-deathstar-9073-db 1> /dev/null INFO [2020-02-19 21:14:01.45]: Successfully generated BCFKZWR2RL which was imported to the local machine. INFO [2020-02-19 21:14:01.45]: $ security list-keychains -d user INFO [2020-02-19 21:14:01.47]: ▸ “/Users/runner/Library/Keychains/iOS-deathstar-9073-db” INFO [2020-02-19 21:14:01.47]: $ security find-certificate -c ‘Apple Worldwide Developer Relations Certification Authority’ /Users/runner/Library/Keychains/iOS-deathstar-9073-db security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. INFO [2020-02-19 21:14:01.50]: $ security list-keychains -d user INFO [2020-02-19 21:14:01.51]: ▸ “/Users/runner/Library/Keychains/iOS-deathstar-9073-db” DEBUG [2020-02-19 21:14:01.51]: Installing WWDR Cert: curl -f -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/AppleWWDRCA20200219-19584-12to760 https://developer.apple.com/certificationauthority/AppleWWDRCA.cer && security import /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/AppleWWDRCA20200219-19584-12to760 -k /Users/runner/Library/Keychains/iOS-deathstar-9073-db INFO [2020-02-19 21:14:01.66]: ▸ 1 certificate imported. INFO [2020-02-19 21:14:01.66]: ▸ 100 1062 100 1062 0 0 9925 0 --:–:-- --:–:-- --:–:-- 9925 INFO [2020-02-19 21:14:01.98]: Verifying the certificate is properly installed locally… INFO [2020-02-19 21:14:01.98]: Successfully installed certificate BCFKZWR2RL
±------------------------------------±-----------------------------------+ | Summary for sigh 2.142.0 | ±------------------------------------±-----------------------------------+ | app_identifier | my app identifier | | developer_id | false | | development | false | | skip_install | false | | skip_fetch_profiles | false | | skip_certificate_verification | false | | readonly | false | ±------------------------------------±-----------------------------------+
INFO [2020-02-19 21:14:02.06]: Starting login with user username Reading keychain entry, because either user or password were empty INFO [2020-02-19 21:14:02.60]: Successfully logged in INFO [2020-02-19 21:14:02.60]: Fetching profiles… INFO [2020-02-19 21:14:02.80]: Verifying certificates… WARN [2020-02-19 21:14:02.80]: No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you INFO [2020-02-19 21:14:02.95]: $ security list-keychains -d user INFO [2020-02-19 21:14:02.96]: ▸ “/Users/runner/Library/Keychains/iOS-deathstar-9073-db” INFO [2020-02-19 21:14:02.96]: $ security find-certificate -c ‘Apple Worldwide Developer Relations Certification Authority’ /Users/runner/Library/Keychains/iOS-deathstar-9073-db INFO [2020-02-19 21:14:02.99]: ▸ keychain: “/Users/runner/Library/Keychains/iOS-deathstar-9073-db” INFO [2020-02-19 21:14:02.99]: ▸ version: 512 INFO [2020-02-19 21:14:02.99]: ▸ class: 0x80001000 INFO [2020-02-19 21:14:02.99]: ▸ attributes: INFO [2020-02-19 21:14:02.99]: ▸ “alis”<blob>=“Apple Worldwide Developer Relations Certification Authority” INFO [2020-02-19 21:14:02.99]: ▸ “cenc”<uint32>=0x00000003 INFO [2020-02-19 21:14:02.99]: ▸ “ctyp”<uint32>=0x00000001 INFO [2020-02-19 21:14:02.99]: ▸ “hpky”<blob>=0x88271709A9B618608BECEBBAF64759C55254A3B7 “\210’\027\011\251\266\030
\213\354\353\272\366GY\305RT\243\267" INFO [2020-02-19 21:14:02.99]: ▸ "issu"<blob>=0x3062310B300906035504061302555331133011060355040A130A4150504C4520494E432E31263024060355040B131D4150504C452043455254494649434154494F4E20415554484F52495459311630140603550403130D4150504C4520524F4F54204341 "0b1\0130\011\006\003U\004\006\023\002US1\0230\021\006\003U\004\012\023\012APPLE INC.1&0$\006\003U\004\013\023\035APPLE CERTIFICATION AUTHORITY1\0260\024\006\003U\004\003\023\015APPLE ROOT CA" INFO [2020-02-19 21:14:02.99]: ▸ "labl"<blob>="Apple Worldwide Developer Relations Certification Authority" INFO [2020-02-19 21:14:02.99]: ▸ "skid"<blob>=0x88271709A9B618608BECEBBAF64759C55254A3B7 "\210'\027\011\251\266\030\213\354\353\272\366GY\305RT\243\267” INFO [2020-02-19 21:14:02.99]: ▸ “snbr”<blob>=0x01DEBCC4396DA010 “\001\336\274\3049m\240\020” INFO [2020-02-19 21:14:02.99]: ▸ “subj”<blob>=0x308196310B300906035504061302555331133011060355040A0C0A4170706C6520496E632E312C302A060355040B0C234170706C6520576F726C647769646520446576656C6F7065722052656C6174696F6E733144304206035504030C3B4170706C6520576F726C647769646520446576656C6F7065722052656C6174696F6E732043657274696669636174696F6E20417574686F72697479 “0\201\2261\0130\011\006\003U\004\006\023\002US1\0230\021\006\003U\004\012\014\012Apple Inc.1,0*\006\003U\004\013\014#Apple Worldwide Developer Relations1D0B\006\003U\004\003\014;Apple Worldwide Developer Relations Certification Authority” WARN [2020-02-19 21:14:03.26]: Creating new provisioning profile for ‘com.malauzai.entios1’ with name ‘match InHouse com.malauzai.entios1’ for ‘ios’ platform INFO [2020-02-19 21:14:03.27]: ----------------------------- INFO [2020-02-19 21:14:03.27]: — Step: delete_keychain — INFO [2020-02-19 21:14:03.27]: ----------------------------- WARN [2020-02-19 21:14:03.31]: Lane Context: INFO [2020-02-19 21:14:03.31]: {:PLATFORM_NAME=>nil, :LANE_NAME=>“build_application”, :ORIGINAL_DEFAULT_KEYCHAIN=>“"/Users/runner/Library/Keychains/login.keychain-db"”} ERROR [2020-02-19 21:14:03.31]: can’t modify frozen String: “true” INFO [2020-02-19 21:14:03.31]: Successfully generated documentation at path ‘/Users/runner/runners/2.164.8/work/1/s/ios/fastlane/README.md’±-----±----------------------±------------+ | fastlane summary | ±-----±----------------------±------------+ | Step | Action | Time (in s) | ±-----±----------------------±------------+ | 1 | import_from_git | 4 | | 2 | xcode_select | 0 | | 3 | create_keychain | 0 | | 💥 | get_provisioning_info | 7 | | 5 | delete_keychain | 0 | ±-----±----------------------±------------+
DEBUG [2020-02-19 21:14:03.43]: All plugins are up to date ERROR [2020-02-19 21:14:03.43]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane… Search query: can’t modify frozen String: “true”
URL: https://api.github.com/search/issues?q=can’t modify frozen String%3A “true”+repo:fastlane/fastlane ➡️ can’t modify frozen String https://github.com/fastlane/fastlane/issues/15415 [closed] 3 💬 30 Nov 2019
➡️ CI tests are currently failing because of faraday 0.16.x update https://github.com/fastlane/fastlane/issues/15398 [closed] 9 💬 6 weeks ago
➡️ “Can’t modify frozen String” error when setting output_name in Gymfile via ENV[…] https://github.com/fastlane/fastlane/issues/8548 [closed] 6 💬 18 Jun 2017
🔗 You can ⌘ + double-click on links to open them directly in your browser. DEBUG [2020-02-19 21:14:03.77]: All plugins are up to date bundler: failed to load command: fastlane (/usr/local/lib/ruby/gems/2.7.0/bin/fastlane) FrozenError: [!] can’t modify frozen String: “true” /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:298:in
gsub!' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:298:inblock in inspect_value’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:296:inmap' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:296:ininspect_value’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:286:ininspect' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:305:into_s’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:262:increate!' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/sigh/lib/sigh/runner.rb:135:increate_profile!’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/sigh/lib/sigh/runner.rb:40:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/sigh/lib/sigh/manager.rb:8:instart’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/generator.rb:92:ingenerate_provisioning_profile' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:250:infetch_provisioning_profile’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:103:inblock (2 levels) in run' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:102:inloop’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:102:inblock in run' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:101:ineach’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/match/lib/match/runner.rb:101:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/actions/sync_code_signing.rb:13:inrun’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:261:inblock (2 levels) in execute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:inexecute_action’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:253:inblock in execute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:inchdir’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:157:intrigger_action_by_name’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/other_action.rb:23:inmethod_missing' /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/fl_clone20200219-19584-1jktjuh/fastlane/actions/get_provisioning_info.rb:51:inrun’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:261:inblock (2 levels) in execute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:inexecute_action’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:253:inblock in execute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:inchdir’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:157:intrigger_action_by_name’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing' ../../../../../../../../../var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/fl_clone20200219-19584-1jktjuh/fastlane/Fastfile:42:inblock in parsing_binding’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/lane.rb:33:incall' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:49:inblock in execute’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:45:inchdir' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:45:inexecute’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/lane_manager.rb:56:incruise_lane' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/command_line_handler.rb:36:inhandle’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run' /usr/local/lib/ruby/gems/2.7.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall’ /usr/local/lib/ruby/gems/2.7.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!' /usr/local/lib/ruby/gems/2.7.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:349:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:41:instart’ /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:intake_off' /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/bin/fastlane:23:in<top (required)>’ /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:23:inload' /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:23:in<top (required)>’ start of stderr: end of stderr]
Environment
[$ fastlane env [21:46:02]: ▸ /usr/local/lib/ruby/gems/2.7.0/gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead [21:46:02]: ▸ [21:46:02]: Generating fastlane environment output, this might take a few seconds... [21:46:03]: ▸]✅ fastlane environment ✅
[21:46:03]: ▸ ### Stack [21:46:03]: ▸ | Key | Value | [21:46:03]: ▸ | --------------------------- | ------------------------------------------- | [21:46:03]: ▸ | OS | 10.15.3 | [21:46:03]: ▸ | Ruby | 2.7.0 | [21:46:03]: ▸ | Bundler? | true | [21:46:03]: ▸ | Git | git version 2.25.0 | [21:46:03]: ▸ | Installation Source | /usr/local/lib/ruby/gems/2.7.0/bin/fastlane | [21:46:03]: ▸ | Host | Mac OS X 10.15.3 (19D76) | [21:46:03]: ▸ | Ruby Lib Dir | /usr/local/Cellar/ruby/2.7.0/lib | [21:46:03]: ▸ | OpenSSL Version | OpenSSL 1.1.1d 10 Sep 2019 | [21:46:03]: ▸ | Is contained | false | [21:46:03]: ▸ | Is homebrew | false | [21:46:03]: ▸ | Is installed via Fabric.app | false | [21:46:03]: ▸ | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | [21:46:03]: ▸ | Xcode Version | 11.3.1 | [21:46:03]: ▸ ### System Locale [21:46:03]: ▸ | Variable | Value | | [21:46:03]: ▸ | -------- | ----------- | - | [21:46:03]: ▸ | LANG | en_US.UTF-8 | ✅ | [21:46:03]: ▸ | LC_ALL | en_US.UTF-8 | ✅ | [21:46:03]: ▸ | LANGUAGE | | | [21:46:03]: ▸ ### fastlane files: [21:46:03]: ▸[21:46:03]: ▸ **No Appfile found** [21:46:03]: ▸ ### fastlane gems [21:46:03]: ▸ | Gem | Version | Update-Status | [21:46:03]: ▸ | -------- | ------- | ------------- | [21:46:03]: ▸ | fastlane | 2.142.0 | ✅ Up-To-Date | [21:46:03]: ▸ ### Loaded fastlane plugins: [21:46:03]: ▸ | Plugin | Version | Update-Status | [21:46:03]: ▸ | ----------------------- | ------- | ------------- | [21:46:03]: ▸ | fastlane-plugin-appicon | 0.14.1 | ✅ Up-To-Date | [21:46:03]: ▸`./Fastfile`
[21:46:03]: ▸ ```ruby [21:46:03]: ▸ git_url = UI.interactive? ? File.expand_path('~/fastlane') : myGitURL [21:46:03]: ▸ import_from_git(url: git_url, [21:46:03]: ▸ branch: ENV['FASTLANE_BRANCH'] || 'staging', [21:46:03]: ▸ path: 'Fastfile') [21:46:03]: ▸ ``` [21:46:03]: ▸[21:46:03]: ▸ *generated on:* **2020-02-19** [21:46:03]: ▸Loaded gems
[21:46:03]: ▸ | Gem | Version | [21:46:03]: ▸ | ------------------------- | ------------ | [21:46:03]: ▸ | did_you_mean | 1.4.0 | [21:46:03]: ▸ | CFPropertyList | 3.0.2 | [21:46:03]: ▸ | concurrent-ruby | 1.1.5 | [21:46:03]: ▸ | i18n | 0.9.5 | [21:46:03]: ▸ | minitest | 5.11.3 | [21:46:03]: ▸ | thread_safe | 0.3.6 | [21:46:03]: ▸ | tzinfo | 1.2.5 | [21:46:03]: ▸ | activesupport | 4.2.11.1 | [21:46:03]: ▸ | public_suffix | 2.0.5 | [21:46:03]: ▸ | addressable | 2.7.0 | [21:46:03]: ▸ | atomos | 0.1.3 | [21:46:03]: ▸ | babosa | 1.0.3 | [21:46:03]: ▸ | bundler | 2.1.4 | [21:46:03]: ▸ | claide | 1.0.3 | [21:46:03]: ▸ | fuzzy_match | 2.0.4 | [21:46:03]: ▸ | nap | 1.1.0 | [21:46:03]: ▸ | cocoapods-core | 1.7.5 | [21:46:03]: ▸ | cocoapods-deintegrate | 1.0.4 | [21:46:03]: ▸ | cocoapods-downloader | 1.2.2 | [21:46:03]: ▸ | cocoapods-plugins | 1.0.0 | [21:46:03]: ▸ | cocoapods-search | 1.0.0 | [21:46:03]: ▸ | cocoapods-stats | 1.1.0 | [21:46:03]: ▸ | netrc | 0.11.0 | [21:46:03]: ▸ | cocoapods-trunk | 1.4.0 | [21:46:03]: ▸ | cocoapods-try | 1.1.0 | [21:46:03]: ▸ | colored2 | 3.1.2 | [21:46:03]: ▸ | escape | 0.0.4 | [21:46:03]: ▸ | fourflusher | 2.3.1 | [21:46:03]: ▸ | gh_inspector | 1.1.3 | [21:46:03]: ▸ | molinillo | 0.6.6 | [21:46:03]: ▸ | ruby-macho | 1.4.0 | [21:46:03]: ▸ | nanaimo | 0.2.6 | [21:46:03]: ▸ | xcodeproj | 1.15.0 | [21:46:03]: ▸ | cocoapods | 1.7.5 | [21:46:03]: ▸ | colored | 1.2 | [21:46:03]: ▸ | highline | 1.7.10 | [21:46:03]: ▸ | commander-fastlane | 4.4.6 | [21:46:03]: ▸ | declarative | 0.0.10 | [21:46:03]: ▸ | declarative-option | 0.1.0 | [21:46:03]: ▸ | digest-crc | 0.4.1 | [21:46:03]: ▸ | unf_ext | 0.0.7.6 | [21:46:03]: ▸ | unf | 0.1.4 | [21:46:03]: ▸ | domain_name | 0.5.20190701 | [21:46:03]: ▸ | dotenv | 2.7.5 | [21:46:03]: ▸ | emoji_regex | 1.0.1 | [21:46:03]: ▸ | ffi | 1.11.1 | [21:46:03]: ▸ | ethon | 0.12.0 | [21:46:03]: ▸ | excon | 0.72.0 | [21:46:03]: ▸ | multipart-post | 2.0.0 | [21:46:03]: ▸ | faraday | 0.17.3 | [21:46:03]: ▸ | http-cookie | 1.0.3 | [21:46:03]: ▸ | faraday-cookie_jar | 0.0.6 | [21:46:03]: ▸ | faraday_middleware | 0.13.1 | [21:46:03]: ▸ | fastimage | 2.1.7 | [21:46:03]: ▸ | jwt | 2.1.0 | [21:46:03]: ▸ | memoist | 0.16.2 | [21:46:03]: ▸ | multi_json | 1.14.1 | [21:46:03]: ▸ | os | 1.0.1 | [21:46:03]: ▸ | signet | 0.12.0 | [21:46:03]: ▸ | googleauth | 0.10.0 | [21:46:03]: ▸ | httpclient | 2.8.3 | [21:46:03]: ▸ | mini_mime | 1.0.2 | [21:46:03]: ▸ | uber | 0.1.0 | [21:46:03]: ▸ | representable | 3.0.4 | [21:46:03]: ▸ | retriable | 3.1.2 | [21:46:03]: ▸ | google-api-client | 0.36.4 | [21:46:03]: ▸ | google-cloud-env | 1.3.0 | [21:46:03]: ▸ | google-cloud-errors | 1.0.0 | [21:46:03]: ▸ | google-cloud-core | 1.5.0 | [21:46:03]: ▸ | google-cloud-storage | 1.25.1 | [21:46:03]: ▸ | json | 2.3.0 | [21:46:03]: ▸ | mini_magick | 4.10.1 | [21:46:03]: ▸ | multi_xml | 0.6.0 | [21:46:03]: ▸ | plist | 3.5.0 | [21:46:03]: ▸ | rubyzip | 1.3.0 | [21:46:03]: ▸ | security | 0.1.3 | [21:46:03]: ▸ | naturally | 2.2.0 | [21:46:03]: ▸ | simctl | 1.6.8 | [21:46:03]: ▸ | slack-notifier | 2.3.2 | [21:46:03]: ▸ | terminal-notifier | 2.0.0 | [21:46:03]: ▸ | unicode-display_width | 1.6.1 | [21:46:03]: ▸ | terminal-table | 1.8.0 | [21:46:03]: ▸ | tty-screen | 0.7.1 | [21:46:03]: ▸ | tty-cursor | 0.7.1 | [21:46:03]: ▸ | tty-spinner | 0.9.3 | [21:46:03]: ▸ | word_wrap | 1.0.0 | [21:46:03]: ▸ | rouge | 2.0.7 | [21:46:03]: ▸ | xcpretty | 0.3.0 | [21:46:03]: ▸ | xcpretty-travis-formatter | 1.0.0 | [21:46:03]: ▸ | fastlane-plugin-appicon | 0.14.1 | [21:46:03]: ▸ | mime-types-data | 3.2019.1009 | [21:46:03]: ▸ | mime-types | 3.3.1 | [21:46:03]: ▸ | httparty | 0.17.0 | [21:46:03]: ▸ | gitlab | 4.12.0 | [21:46:03]: ▸ | mini_portile2 | 2.4.0 | [21:46:03]: ▸ | nokogiri | 1.10.4 | [21:46:03]: ▸ | ox | 2.11.0 | [21:46:03]: ▸ | roo | 2.8.2 | [21:46:03]: ▸ | typhoeus | 1.3.1 | [21:46:03]: ▸
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 42 (3 by maintainers)
Commits related to this issue
- fix error: can't modify frozen String https://github.com/fastlane/fastlane/issues/16055 — committed to bill2004158/fastlane by bill2004158 4 years ago
Yes @MikeBenton2 . Downgrading to 2.6.5 works.
More details on the root cause of this issue:
Ruby 2.7 has been released recently with the FrozenError feature. Also, the methods such as to_s started to return a frozen String. Hence the calls to Fastlane SDKs, which uses to_s internally, are failing with the error message
can't modify frozen Stringerror. Please find below the links that has more details on this issue.https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ https://sourcediving.com/less-known-changes-in-ruby-2-7-8d5db660370f
I got the error today locally and the only thing I changed on my computer was updating Ruby to 2.7.0. I tried the same thing in Ruby 2.6.5 and it works. Tried with the latest version of Fastlane (2.142.0).
TLDR: I does not work (at least for me) with Ruby 2.7.0.
Updating my build pipeline to use macOS-10.15 worked for me.
In our case the problem was solved by making a change in
spaceship/lib/spaceship/portal/provisioning_profile.rbline 262. Before:After:
We have removed
to_snear the end of the line.If you think that’s a viable solution I can submit a PR.
🚫 fastlane environment 🚫
Stack
System Locale
fastlane files:
`./fastlane/Fastfile`
`./fastlane/Appfile`
fastlane gems
Loaded fastlane plugins:
Loaded gems
generated on: 2020-02-25
edit file: /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.142.0/spaceship/lib/spaceship/base.rb:298
line 298 change from
v.gsub!("\n", "\n\t") # to align nested elementsto:v = v.gsub("\n", "\n\t") # to align nested elementsthen it works for me.
downgrade ruby 2.7.0 (macOS 10.15 default version) to 2.6.5 solves the error.
This fixed the problem for us, from our
Fastfile:@ajklotz I was also still seeing this issue today when running on
macOS-10.14, as it appeared that Ruby2.7.0was still the default on that agent specification. I think that the solution @defaultbr provided above is a good option if you can’t move to usingmacOS-10.15.Thank you @defaultbr. I was going down that road last night a bit, but after taking another look at it this AM, it appears that the
macOS-10.15agent specification is setup to useRuby 2.6.5by default withFastlane 2.142.0(the latest version), and this has fixed all of my problems 😃.Summarized output from agent using
ruby -v&fastlane env:I don’t see this updated in the MS docs ATM, but at least it works ¯_(ツ)_/¯.
@ballenstein yes, i had the same problem, i solved it using this commands in the latest agent:
add the task to use ruby 2.6.5 (Fixed version, so the version spec=2.6.5) and tick the “Add to Path”
add bash script with the following lines:
can you try and say if it works for you too?