Xcode 8 build crash on iOS 9.2 and below

前端 未结 8 1562
南方客
南方客 2020-11-27 10:53

When I build my app with Xcode 8 GM Seed and run it on an iOS 9.2 below device OR simulator, I get strange EXC_BAD_ACCESS crashes during app startup or a few seconds after

8条回答
  •  甜味超标
    2020-11-27 11:23

    edited script to convert png files to correct format in whole project and with white spaces:

    #!/bin/bash
    DIRECTORY=$1
    echo "------------------------------"
    echo "Passed Resources with xcassets folder argument is <$DIRECTORY>"
    echo "------------------------------"
    echo "Processing asset:"
    
    find "$DIRECTORY" -name '*png' -print0 | while read -d $'\0' file; 
    do 
        echo "---------$file"
        sips -m "/System/Library/Colorsync/Profiles/sRGB Profile.icc" "$file" --out "$file"
    done
    
    echo "------------------------------"
    echo "script successfully finished"
    echo "------------------------------"
    

提交回复
热议问题