Search Unity

Error building to iOS TestFlight from cloud

Discussion in 'Unity Build Automation' started by Xsodiaz, Mar 29, 2021.

  1. Xsodiaz

    Xsodiaz

    Joined:
    Jul 9, 2019
    Posts:
    16
    Hi there,
    I'm using cloud build to push to TestFlight with the following Post-Build Script :
    Code (Boo):
    1. #!/bin/bash
    2. echo "Uploading IPA to Appstore Connect..."
    3. #Path is "/BUILD_PATH/<ORG_ID>.<PROJECT_ID>.<BUILD_TARGET_ID>/.build/last/<BUILD_TARGET_ID>/build.ipa"
    4. path="$WORKSPACE/.build/last/$TARGET_NAME/build.ipa"
    5. if xcrun altool --upload-app -f $path -u $ITUNES_USERNAME -p $ITUNES_PASSWORD ; then
    6.     echo "Upload IPA to Appstore Connect finished with success"
    7. else
    8.     echo "Upload IPA to Appstore Connect failed"
    9. fi
    The problem is that I'm using Unity Localization, and it doesn't load the locales, or otherwise it's stuck when I try to load them asynchronously.
    Localization uses the adressables. And it seems that it doesn't build/push the adressables.
    Everything is working fine on Android, Editor, and even on iOS Ad-Hoc. The only problem is with the iOS Distribution from cloud build.
    Thanks for your help.
     
  2. Xsodiaz

    Xsodiaz

    Joined:
    Jul 9, 2019
    Posts:
    16
    Solved by using latest unity 2019 version, but latest Unity version in Cloud Build has some problems compiling IAP.
    And using Unity 2020, resulted on the following error :

    Code (Boo):
    1. 113: 2021-03-30 00:56:36.125 altool[10582:48051]  Error:
    2. 114: [2021-03-30 00:56:35 UTC] <main> DBG-X:   parameter ErrorCode = 1102
    3. 115: [2021-03-30 00:56:35 UTC] <main> DBG-X:   parameter ErrorMessage = ERROR ITMS-90206: "Invalid Bundle. The bundle at 'Fizzap.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.
    4. 116: [2021-03-30 00:56:35 UTC] <main> ERROR: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'Fizzap.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
    5. 117: [2021-03-30 00:56:35 UTC] <main> DBG-X: The error code is: 1102
    6. 118:         ERROR ITMS-90206: "Invalid Bundle. The bundle at 'Fizzap.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
    7. 119: 2021-03-30 00:56:36.188 altool[10582:48044] *** Error: Error uploading '/BUILD_PATH/xsodiaz.bouncyball-2d.fizzap/.build/last/Fizzap/build.ipa'.
    8. 120: 2021-03-30 00:56:36.188 altool[10582:48044] *** Error: code -18000 (ERROR ITMS-90206: "Invalid Bundle. The bundle at 'Fizzap.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.")
    9. 121: publishing finished successfully.
    10. 122: Finished: SUCCESS
    It builds but it doesn't push it to AppStore Connect
     
    Last edited: Mar 30, 2021