内容简介:由于环信将 i386 x86_64 armv7 arm64 几个平台都合并到了一起,所以使用动态库上传 appstore 时需要将 i386 x86_64 两个平台删除后,才能正常提交审核。所以我们使用 fastlane sh 在打包如果出错,使用 pod 删除并重新安装完整版的环信 SDK。
由于环信将 i386 x86_64 armv7 arm64 几个平台都合并到了一起,所以使用动态库上传 appstore 时需要将 i386 x86_64 两个平台删除后,才能正常提交审核。
所以我们使用 fastlane sh 在打包 gym
时前后分别将 x86 的移除 remove86framework
和添加 add86framework
。这样就可以继续使用 fastlane 一键打包。
如果出错,使用 pod 删除并重新安装完整版的环信 SDK。
Fastfile
desc "Deploy a new version to the App Store"
lane :release do
remove86framework
gym
add86framework
deliver(force: true)
# frameit
end
desc "Remove x86 framework"
lane :remove86framework do
sh(%(
cd ../Pods/HyphenateLite/iOS_Pods_IMSDK*
pwd
if [! -d "./bak"]; then
mkdir ./bak
fi
if [-d "./bak/HyphenateLite.framework"]; then
rm -rf ./bak/HyphenateLite.framework
fi
cp -r HyphenateLite.framework ./bak
lipo HyphenateLite.framework/HyphenateLite -thin armv7 -output HyphenateLite_armv7
lipo HyphenateLite.framework/HyphenateLite -thin arm64 -output HyphenateLite_arm64
lipo -create HyphenateLite_armv7 HyphenateLite_arm64 -output HyphenateLite
mv HyphenateLite HyphenateLite.framework/
))
end
desc "Add x86 framework back"
lane :add86framework do
sh(%(
cd ../Pods/HyphenateLite/iOS_Pods_IMSDK*
pwd
if [-d "./HyphenateLite.framework"]; then
rm -rf ./HyphenateLite.framework
fi
cp -r ./bak/HyphenateLite.framework HyphenateLite.framework
))
end
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
SHA 加密
SHA 加密工具