I am trying to build Addressables with UCB. I have Build-Addressable enabled and it works well with groups set on using Remote-Build-Path and Remote-Load-Path. However, if I set the path to Local-Load-Path and Local-Build-Path (aka. StreamingAsset folder), I will get this error.
[Unity] EXCEPTION: IOException: /BUILD_PATH/wiseyestudio.hexa-hysteria.ios-charter-verlsk149yp/Assets/StreamingAssets/Addressables/iOS/specialsongs_assets_specialsong/credits_4108de5ba7319e6ef33b6997d57c8813.bundle already exists
I have attempted to build Addressables locally on my own PC and it works, as the content are correctly built to StreamingAsset Folder.
The Unity version I have set on UCB is 2020.3 latest. However, I don’t think the version matters as it also fails on 2019.4 previously. I have checked the groups, and I can confirm there is no duplicate assets.
Also, very curiously, if I do not trigger Addressable-Build via UCB, but trigger it in PreBuild Script, it also works fine. However, since I am also using CCD, I want to integrate with UCB.
Thank you!
edit: I have changed the path from Local to remote. However, the error remains. I effectively can not use UCB at this moment…
edit 2: the following logs were reported in UCB:
1885: [Unity] Start importing Assets/StreamingAssets/Addressables/iOS/memoryitem-000-beforejourney_assets_memoryitem/000-beforejourney using Guid(1e27395d5df274206b480c5270b35e23) Importer(-1,00000000000000000000000000000000) -> (artifact id: '34a95d92eee0cbd74be932d79b44b35c') in 0.002085 seconds
1886: [Unity] Start importing Assets/AddressableAssetsData/iOS/addressables_content_state.bin using Guid(e18445f32350047f69eaa72c96963eb6) Importer(-1,00000000000000000000000000000000)
1887: [Unity] -> (artifact id: 'fe56780be29c101b69ec7a0d1b9abfe8') in 12.652682 seconds
1888: [Unity] Start importing Assets/StreamingAssets/Addressables/iOS/specialsongs_assets_specialsong/credits_4108de5ba7319e6ef33b6997d57c8813.bundle using Guid(7789e4760de3546e793691e17b5ec25d) Importer(-1,00000000000000000000000000000000)
1889: Aborting batchmode due to failure:
1890: executeMethod method UnityEditor.CloudBuild.Builder.Build threw exception.
1891: [Unity] -> (artifact id: '8cba13faf93eefa78628ecb69968f0f2') in 0.990817 seconds
This is weird because the path has been set to Remote-Build-Path, so there should not be any file in /StreamingAsset/ folder whatsoever…