我已经从 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”中) ")(在目标 '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”中) ")(在目标 '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
Run Code Online (Sandbox Code Playgroud)
小智 5
按着这些次序:
Auth.xcworkspace。现在在终端中,进入您的项目目录,cd 进入 ios 并执行rm -rf Pods Podfile.lock.
pod install。| 归档时间: |
|
| 查看次数: |
4370 次 |
| 最近记录: |