简体   繁体   English

如果不使用 rosseta,我无法使用 Apple Silicon m1 Pro 构建我的应用程序

[英]I can't build my app with apple silicon m1 pro without using rosseta

I have tried all the solutions I could find on the internet but none has worked, the application was created with an intel processor and I think it is some kind of problem with the creation of the project because the libraries that give me error adding them in a project from 0 work perfectly, I do not know if it is possible to update the project somehow and to stop using rosseta that slows xcode in such a way that it becomes insufferable to develop.我已经尝试了所有可以在互联网上找到的解决方案,但都没有奏效,该应用程序是使用英特尔处理器创建的,我认为创建项目时存在某种问题,因为库让我在添加它们时出错一个从 0 开始的项目完美运行,我不知道是否有可能以某种方式更新项目并停止使用 rosseta,它会减慢 xcode 的速度,以至于开发变得难以忍受。

Here is an image of the error xcode gives me when I try to run the application without rosetta这是我尝试在没有 Rosetta 的情况下运行应用程序时出现的错误 xcode 的图像

Thanks in advance!提前致谢!

First of all, when you want to run your previously created app on a simulator, you should run your simulators on rosetta as well.首先,当你想在模拟器上运行你之前创建的应用程序时,你也应该在 Rosetta 上运行你的模拟器。 Therefore go to: Your HD -> Applications -> Xcode, right click and show package content -> Content -> Developer -> Applications -> Simulator.app因此 go 到:您的 HD -> 应用程序 -> Xcode,右键单击并显示 package 内容 -> 内容 -> 开发人员 -> 应用程序 -> 模拟器。

Here is the path:这是路径:

/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app

Open context menu -> change the settings of the Simulator.app in the information like you did for Xcode: Set checkmark for Open with Rosetta .打开上下文菜单 -> 在信息中更改 Simulator.app 的设置,就像您对 Xcode 所做的那样:为Open with Rosetta设置复选标记。

Later you could see if it is necessary to exclude some architectures like arm64 in your build settings, see this image:稍后您可能会看到是否有必要在构建设置中排除一些架构,例如arm64 ,请参见此图:

在构建设置中排除 Arm64

暂无
暂无

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

相关问题 如何在 Apple Silicon('M1')上构建 Google Analytics SDK,使其在 Xcode 模拟器中运行? - How can I build the Google Analytics SDK on Apple Silicon ('M1') so it runs in the Xcode Simulator? 如何在 Apple Silicon (M1) 上运行 CocoaPods - How to run CocoaPods on Apple Silicon (M1) 有没有办法在 Apple Silicon M1 上运行 Firebase? - Is there a way to run Firebase on Apple Silicon M1? Apple Silicon M1 上的 iOS 应用程序崩溃 *** -[_UIRegularOverlayScrollerImp setKnobProportion:] 中的断言失败,_UIScrollerImp.m:347 - Crash in iOS App on Apple Silicon M1 *** Assertion failure in -[_UIRegularOverlayScrollerImp setKnobProportion:], _UIScrollerImp.m:347 M1 Mac Xcode Build Done then Failed Flutter 项目(苹果硅) - M1 Mac Xcode Build Done then Failed Flutter Project (apple silicon) 在 Apple Silicon (M1) 上构建 React Native IOS 说 -lDoubleConversion - Building React Native IOS on Apple Silicon (M1) says -lDoubleConversion Google cast SDK 在 Apple M1 Pro 芯片组中不起作用 - Google cast SDK not working in Apple M1 Pro chipset 尝试在苹果硅 m1 上运行 libtorch helloworld pod install 仍然出错 - Still error trying to run libtorch helloworld pod install on apple silicon m1 Dynamics SDK v9.1 - M1 Apple Silicon 支持上的 iOS 模拟器 - Dynamics SDK v9.1 - iOS Simulator on M1 Apple Silicon Support 是否可以在没有Xcode UI的情况下将应用构建并分发到Apple Store? - Can I build and distribute app to apple store without Xcode UI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM