不支持的体系结构

不支持的体系结构

我正在使用commoncrypto。我使用迦太基添加了这个。我添加了运行脚本。我嵌入并签署框架。我还向运行脚本添加了代码。当我尝试在Apple Store中安装应用程序时,在下面的照片中出现错误。我在输入和输出中添加了框架。问题是什么?

swift - 不支持的体系结构-LMLPHP
swift - 不支持的体系结构-LMLPHP

if [ "${CONFIGURATION}" = "Release" ]; then


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

fi

最佳答案

您在哪里放置了消除i386的脚本?
您是否尝试下载CommonCrypto.framework.zip文件,然后直接将其拖放到您的项目中?

关于swift - 不支持的体系结构,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59498241/

10-08 21:07