React native React Native Pod Error-[!]无效的'Podfile'文件:767:位于';的意外标记';|相关问题#448

React native React Native Pod Error-[!]无效的'Podfile'文件:767:位于';的意外标记';|相关问题#448,react-native,cocoapods,react-native-ios,react-native-cli,React Native,Cocoapods,React Native Ios,React Native Cli,我已经试过: 环境 System: OS: macOS 10.15 CPU: (4) x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz Memory: 30.63 MB / 4.00 GB Shell: 3.2.57 - /bin/sh Binaries: Node: 10.15.3 - /usr/local/bin/node Yarn: 1.19.2 - /usr/local/bin/yarn npm: 6.13.1 - /usr/local/bin/n

我已经试过:

环境

System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
Memory: 30.63 MB / 4.00 GB
Shell: 3.2.57 - /bin/sh
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.19.2 - /usr/local/bin/yarn
npm: 6.13.1 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
说明

➜ ios git:(硕士)✗ pod安装——冗长
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/Ruby/2.6.0/universal-darwin19/rbconfig.rb:229:警告:不安全的世界可写目录/Users/jack/Desktop/root-in-PATH,模式040777
[!]无效的Podfile文件:767:位于“”的意外令牌。
from/Users/jack/Desktop/root/outonox/quibik/ios/Podfile:45
使用本机模块!
结束
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:301:in-rescue in block in from_Ruby'/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cococoapods-core/podfile.rb:295:in block in from_Ruby'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in instance_eval'/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in initialize'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in new'/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in from_Ruby'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:259:in from_file'/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.8.4/lib/cocoapods/config.rb:200:in podfile'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.8.4/lib/cocoapods/command.rb:150:验证podfile中是否存在/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:46:in run'
/Library/Ruby/Gems/2.6.0/Gems/claide-1.0.3/lib/claide/command.rb:334:in run'/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in run'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.8.4/bin/pod:55:in'/usr/local/bin/pod:23:in load'
/usr/local/bin/pod:23:in`
" 可复制演示

不确定为什么会发生这种情况,但这是在安装“@react native firebase”此软件包后启动的

POD文件

平台:ios,“9.0”需要 “../node_modules/@react native community/cli平台ios/native_modules”

为quibik设定目标“quibik”do#吊舱

pod'RNFBAuth',:路径=> “./node_modules/@react native firebase/auth”pod'RNFBApp',:路径 =>“./node_modules/@react native firebase/app”

pod'FBLazyVector',:路径=> “./node_modules/react native/Libraries/FBLazyVector”pod 'FBReactNativeSpec',:path=> “./node_模块/react native/Libraries/FBReactNativeSpec”pod “RCTRequired',:path=> “./node_模块/react native/Libraries/rctrerequired”pod “RCTTypeSafety”,路径=> “./节点\模块/反应本机/库/类型安全”pod“反应”, :path=>'../node_modules/react native/'pod'react Core',:path=> “../node_modules/react native/'pod'react CoreModules',:path=> “../node_模块/react-native/react/CoreModules”吊舱 “React Core/DevSupport',:path=>”../node_modules/React native/”
pod“反应RCTActionSheet”,路径=> “../node_modules/react native/Libraries/ActionSheetIOS”pod “反应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 “反应RCT网络”,路径=> “../node_modules/react native/Libraries/Network”pod “反应RCT设置”,:路径=> “../node_modules/react native/Libraries/Settings”pod “React RCTText',:path=> “../node_modules/react native/Libraries/Text”pod “反应RCTVibration',:路径=> “../node_模块/反应本机/库/振动”吊舱 “React Core/RCTWebSocket',:path=>”../node_modules/React native/'

pod“React cxxreact”,路径=> “../node_modules/react native/ReactCommon/cxreact'pod'react jsi”, :path=>“../node_modules/react native/react common/jsi”pod “React jsiexecutor',:path=> “../node_modules/react native/ReactCommon/jsiexecutor”pod 'React jsinspector',:path=> “../node_modules/react native/ReactCommon/jsinspector”pod “ReactCommon/jscallinvoker”,路径=> “./node_模块/react本机/ReactCommon”吊舱 “通用/涡轮模块/核心”,路径=> “./node_modules/react native/react common“pod'Yoga',:path=> “../node_modules/react native/react common/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 '愚蠢',:podspec=> “../node_modules/react native/third party podspecs/Folly.podspec”

pod“反应本机启动屏幕”,路径=> “../node_模块/反应本机启动屏幕”

目标“测试”是什么 继承!:搜索路径 #测试端吊舱

使用本机模块!结束

为quibik电视运营商设立目标“quibik电视运营商”do#吊舱

目标是“quibik tvOSTests” 继承!:搜索路径 #测试端吊舱

结束


您的项目包含由Thread以外的工具生成的锁定文件。建议不要混合使用包管理器,以避免由不同步的锁文件导致的解决方案不一致。要清除此警告,请删除package-lock.json

rm -rf package-lock.json
cd ios
pod install

你能把你的
Podfile
贴在这里吗?谢谢你的及时回复。。。我在Github中添加了pod文件。看看:。也许你的解决方案已经出现了。我被这个错误困扰了大约2天,它是在安装rvm后开始的,所以至少在我的情况下,ruby版本似乎有问题。我遇到了版本2.6.3和默认mac版本2.3.7的问题。清洁rvm installat后,问题停止
rm -rf package-lock.json
cd ios
pod install