环信云客服ipa上架之坑

https://developer.apple.com/cn/programs/

1、上传AppStore以及打包ipa注意事项(来自环信云客服接入文档)

为了方便广大开发者开发测试,Demo中提供的framework文件支持x86_64 i386 armv7 arm64平台,上传AppStore(xcode10打包ipa)时需要剔除不需要的CPU架构支持,只剩余armv7、arm64 平台即可,命令如下: 包含实时音视频版本HelpDesk.framework

【首先进入HelpDesk.framework所在目录】

// 移除支持x86_64,i386的二进制文件

lipo HelpDesk.framework/HelpDesk -remove x86_64 -remove i386 -output HelpDesk

//替换framwork内部二进制文件[记得备份]

mv HelpDesk HelpDesk.framework/HelpDesk

//查看剥离后的二进制文件支持的CPU架构,如果显示armv7 arm64,就完成剥离,可上传AppStore

lipo -info HelpDesk.framework/HelpDesk

依赖库Hyphenate.framework

【首先进入Hyphenate.framework所在目录】

// 移除支持x86_64,i386的二进制文件

lipo Hyphenate.framework/Hyphenate -remove x86_64 -remove i386 -output Hyphenate

//替换framwork内部二进制文件[记得备份]

mv Hyphenate Hyphenate.framework/Hyphenate

//查看剥离后的二进制文件支持的CPU架构,如果显示armv7 arm64,就完成剥离,可上传AppStore

lipo -info Hyphenate.framework/Hyphenate

不包含实时音视频版本HelpDeskLite.framework

【首先进入HelpDeskLite.framework所在目录】

// 移除支持x86_64,i386的二进制文件

lipo HelpDeskLite.framework/HelpDeskLite -remove x86_64 -remove i386 -output HelpDeskLite

//替换framwork内部二进制文件[记得备份]

mv HelpDeskLite HelpDeskLite.framework/HelpDeskLite

//查看剥离后的二进制文件支持的CPU架构,如果显示armv7 arm64,就完成剥离,可上传AppStore

lipo -info HelpDeskLite.framework/HelpDeskLite

依赖库HyphenateLite.framework

【首先进入HyphenateLite.framework所在目录】

// 移除支持x86_64,i386的二进制文件

lipo HyphenateLite.framework/HyphenateLite -remove x86_64 -remove i386 -output HyphenateLite

//替换framwork内部二进制文件[记得备份]

mv HyphenateLite HyphenateLite.framework/HyphenateLite

//查看剥离后的二进制文件支持的CPU架构,如果显示armv7 arm64,就完成剥离,可上传AppStore

lipo -info HyphenateLite.framework/HyphenateLite

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


2、

# This script loops through the frameworks embedded in the application and

# removes unused architectures.

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"

EXTRACTED_ARCHS=()

for ARCH in $ARCHS

do

echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME"

lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"

EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")

done

echo "Merging extracted architectures: ${ARCHS}"

lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"

rm "${EXTRACTED_ARCHS[@]}"

echo "Replacing original executable with thinned version"

rm "$FRAMEWORK_EXECUTABLE_PATH"

mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"

done


3、(客服云)iOS访客端集成常见报错

http://www.imgeek.org/article/825350024

你可能感兴趣的:(环信云客服ipa上架之坑)