CodeMagic is unable to prepare a build machine. #2050
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceUpdate remote repository on github I have restarted the build both manually and automatically but the result remains the same! Expected resultsBuild machine should not take longer than usual to be prepared Actual resultsIt takes 10 minutes to prepare and throws an error Build id (optional)6505630aa01b03909d187990 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @casanteyApps, the error logs state that you have |
Beta Was this translation helpful? Give feedback.
-
Hi @casanteyApps, Please note that you should contact our team through the chat widget in the UI for a quicker response, as your team is on a paid plan. You might be trying to use the Encrypted Variables in a YAML file with a different team. The build will fail because each team has a unique encryption key. If you look at your codemagic.yaml file, you will notice that you are using an old way, now deprecated, of using encrypted environment variables in the YAML itself. You can see examples like this: The encryption tool is now replaced with an easier and less confusing option. Please go to the UI's Environment variables section, create a variable name, and put in its value. Mark the "Secure" checkbox. Create a group name and add it. It means you no longer need to use env vars in the yaml file. Here is a doc about it. P.S. To store binary files (keystores, provisioning profiles) as environment variables, you will need to use cat your_file_name.extension |base64 |pbcopy (for macOS )command line first which will copy the result to the clipboard and then go ahead and paste it in the values input and mark the "Secure" checkbox. On marking the secure checkbox, your file will be encrypted. |
Beta Was this translation helpful? Give feedback.
Hi @casanteyApps,
Please note that you should contact our team through the chat widget in the UI for a quicker response, as your team is on a paid plan.
You might be trying to use the Encrypted Variables in a YAML file with a different team. The build will fail because each team has a unique encryption key.
If you look at your codemagic.yaml file, you will notice that you are using an old way, now deprecated, of using encrypted environment variables in the YAML itself. You can see examples like this:
Encrypted(stringofvalueshere).
The encryption tool is now replaced with an easier and less confusing option. Please go to the UI's Environment variables section, create a variable name, and p…