[英]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
,请参见此图:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.