Error Uploading To Ios

Discussion in 'Buildbox General Discussion' started by ZAMAXT, Sep 15, 2021.

  1. ZAMAXT

    ZAMAXT Boxer

    Joined:
    Jun 25, 2018
    Messages:
    17
    Likes Received:
    5
    Hey Boxers - I've been getting an error in my upload

    ERROR ITS-90085: "No architectures in the binary. Lipo failed to detect any architectures in the bundle executable."

    Any ideas how to fix this?
     
  2. Sean Buildbox

    Sean Buildbox Serious Boxer

    Joined:
    Sep 24, 2015
    Messages:
    902
    Likes Received:
    1,076
    Sounds like the export doesn't have the right files. Can you screenshot the actual full xcode screen with errors? Also have you tried deleting your modules and redownloading?
     
  3. ZAMAXT

    ZAMAXT Boxer

    Joined:
    Jun 25, 2018
    Messages:
    17
    Likes Received:
    5
    Hi Sean - this is the error and list of warnings

    There were 4 errors initially - Had to copy some script to try and fix it which left me the one below. I will try and recreate the original error and post that below too
     

    Attached Files:

  4. ZAMAXT

    ZAMAXT Boxer

    Joined:
    Jun 25, 2018
    Messages:
    17
    Likes Received:
    5
    Below are the 4 errors I got from trying to upload through Xcode straight from the Buildbox file. I googled the issues and found some advice on adding the below script. This fixed most of it except the above issue.

    Gavin

    APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
    # This script loops through the frameworks embedded in the application and
    # removes unused architectures.
    find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
    do
    FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
    FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
    echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
    EXTRACTED_ARCHS=()
    for ARCH in $ARCHS
    do
    echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME"
    lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
    EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
    done
    echo "Merging extracted architectures: ${ARCHS}"
    lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
    rm "${EXTRACTED_ARCHS[@]}"
    echo "Replacing original executable with thinned version"
    rm "$FRAMEWORK_EXECUTABLE_PATH"
    mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"
    done
     

    Attached Files:

Share This Page