Search Unity

Need to troubleshoot - build failed - failed. undefined method `[]' for nil:NilClass

Discussion in 'Unity Cloud Build' started by studentutu, Aug 30, 2019.

  1. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    66
    Please, Help!
    Unity CLoud build with Unity 2019.1.14f1, for IOS
    Running Prebuild steps
    In quiet period, build will start momentarily...
    ...
    GIT: Checkout operation complete.
    BVR: SCM Checkout completed in 39 seconds.
    Calculated Workspace Size: 18.80 MiB
    PATH | SIZE
    ------------|----------
    /BubblePops | 18.80 MiB
    GIT: Get current revision
    GIT: Current revision is 01a86b65ed0eb910f7605e1233be5d7a692c4ec3
    GIT: Get changeset between fd98a2b8f929d34d514157f4c33b2d6de4bfed61 and 01a86b65ed0eb910f7605e1233be5d7a692c4ec3 (max 30)
    postcheckoutstatus finished successfully.
    Added new build target 'game-ios-distribution-only'
    Saved /BUILD_PATH/****game-ios-distribution-only/build.json
    installing iOS credentials for game - bubble-double-ios-distribution-only
    Signing credentials: Kau Team Double Bubble Private Dist (*****)
    Importing certificate...
    1 identity imported.
    -> /BUILD_PATH/Library/MobileDevice/Provisioning Profiles/34161ad6-a917-4f80-a7e4-4a602d567fc9.mobileprovision
    + Detected last used Unity version: 2019.1.14f1
    + Detecting Unity installation ...
    + Building with Unity installed at /UNITY_PATH/Unity/windows/published/Unity-2019_1_14f1/Unity.app/Contents/MacOS/Unity
    ! build of 'bubble-double-ios-distribution-only' failed. undefined method `[]' for nil:NilClass
    Publishing build 13 of kauinc/doubble-bubble for target 'bubble-double-ios-distribution-only'...
    publishing finished successfully.
    uninstalling iOS credentials for kauinc/doubble-bubble - bubble-double-ios-distribution-only
    MAC verified OK
    Removing certificate...
    removing: /BUILD_PATH/Library/MobileDevice/Provisioning Profiles/34161ad6-a917-4f80-a7e4-4a602d567fc9.mobileprovision
    Zipping cache files from Library
    tar: Library: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors.
    done.
    Build step 'Execute shell' marked build as failure
    postbuildstatus finished successfully.
    postbuildsteps finished successfully
    Finished: FAILURE
     
  2. codematic

    codematic

    Joined:
    Feb 26, 2017
    Posts:
    8
    We got the same issue, changing unity build version back to .12 in UCB solves the problem. I think it would be good to create a ticket for that issue as this seems to be UCB problem
     
  3. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    143
    This issue is fixed now - the setup was done incorrectly when importing that new version