Yogakit/Yogakit.modulemap'在苹果M1上找不到反应的本地人

发布于 2025-01-30 15:01:28 字数 1056 浏览 3 评论 0原文

我正在尝试编译一个配置WaterMelondB配置的Hello-World React-Native应用程序。我有一个M1 MacBook Pro M1,并按照给出的说明进行在这里 and 和此处 为<代码设置项目 >西瓜。设置后,android的编译工作正常工作,但是iOS的编译失败了以下错误:

“在此处输入映像”

讨论了此问题在这里,但问题是此错误可能发生在不同情况的 lot 中。结果,有很多不同的建议,并非所有这些都特别是在M1上引起的问题。

我正在使用Xcode 13.4,并且正在尝试在iOS模拟器上启动应用程序,因为我没有iOS手机要测试。

请不提供涉及安装React-nativexcode的解决方案。我正在寻找解决方案,以获取最新版本的react-native在最新版本的xcode上使用。

I am trying to compile a hello-world react-native app that has WatermelonDB configured. I have a M1 Macbook Pro M1 and am following the instructions given here and and here to set up the project for Watermelon. Once setup, the compile for Android works correctly, but the compile for iOS fails with the following error:

enter image description here

This issue is discussed over here, but the problem is that this error can occur in a lot of different situations. As a result there are loads of different suggestions, not all of which are particular to this issue arising on an M1.

I am using Xcode 13.4 and am trying to get the application launching on an iOS simulator as I do not have an iOS phone to test on.

Please do not offer solutions that involve installing older versions of react-native or Xcode. I am looking the solution to get the latest version of react-native working on the latest version of Xcode.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硬不硬你别怂 2025-02-06 15:01:28

我通过使用rosetta来使它起作用。在开始创建项目之前,我做了以下步骤。

  1. 在应用程序文件夹中查找Xcode,右键单击它,然后选择“获取信息”

< img src =“ https://i.sstatic.net/r96m0.png” alt =“在此处输入图像说明”>

  1. 在打开的信息对话框中,检查标有“使用Rosetta”的复选框,然后关闭对话框。

这样做之后,我遵循了我在问题中链接的教程中的所有步骤。该日志仍显示我最初发布的错误:

”“在此处输入图像说明”

但构建继续,完成并成功地在ios模拟器上启动。

也许有更好的解决方案不依赖rosetta。但这对我来说有用。

编辑:
我第二次完成本教程时所做的另一件事是通过双击xcode来启动xcode。 /代码>文件。不确定这是否是解决方案的一部分。

I have managed to get it working by making use of Rosetta. I did the following steps before I start creating the project.

  1. Find Xcode in applications folder, right click on it and select "Get Info"

enter image description here.

  1. In the info dialog that opens up, check the checkbox labeled "Open using Rosetta" and then close the dialog.

enter image description here

After doing this, I followed all of the steps in the tutorial that I linked to in the question. The log still showed the error that I originally posted:

enter image description here

But the build continued, completed and was successfully launched on the iOS simulator.

enter image description here

Maybe there are better solutions that don't depend on Rosetta. But this works for me for now.

Edit:
Another thing that I did differently the second time I did this tutorial was to start the Xcode setup by double clicking on the .xcworkspace rather than on the .xcodeproj file. Not sure if this was part of the solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文