react-native - 从 github 打开 react-native 项目时构建失败
问题描述
我已经从 github 下载了 react-native 项目。链接在这里
我做了 npm 安装。到目前为止一切都很好。当我运行 react-native run-ios 时,出现以下错误
命令行中的用户默认值:IDEDerivedDataPathOverride = /Users/sriram/Desktop/FirebaseAuth-master/ios/build/Auth
注意:使用新的构建系统注意:规划构建注意:构建构建描述构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig :无法打开文件(在项目“Auth”中的目标“Auth”中)(在目标“Auth”中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中") (在目标“身份验证”中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中") (在目标“身份验证”中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中") (在目标“身份验证”中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中") (在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中") (在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中") (在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中") (在目标 'AuthTests' 中)
** 构建失败 **
后来我尝试cd ios && pod install
了之后我尝试了react-native run-ios
以下错误:以下构建命令失败:CompileC /Users/sriram/Desktop/Auth/ios/build/Auth/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion .build/Objects-normal/x86_64/DoubleConversion-dummy.o Target\ Support\ Files/DoubleConversion/DoubleConversion-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1次失败)
这是我的 PodFile:
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'Auth' do
# Pods for Auth
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
target 'AuthTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'Auth-tvOS' do
# Pods for Auth-tvOS
target 'Auth-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
解决方案
推荐阅读
- excel - 因此,当使用动态命名范围时,显然 INDIRECT 函数不适用于 Excel 中的数据验证
- angular - 基于垫选项卡单击垫展开折叠应显示
- amazon-ec2 - 无法从 RhinoSecurityLabs 克隆 CloudGoat
- c - 带有一个参数的 zsh export 似乎并没有真正创建环境变量
- codeigniter - 如何将 Mailgun 变量添加到模板中?
- python-3.x - 在 pygame 中发现了一个奇怪的 hitbox 错误。如果玩家在我的游戏中死亡,hitbox 仍然存在,这会产生一些问题
- swiftui - 如何在 SwiftUI 中的视图中调用方法
- excel - excel公式本地化
- javascript - 如何在将 .ticks() 应用于我的 x 刻度时解决 d3 js 中的此错误
- linux - 如何帮助可执行文件找到共享库?