Build fails for iOS

I just created a new iOS build and ran it. It failed with this error message (seems to be related to the Cloud Build service itself):

21573: ! build of ‘default-ios’ failed. compile failed
21574: /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.2/lib/bvr/project.rb:383:in `publish_build’: Could not find .release.yaml in archive path. (RuntimeError)

Is this a known issue ? is there any known workaround ?

That line will show up for failed iOS builds currently, but isn’t the actual source of the failure. The actual error will usually show up just above that line in the full log. If you can’t track it down, PM me a link to your project and I’ll help investigate.

Im having the same issue, heres my full log a just above that line. It

21891: [Unity] timestamp: assets/UI - BUILDER/Source Files/Icons/Icons@2x-assets/Media/MediaIcon_26.png
21892: [Unity] timestamp: assets/Scripts/Level Difficulty/Subscripts/Stench.cs
21893: [Unity] Opening scene 'Assets/Scenes/Game.unity'
21894: [Unity] Unloading 333 Unused Serialized files (Serialized files now loaded: 0)
21895: [Unity] The file 'MemoryStream' is corrupted! Remove it and launch unity again!
21896: [Unity] [Position out of bounds!]
21897: [Unity] UnityEditor.SceneManagement.EditorSceneManager:INTERNAL_CALL_OpenScene(String, OpenSceneMode, Scene&)
21898: [Unity] UnityEditor.CloudBuild.Builder:smile:isableAutoLightbake()
21899: [Unity] UnityEditor.CloudBuild.Builder:Build()
21900: [Unity] Aborting batchmode due to failure:
21901: [Unity] Fatal error! The file 'MemoryStream' is corrupted! Remove it and launch unity again!
21902: [Unity] [Position out of bounds!]
21903: [Unity] UnityEditor.CloudBuild.Builder:Build()
21904:  ! Unity player export failed!
21905: ! build of 'default-ios' failed. compile failed
21906: /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/lib/bvr/project.rb:383:in `publish_build': Could not find .release.yaml in archive path. (RuntimeError)
21907:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/lib/bvr/thor/tasks/project.rb:256:in `do_publish'
21908:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/lib/bvr/thor/tasks/project.rb:139:in `rescue in build'
21909:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/lib/bvr/thor/tasks/project.rb:103:in `build'
21910:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
21911:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
21912:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
21913:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
21914:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/runner.rb:36:in `method_missing'
21915:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/lib/bvr/thor/runner.rb:20:in `method_missing'
21916:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
21917:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
21918:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
21919:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
21920:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
21921:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/bvr-1.1.6/bin/bvr:6:in `<top (required)>'
21922:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/bvr:23:in `load'
21923:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/bvr:23:in `<main>'
21924:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
21925:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
21926: uninstalling iOS credentials for dmsotir/appleseeds - default-ios
21927: MAC verified OK
21928: Removing certificate...
21929: done.
21930: Build step 'Execute shell' marked build as failure
21931: postbuildstatus finished successfully.
21932: Deleting project workspace...
21933: Finished: FAILURE

I am also getting this error, but I don’t see any other errors right above, although it does say something about “no identity found”. Could that be the cause of it? And why would that error show up, when the settings say that the credentials are correct and valid?

I fixed the issue by changing the build player in settings. I was on 5.3.1f1(what i am using for development) and switched it to 5.3.2p4

Apparently cloud builds are not so happy about ‘weird’ letters in names. I have the Danish letter ‘ø’ in my last name for the profile that was being used when we got the “no identity found” error. Today we made a build using another profile with no ‘weird’ letters in it and the build succeeded. It might of course be that there was something else wrong with the credentials I had uploaded with my profile, but it seems to be related to the ‘ø’ character. Especially since that ‘ø’ shows up as ‘J\xC3\xB8’ when I look in the cloud build log.

1 Like

Our Cloud builds on iOS seem to fail for the same reason. Our certificates contain the letter “ö”. Since the logs do not report any errors, but the build fails at the end for no apparent reason. Local builds work just fine. Could someone please verify this issue?

Yes we currently have issues with non-alphanumeric characters in certificates - we are working on addressing it.