【问题标题】:React-native iOS build is failedReact-native iOS 构建失败
【发布时间】:2019-06-06 06:45:36
【问题描述】:

react-native iOS 构建失败并出现以下错误。

GB-MAC-01s-MacBook-Pro:rrtest muruganandham.kuppan$ react-native run-ios
Found Xcode project rrtest.xcodeproj
Building using "xcodebuild -project rrtest.xcodeproj -configuration Debug -scheme rrtest -destination id=E7283C81-5F0D-4732-BF8B-19DB3C904DA2 -derivedDataPath build"
Ignoring unf_ext-0.0.7.5 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.5
▸ Running script 'Start Packager'
** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/rrtest.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

我尝试了几个解决方案,但没有运气。

编辑:附加信息

我已将 react native 端口更改为 8088 并在项目中对其进行了修改。

【问题讨论】:

  • 通常,失败的真正原因就在** BUILD FAILED **上方(截图的顶部)。你能再试一次,看看那条线上方显示的是什么?
  • 你试过这个解决方案stackoverflow.com/questions/37461703/…
  • @MateiRadu 请立即查看。

标签: ios iphone react-native bundle-identifier


【解决方案1】:

我是如何解决这个问题的?

获取8081端口运行的进程

sudo lsof -i :8081

杀了它。

sudo kill -9 336

*336 是 PID(进程 ID)

【讨论】:

  • 我刚刚在一个从头开始创建的 0.53.3 版本上尝试了这个,但上面的答案没有解决它,因为它不是端口问题。
猜你喜欢
  • 2019-08-16
  • 2016-10-27
  • 2017-09-09
  • 2021-12-16
  • 2021-02-04
  • 1970-01-01
  • 1970-01-01
  • 2021-06-13
  • 1970-01-01
相关资源
最近更新 更多