相关疑难解决方法(0)

Xcode 12 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=arm64e armv7s arm64 arm7)

由于我将 Xcode 更新为 Xcode 12,因此在构建时出现此错误:

Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
Run Code Online (Sandbox Code Playgroud)

我尝试了很多东西:

  • 通过卸载/重新安装 Pod pod install
  • Build Active Architecture OnlyNoYes进行调试发布
  • Pods 项目也一样

不知道该怎么办。当我想在 iOS 14 上启动时会出现此错误,但在 iOS 13.7 中,此操作完美无缺。

- 编辑 -

我通过在“MyProject”和“MyProjectTest”中添加arm64 arm64e armv7 armv7s x86_64到 来解决我的问题,VALID_ARCHS现在它可以工作了。

xcode ios react-native ios14 xcode12

18
推荐指数
4
解决办法
2万
查看次数

无法找到目标“x86_64-apple-ios-simulator”的模块“XXXX”;在 Swift 项目中找到:arm64、arm64-apple-ios-simulator?

这个错误已经阻止我的项目进展一段时间了,似乎没有什么对我有用。

我已将 A pod 添加到我的 swift 项目中,但是当我尝试将其导入我的应用程序时,出现此错误:

Could not find module 'ImagePicker' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
Run Code Online (Sandbox Code Playgroud)

我进行了广泛的搜索并尝试了几乎所有的解决方案,但似乎仍然没有任何效果。

我正在使用最新的 Xcode。

我需要做些什么来解决这个问题,因为这阻止了我构建应用程序。

xcode ios swift

13
推荐指数
2
解决办法
2万
查看次数

找不到目标“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
查看次数

找不到目标“x86_64-apple-ios-simulator”的模块“Alamofire”

我通过 Carthage 安装 alamofire 并收到此错误:

找不到目标“x86_64-apple-ios-simulator”的模块“Alamofire”;找到:armv7-apple-ios、arm64-apple-ios,位于:/Users/datdinh/Desktop/a/requestTest/Carthage/Build/iOS/Alamofire.framework/Modules/Alamofire.swiftmodule

ios swift alamofire

3
推荐指数
1
解决办法
8184
查看次数

标签 统计

ios ×4

swift ×3

xcode ×2

alamofire ×1

ios-frameworks ×1

ios14 ×1

react-native ×1

xcode11 ×1

xcode12 ×1