Search Unity

Xcode Build Variables

Discussion in 'Unity Build Automation' started by Otto_Oliveira, May 2, 2018.

  1. Otto_Oliveira

    Otto_Oliveira

    Joined:
    Jul 24, 2014
    Posts:
    33
    Hi,
    I'm trying to run a Script after a build on Xcode, but it seems that build variables are different on my local build and UCB.

    This command on my local build works:
    ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/myFramework.framework/myscript.sh


    But not on UCB. I got an error:
    No such file or directory


    I also tried these environment build settings, from xcode reference (https://help.apple.com/xcode/mac/9.3/#/itcaec37c2a6):
    TARGET_BUILD_DIR


    Looking at my UCB Build log I got this install/build/deploy path:
    /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-aciaaejhojqnkbdqbjdqjmzblmsq/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/my.app


    My question is which environment variable represents the above path?

    Thanks
     
  2. Otto_Oliveira

    Otto_Oliveira

    Joined:
    Jul 24, 2014
    Posts:
    33
    I managed to make the Run Script working. If someone else needs an advice please ask here, I'm pretty busy atm.