ios - React Native iOS 构建失败无法解析构建文件

标签 ios node.js xcode react-native npm

我正在创建一个 react native 应用程序,在其中我正在遵循教程,并且该应用程序将不再构建。自从我添加 Redux(我在应用程序完美运行的第二天就这样做了),该应用程序已经到处都是了。我恢复了代码,重新安装了 Node 模块。我什至创建了一个新项目并引入了代码并运行了 npm install,但仍然没有任何效果。我什至通过 xcode 清除了构建文件,但这也没有真正帮助。

我得到的错误是:

info Found Xcode project "rncourse_new.xcodeproj"
info Building (using "xcodebuild -project rncourse_new.xcodeproj -configuration Debug -scheme rncourse_new -destination id=E9C3D218-C3D5-4D9F-8931-0900B1C
DD86B -derivedDataPath build/rncourse_new")
.........
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app w
ith Xcode.app, by opening rncourse_new.xcodeproj. Run CLI with --verbose flag for more details.
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/myusername/Desktop/SE_Things/Udemy/react-native/rncourse_new/ios/build/rncourse_new

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Unable to resolve build file: XCBCore.BuildFile (missingTargetProductReference("3b72bb1ebc7660513872fe9a221d33fb29fe2a87b7c65fea7a8f025b04a3b7ff"))
 (in target 'rncourse_new')


** BUILD FAILED **


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rn-course@0.1.0 ios: `react-native run-ios`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the rn-course@0.1.0 ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myusername/.npm/_logs/2019-08-07T23_37_29_541Z-debug.log

不知道还有什么地方可以用这个,我什至问了教程的所有者,我在等他再次回复我(他最初告诉我重新创建项目并带来他的代码,我做了,但没有成功)。

这是我的 github 存储库的链接: https://github.com/ThatDevOpNeal/react-native 需要做的就是 npm install (不要运行 npmauditfix)和 npm run iosreact-native运行 ios

最佳答案

我刚收到这个错误信息,我尝试删除 ios/build 目录并重建,但它仍然有错误,所以我必须创建一个新项目,复制我的旧代码。并且它有效。

我认为当我删除node_modules时,CocoaPods模块不会安装。正是缺少此软件包导致的。

顺便说一句,我是中国人,我的英语不是很会。希望理解。

关于ios - React Native iOS 构建失败无法解析构建文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57403536/

相关文章:

node.js - 我无法让 Electron 在 Electron 中运行以在 WSL2 Ubuntu 20.04 中运行

ios - iPad 3 设备因 renderInContext 崩溃

ios - 为什么不在 NSUserDefaults 中存储密码是显而易见的?

ios - 如何在 ios 10 中控制 CallKit 扬声器按钮

mysql - 带有 Sequelize 的 Node js。无法插入表格

Node.js 堆快照和 Google Chrome 快照查看器

xcode - 使用 by.text 进行排毒子串匹配

ios - Xcode 与 iPhone 4 开发 : The executable was signed with invalid entitlements.

ios - 如何像 WhatsApp 一样实现 APNS?

ios - locationd 守护进程不断获取 jetsammed ios 8.1