XCode上传包提示appex contains disallowed file 'Frameworks'错误

环境:XCode 7.3.1 Cocoapods 1.0.0

Xcode上传包含插件的包时遇到提示appex contains disallowed file 'Frameworks'错误,如图


XCode上传包提示appex contains disallowed file 'Frameworks'错误_第1张图片

解决这个问题需要在插件的container app的target添加如下run script删除apex包里的frameworks文件夹

EMBEDDED_EXTENSION_PLUGIN_PATH="$TARGET_BUILD_DIR/$PLUGINS_FOLDER_PATH/插件bundle名.appex/Frameworks"
if [[ -d "$EMBEDDED_EXTENSION_PLUGIN_PATH" ]]; then
    rm -fr "$EMBEDDED_EXTENSION_PLUGIN_PATH"
fi

如果有多个插件给每个插件加一个run script即可

你可能感兴趣的:(XCode上传包提示appex contains disallowed file 'Frameworks'错误)