Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

ipa failed react native after processing

 APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"

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"
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")

FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp"

case "${TARGET_BUILD_DIR}" in
*"iphonesimulator")
    echo "No need to remove archs"
    ;;
*)
    if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "i386") ; then
    lipo -output "$FRAMEWORK_TMP_PATH" -remove "i386" "$FRAMEWORK_EXECUTABLE_PATH"
    echo "i386 architecture removed"
    rm "$FRAMEWORK_EXECUTABLE_PATH"
    mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"
    fi
    if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "x86_64") ; then
    lipo -output "$FRAMEWORK_TMP_PATH" -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH"
    echo "x86_64 architecture removed"
    rm "$FRAMEWORK_EXECUTABLE_PATH"
    mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"
    fi
    ;;
esac

echo "Completed for executable $FRAMEWORK_EXECUTABLE_PATH"
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")

done
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript sanitize input slug 
Javascript :: VUE DECLARE COMPONENT IN MAIN.JS 
Javascript :: what does conservatism really mean 
Javascript :: how to get header in all the pages in visualforce page 
Javascript :: how to check if an object from database is undefined in javascript 
Javascript :: agregar año en javascript 
Javascript :: react native multiple touchableopacity 
Javascript :: Ivy J. Livingston 
Javascript :: sequelize log Special methods 
Javascript :: Laravel bootstrap 5 install popper.js error 
Javascript :: convert an iterable object to an array 
Javascript :: video pop js 
Javascript :: how to merge duplicate value in array of object site:stackoverflow.com 
Javascript :: chart js bars too light 
Javascript :: JSDOM - serialize() // returns dom as string 
Javascript :: 1.047222170078745 
Javascript :: tips and tricks for javascript 
Javascript :: cypress chai exclude spectial char when asserting 
Javascript :: js check if function is available in scope 
Javascript :: if raro 
Javascript :: button prssed value show in text javascript 
Javascript :: how to create a mixed array in javascript 
Javascript :: angular taskkill in port 4200 
Javascript :: javascript average of float array 
Javascript :: midpointrounding.awayfromzero javascript 
Javascript :: conditionals monads javascript 
Javascript :: iterating hashmap angular 
Javascript :: how to change text in paragraph javascript 
Javascript :: crop go 
Javascript :: Grunt--project configuration object--uglify 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =