小编FSU*_*011的帖子

找不到目标“x86_64-apple-ios-simulator”的模块“MyCustomFramework”;发现:arm64、armv7-apple-ios、arm64-apple-ios、arm、armv7

我有一个自定义框架,我正在存档以用于另一个项目。更新到 Xcode11 后,我在使用该框架的项目中收到以下错误。

找不到目标“x86_64-apple-ios-simulator”的模块“MyCustomFramework”;发现:arm64、armv7-apple-ios、arm64-apple-ios、arm、armv7

我的框架在 Xcode10 上运行良好,但在 11 上不起作用。我的目标设置为 NO 仅用于构建活动架构。我有以下有效架构;arm64e、armv7s、armv7、arm64。

我的构建脚本

exec > ${PROJECT_DIR}/${PROJECT_NAME}_archive.log 2>&1

UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal

if [ "true" == ${ALREADYINVOKED:-false} ]
then
echo "RECURSION: Detected, stopping"
else
export ALREADYINVOKED="true"

# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"

echo "Building for iPhoneSimulator"
xcodebuild -workspace "${WORKSPACE_PATH}" -scheme "${TARGET_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max' ONLY_ACTIVE_ARCH=NO ARCHS='i386 x86_64' BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" ENABLE_BITCODE=YES OTHER_CFLAGS="-fembed-bitcode" BITCODE_GENERATION_MODE=bitcode clean build

# Step 1. Copy the framework structure (from iphoneos build) …
Run Code Online (Sandbox Code Playgroud)

ios ios-frameworks swift xcode11

8
推荐指数
1
解决办法
8555
查看次数

标签 统计

ios ×1

ios-frameworks ×1

swift ×1

xcode11 ×1