desc "Deploy a new version to the App Store" lane :releasedo remove86framework gym add86framework deliver(force:true) # frameit end
desc "Remove x86 framework" lane :remove86frameworkdo 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 :add86frameworkdo 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