Symptoms
- My build in Cloud Build fails with the following line:
231: /BUILD_PATH/.rvm/gems/ruby-2.4.2/gems/fastlane-2.182.0/fastlane/lib/fastlane/actions/update_project_provisioning.rb:73:in `block (2 levels) in run': [!] undefined method `[]' for nil:NilClass (NoMethodError) 232: ! build of 'default-ios' failed. ! xcode build failed.
Cause
The issue is seemingly due to a root Apple signing certificate expiring. Seems that Apple created a new one, which is why newly-generated provisioning profiles work. This should theoretically only happen again when that root certificate expires. The issue may be fixed by then, but we, at Unity Cloud Build, have no control over that outcome. Apple seems to be aware of the issue, or perhaps the updated certs were created automatically.
Resolution
There's likely an instability on the external tooling to sign iOS apps that started on April 12th, 2022 described here: https://github.com/fastlane/fastlane/issues/20164.
This instability is causing iOS builds to fail in Unity Cloud Build. If you encounter an error message similar to the below, until this instability is resolved, the workaround is to regenerate a new provisioning profile in the Apple Developer Portal and update your credentials with the newly generated provisioning profile on the Unity Cloud Build credentials page.
More Information
Discuss the issue in the Forums here.
Comments
1 comment
What about running a script to detect people affected by this and sending them an email?
Please sign in to leave a comment.