Yogakit/Yogakit.modulemap'在苹果M1上找不到反应的本地人
我正在尝试编译一个配置WaterMelondB
配置的Hello-World React-Native应用程序。我有一个M1 MacBook Pro M1,并按照给出的说明进行在这里 and 和此处 为<代码设置项目 >西瓜。设置后,android
的编译工作正常工作,但是iOS的编译失败了以下错误:
讨论了此问题在这里,但问题是此错误可能发生在不同情况的 lot 中。结果,有很多不同的建议,并非所有这些都特别是在M1上引起的问题。
我正在使用Xcode 13.4,并且正在尝试在iOS模拟器上启动应用程序,因为我没有iOS手机要测试。
请不提供涉及安装React-native
或xcode
的解决方案。我正在寻找解决方案,以获取最新版本的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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过使用
rosetta
来使它起作用。在开始创建项目之前,我做了以下步骤。Xcode
,右键单击它,然后选择“获取信息”< img src =“ https://i.sstatic.net/r96m0.png” alt =“在此处输入图像说明”> 。
这样做之后,我遵循了我在问题中链接的教程中的所有步骤。该日志仍显示我最初发布的错误:
但构建继续,完成并成功地在
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.Xcode
in applications folder, right click on it and select "Get Info"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:
But the build continued, completed and was successfully launched on the
iOS
simulator.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.