-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios项目编译失败请看这里(event2/event-config.h) #370
Comments
Flipper的一个依赖有问题,更新到最新版本可解决 sudo gem install cocoapods 然后修改Podfile中的use_filpper那行,添加版本
删掉Podfile.lock文件以及pods目录
|
@sunnylqm 改了跑起来还是没用啊 |
删掉Podfile.lock后重新pod install |
删掉 |
@sunnylqm 感谢大佬 成功了 |
按照楼主说的改了,也删掉了 Podfile.lock,但是在 ios 目录下执行 pod install 时报错,如下: Podfile文件如下:
|
报错截图看下,还有执行npx react-native info看下 |
不好意思,少了括号,应该是 |
@sunnylqm 😭 好的,我再试试,谢谢!! |
@sunnylqm 按照楼主说的改了,重新在ios下删掉了Podfile.lock,pod install, 但是还是不行! |
@yanglvyou 有什么报错 |
@sunnylqm 就我发的第一张图的报错 |
pod install 或 pod update 有错误讯息吗?还是都正常install好没问题? |
@yanglvyou 报错要看xcode的截图 |
@yanglvyou 8081端口被占了,比如mcafee什么的 |
@sunnylqm 惭愧,多谢了! |
|
@Memoried |
终于跑起来了,谢谢大佬~ |
|
@Morphone0429 截xcode中的图 |
@sunnylqm 非常抱歉,rn是个纯新手,已经搞了一天了 xcode报错 |
@Morphone0429 pod install有任何报错吗 |
@sunnylqm pod install没有报错 我已经翻墙了,应该没什么问题 |
@Morphone0429 你清掉pods目录,重新pod install截图看看 |
@sunnylqm 我把boost-for-react-native删除下载多次了 确定有这个文件,但是xcode中好像缺少 |
你是不是用了legacy build system? @Morphone0429 |
@sunnylqm xcode我都是默认的配置没有动过 |
@Morphone0429 加我qq34731408 详细看看 |
@sunnylqm 已加 感谢大佬 |
我上面的解决方法是 |
楼主帮忙看下 ** BUILD FAILED ** The following build commands failed: info Run CLI with --verbose flag for more details. 2)运行npx react-native info,如下: 3)更改 use_flipper!({ 'Flipper' => '0.75.1' }),并删除podfile.lock,再pod install;仍然是相同的错误。(ios模拟器启动了) |
@fengdanbailu 我注意到你的xcode版本是12.5,这个有已知的不兼容问题,facebook/react-native#31179 建议始终使用xcode的正式版而不是测试版(而且正式版也尽量不要第一时间更新) |
改成商店的12.4版本了,问题依旧存在,你有什么思路,我可从哪几方面做尝试呢? |
我的重启可以了在模拟器运行了,谢了。经验教训xcode不能升级太快。 |
为什么生成的项目没有podfile.lock文件啊 |
说明pod install没有完成
…---Original---
From: ***@***.***>
Sent at: 2021年3月26日(Fri) Noon11:16
To: ***@***.***>;
Cc: "Sunny ***@***.******@***.***>;
Subject: Re: [reactnativecn/react-native-website] ios项目编译失败请看这里(event2/event-config.h) (#370)
为什么生成的项目没有podfile.lock文件啊
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我的是build不成 |
报错已经说了,需要你去掉PREFIX这个环境变量 |
点下那个xcode里的红叉,看下具体报错 |
说明你的环境变量没有去掉啊 |
@DebbieL 无关的问题请重新开贴。你这个问题截图已经说得很清楚了,换个名字(bundle identifier)完事。 |
好的,谢谢~ |
附图vscode运行截图:

附图xcode报错截图:

xcode版本:12.4
The text was updated successfully, but these errors were encountered: