Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    83
    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:
    12
    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:
    390
    This issue is fixed now - the setup was done incorrectly when importing that new version
     
  4. damelin

    damelin

    Joined:
    Jul 3, 2012
    Posts:
    22
    Hi, just had this same error, with 2018.4.12f1 (my project is on 2018.4.10f1), used to work perfectly with UCB on 2018.4.11. My config was set to Always Use Latest 2018.4

     
  5. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    733
  6. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    390
    Yeah this issue happens whenever the new version has a broken executable. Previously it was user error, this time there was a change to the Unity installer code which broke the install for one of our data centers. We have disabled access to 2018.4.12f1 and 2019.2.10f1 while we work on fixing the installations - should not be far away now.
     
unityunity