Bitcode disabled on Carthage dependencies

杀马特。学长 韩版系。学妹 提交于 2019-12-06 00:22:07
Andrea Mugnaini

I found a solution by making a shell script able to erase the disabling of bitcode, in case someone is facing or curious to solve a similar problem, the script is this:

carthage update --platform ios
for D in ./Carthage/Checkouts/*; do
  if [ -d "${D}" ]; then
    find $D -type d -name \*.xcodeproj -print0 |
      while IFS= read -r -d $'\0' folder; do
        sed -i '' 's/ENABLE_BITCODE = NO;//g' $folder/project.pbxproj
      done
    fi
done
carthage build --platform ios

so basically the script's mechanism is:

  1. downloading all the dependencies
  2. for each dependency, find thepbxproj living inside xcodeproj and cut off the string ENABLE_BITCODE = NO
  3. finally building the dependencies to make the .framework
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!