[英]iOS/Expo: Can't build on physical device after ejecting to bare workflow
I just ejected my project to a bare workflow and I am unable to build my project to my physical device (iPhone SE gen 2).我刚刚将我的项目弹出到一个裸工作流中,我无法将我的项目构建到我的物理设备(iPhone SE gen 2)上。 It builds normally to the iOS simulator for every device type.
它为每种设备类型正常构建到 iOS 模拟器。
When I run expo run:ios -d
, as this post points out, my device is not listed in the options list.当我运行
expo run:ios -d
时,正如这篇文章指出的那样,我的设备未列在选项列表中。 On the Xcode UI, my device is shown, but it immediately says the build fails when I try to run my app (other sims work fine here too).在 Xcode UI上,显示了我的设备,但是当我尝试运行我的应用程序时,它立即说构建失败(其他模拟程序在这里也可以正常工作)。 I've tried the posts I've found across different forums (cleaning builds etc) but nothing seems to work.
我已经尝试过我在不同论坛上找到的帖子(清理构建等),但似乎没有任何效果。 For context, I am running on a m1 mac.
对于上下文,我在 m1 mac 上运行。
Any guidance here would be much appreciated这里的任何指导将不胜感激
Looks like the issue was that I did not have a developer account associated with the project in Xcode.看起来问题是我没有与 Xcode 中的项目关联的开发人员帐户。 Once adding one and registering my device, I was able to build it onto my device
添加一个并注册我的设备后,我就可以将它构建到我的设备上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.