问题描述
我的问题很简单,使用Gigya Swift SDK Framework 1.0.11的任何人都注意到运行脚本构建阶段所需的文件丢失了吗?您是如何应付的?
My question is very simple, is anyone using Gigya Swift SDK Framework 1.0.11 noticed the missing file needed for the Run Script Build phase? How did you cope with that?
基本上,这是在运行脚本构建"阶段所需的文件,其调用方式为:
Basically that's the file needed in the Run Script Build Phase, invoked this way:
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Gigya.framework/ios-framework-build.sh" Gigya
感谢任何提供答案的人!
Thanks anyone providing an answer!
推荐答案
这是一个正常的脚本,用于删除未使用的体系结构.您可以从旧版本中获取它,并将其放在 Gigya.framework
文件夹中,也可以获取以下代码,并在中另存为
. ios-framework-build.sh
Gigya.framework
This is a normal script to removes unused architectures.You can take it from the old version and put in the Gigya.framework
folder or take the following code and save as ios-framework-build.sh
in the Gigya.framework
.
删除未使用的体系结构脚本:
Removes unused architectures script:
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# 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
这篇关于Gigya Swift框架缺少ios-framework-build.sh脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!