我已经从github下载了react-native项目。链接是here
我安装了npm。到目前为止一切正常。当我运行react-native run-ios时,我得到以下错误
来自命令行的用户默认值:IDE派生数据路径覆盖= /用户/sriram/桌面/Firebase身份验证主机/ios/内部版本/身份验证
注意:使用新的构建系统注意:规划构建注解:构造生成说明生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”的目标“Auth”中)(在目标“Auth '”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”的目标“Auth”中)(在目标“Auth '”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”的目标“Auth”中)(在目标“Auth '”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”的目标“Auth”中)(在目标“Auth '”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”的目标“AuthTests”中)(在目标“AuthTests”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”的目标“AuthTests”中)(在目标“AuthTests”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”的目标“AuthTests”中)(在目标“AuthTests”中)
生成系统信息错误:/用户/sriram/桌面/FirebaseAuth-master/ios/Pod/目标支持文件/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”的目标“AuthTests”中)(在目标“AuthTests”中)
构建失败
后来我尝试了cd ios && pod install
之后,我尝试了react-native run-ios
,我得到以下错误:以下生成命令失败:编译C/用户/sriram/桌面/身份验证/ios/构建/身份验证/构建/中间体.noindex/Pod.构建/调试-iPhone模拟器/双转换.构建/对象-正常/x86_64/双转换-虚拟.o目标\支持\文件/双转换/双转换-虚拟.m正常x86_64目标-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
2条答案
按热度按时间gv8xihay1#
请执行下列步骤:
1.打开
Auth.xcworkspace
。1.在左边,你会发现
Pods
文件夹。删除它。1.现在在终端,进入你的项目目录,cd进入ios,然后做
rm -rf Pods Podfile.lock
。1.执行
pod install
。pw9qyyiw2#
这个解决方案对我很有效!!!删除IOS文件夹中的Pods文件夹。然后转到主项目目录并运行命令:
将重新创建pod文件夹。