Ios 反应本机,无法运行项目。错误:';GoogleUtilities/GULLoggerLevel.h';找不到文件
首先,我不明白为什么人们会使用这种技术,对我来说,本地应用程序更好),所以我有一个老项目,我需要运行这个项目。简单的任务,但我已经花了3天,仍然没有成功。所以,请给我一些建议,我很难过 所以我的错误是: 未找到“GoogleUtilities/GULLoggerLevel.h”文件 我的pod文件:Ios 反应本机,无法运行项目。错误:';GoogleUtilities/GULLoggerLevel.h';找不到文件,ios,react-native,Ios,React Native,首先,我不明白为什么人们会使用这种技术,对我来说,本地应用程序更好),所以我有一个老项目,我需要运行这个项目。简单的任务,但我已经花了3天,仍然没有成功。所以,请给我一些建议,我很难过 所以我的错误是: 未找到“GoogleUtilities/GULLoggerLevel.h”文件 我的pod文件: # Uncomment this line to define a global platform for your project require_relative '../node_modu
# Uncomment this line to define a global platform for your project
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'SetPoint' do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
rnPrefix = "../node_modules/react-native"
# Install additional dependencies
pod 'Firebase/Analytics'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Firebase/Performance'
pod 'Firebase/Storage'
pod 'FirebaseCoreDiagnostics'
pod 'FBLazyVector', :path => "#{rnPrefix}/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "#{rnPrefix}/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "#{rnPrefix}/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "#{rnPrefix}/Libraries/TypeSafety"
pod 'React', :path => "#{rnPrefix}/"
pod 'React-Core', :path => "#{rnPrefix}/"
pod 'React-CoreModules', :path => "#{rnPrefix}/React/CoreModules"
pod 'React-RCTActionSheet', :path => "#{rnPrefix}/Libraries/ActionSheetIOS"
pod 'React-RCTAnimation', :path => "#{rnPrefix}/Libraries/NativeAnimation"
pod 'React-RCTBlob', :path => "#{rnPrefix}/Libraries/Blob"
pod 'React-RCTImage', :path => "#{rnPrefix}/Libraries/Image"
pod 'React-RCTLinking', :path => "#{rnPrefix}/Libraries/LinkingIOS"
pod 'React-RCTNetwork', :path => "#{rnPrefix}/Libraries/Network"
pod 'React-RCTSettings', :path => "#{rnPrefix}/Libraries/Settings"
pod 'React-RCTText', :path => "#{rnPrefix}/Libraries/Text"
pod 'React-RCTVibration', :path => "#{rnPrefix}/Libraries/Vibration"
pod 'React-Core/RCTWebSocket', :path => "#{rnPrefix}/"
pod 'React-Core/DevSupport', :path => "#{rnPrefix}/"
pod 'React-cxxreact', :path => "#{rnPrefix}/ReactCommon/cxxreact"
pod 'React-jsi', :path => "#{rnPrefix}/ReactCommon/jsi"
pod 'React-jsiexecutor', :path => "#{rnPrefix}/ReactCommon/jsiexecutor"
pod 'React-jsinspector', :path => "#{rnPrefix}/ReactCommon/jsinspector"
pod 'Yoga', :path => "#{rnPrefix}/ReactCommon/yoga"
pod 'DoubleConversion', :podspec => "#{rnPrefix}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rnPrefix}/third-party-podspecs/glog.podspec"
pod 'Folly', :podspec => "#{rnPrefix}/third-party-podspecs/Folly.podspec"
target 'SetPointTests' do
# Pods for testing
end
end
我提出:
rm -rf ios/Pods && rm -rf ios/build && cd ios && pod install && cd ../
及
这对我没有帮助
尝试运行项目:
react-native run-ios
UPD
桥接头文件没有帮助,仍然存在相同的问题
您应该在项目中添加桥接标题
您可以手动创建它,它是一个正常的头文件,应该命名为
我遇到了相同的问题,通过删除firebase依赖项解决了这个问题
# Install additional dependencies
pod 'Firebase/Analytics'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Firebase/Performance'
pod 'Firebase/Storage'
pod 'FirebaseCoreDiagnostics'
在那次跑步之后
pod install
您是否创建了桥接头文件?@LucaDavanzo-thks供评论。什么意思?标题搜索路径?我必须链接一个屏幕截图,所以我创建了一个答案,看看你是否打开了Project.xcworkspace文件?一定要做到这一点。另外,您是否尝试过从xcode运行?它有效吗?@LucaDavanzo是的,我打开了Project.xcworkspace。不,我从xCode清除并构建项目。我尝试从webStorm控制台在我的项目中运行project
react native run ios
pod install