简体   繁体   English

如何为基于 Intel 的最新 Mac OS 创建具有特定/仅本机架构的存档构建

[英]How to create Archive build with Specific / Native Only Architecture for Intel based Latest Mac OS

Recently i was working on a project (macOs application) for intel chip based for Latest macOS.最近我正在为基于最新 macOS 的英特尔芯片开发一个项目(macOs 应用程序)。

My working environment:我的工作环境:

Xcode: Version 13.4.1 (13F100) Xcode:版本 13.4.1 (13F100)

Mac OS: Monterey Version: 12.5 (21G72) Chip: Intel Mac OS:Monterey 版本:12.5 (21G72) 芯片:Intel

The problem i am having is my code runs from Xcode without any issue.我遇到的问题是我的代码从 Xcode 运行没有任何问题。 But when i try to archive it fails to create archive with an error because it has many codes that only run on intel based mac os and it's trying to create a universal app for both intel chip as well as apple with standard architecture.但是,当我尝试存档时,它无法创建存档并出现错误,因为它有许多代码只能在基于英特尔的 mac os 上运行,并且它正在尝试为英特尔芯片和具有标准架构的苹果创建一个通用应用程序。

So my question is how i can change the build Architecture for my project in order to run on apple MacOs based On intel Chip only?所以我的问题是如何更改我的项目的构建架构,以便仅在基于英特尔芯片的苹果 MacO 上运行?

I know it can be changed from the "Build setting -> Architectures" but i could not find what to change.我知道它可以从“构建设置-> 架构”中更改,但我找不到要更改的内容。

在此处输入图像描述

Archive uses the Release build configuration when building. Archive 在构建时使用 Release 构建配置。 Setting the Build Active Architecture Only setting to YES for release builds will create an Intel-only archive.对于发布版本,将 Build Active Architecture Only 设置为 YES 将创建一个仅限 Intel 的存档。

But you should fix the issue you're having creating universal archives.但是您应该解决您在创建通用档案时遇到的问题。 More and more people are buying Apple Silicon Macs and want apps that run natively on Apple Silicon.越来越多的人购买 Apple Silicon Mac 并想要在 Apple Silicon 上本地运行的应用程序。 You should be able to create a universal archive from an Intel Mac without errors.您应该能够从 Intel Mac 创建通用存档而不会出错。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Intel Mac 上构建或运行 Mac Catalyst 应用程序? - Build or run Mac Catalyst apps on Intel Mac? 如何使用标准 Apple 版本的 clang 从命令行在 M1 Mac 上构建 Intel 二进制文件? - How to build an Intel binary on an M1 Mac from the command line with the standard Apple version of clang? 如何在 GCS 中的增量表之上创建 BQ 外部表并仅显示最新快照 - How to create an BQ external table on top of the delta table in GCS and show only latest snapshot 使用 intel_pstate 时如何设置特定的 cpu 频率 - How to set specific cpu frequency when using intel_pstate 在 Mac OS Monterey 上安装英特尔的十进制浮点数学库时出现问题 - Issues Installing Intel's Decimal Floating-Point Math Library on Mac OS Monterey 如何在基于 YML 的部署管道中获取特定工件的最后一次成功部署的构建 ID - How can I get last successfully deployed build id of specific artifact in YML based deploy pipeline Apple Silicon Chip 如何在没有 Rosetta 的情况下支持基于 Intel 的 JDK-8? - How does Apple Silicon Chip support Intel based JDK-8 without rosetta? 如何根据字段日期获取大查询的最新记录 - How to get the latest record on big query based on field date Firebase 不支持mac os - Firebase does not support mac os React Native 崩溃 - 灰色屏幕 - 仅限 App Center 构建 - com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(本地方法) - React Native Crash - Grey Screen - App Center build only - com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM