Related Issue #448

问题描述 投票:0回答:1

I have already tried : #448

Environment

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

Description

enter image description here

➜ ios git:(master) ✗ pod install --verbose
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229: warning: Insecure world writable dir /Users/jack/Desktop/root in PATH, mode 040777

[!] Invalid Podfile file: 767: unexpected token at ''.

from /Users/jack/Desktop/root/outonox/quibik/ios/Podfile:45
use_native_modules!
end

/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/cocoapods-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:in verify_podfile_exists!' /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 <top (required)>' /usr/local/bin/pod:23:in load'
/usr/local/bin/pod:23:in `

'Reproducible Demo

Not sure why this is happing, but this is started after installing "@react-native-firebase" this package

POD FILE

platform :ios, '9.0' require_relative '.. 767: 意外的标记在''.node_modules@react-native-communitycli-platform-iosnative_modules'

target 'quibik' do # Pods for quibik.

pod 'RNFBAuth', :path => ".node_modules@react-native-firebaseauth" pod 'RNFBApp', :path => ".node_modules@react-native-firebaseapp"

pod 'FBLazyVector', :path => ".node_modulesreact-nativeLibrariesFBLazyVector" pod 'FBReactNativeSpec', :path => ".node_modulesreact-nativeLibrariesFBReactNativeSpec" pod 'RCTRequired', :path => ". .node_modulesreact-nativeLibrariesRCTRequired" pod 'RCTTypeSafety', :path => ".node_modulesreact-nativeLibrariesTypeSafety" pod 'React', :path => '. node_modulesreact-native' pod 'React-Core', :path => '.node_modulesreact-native' pod 'React-CoreModules', :path => '.node_modulesreact-nativeReactCoreModules' pod 'React-CoreDevSupport', :path => '. .node_modulesreact-native' pod 'React-RCTActionSheet', :path => '.node_modulesreact-nativeLibrariesActionSheetIOS' pod 'React-RCTAnimation', :path => '. .node_modulesreact-nativeLibrariesNativeAnimation' pod 'React-RCTBlob', :path => '.node_modulesreact-nativeLibrariesBlob' pod 'React-RCTImage', :path => '. node_modulesreact-nativeLibrariesImage' pod 'React-RCTLinking', :path => '...node_modulesreact-nativeLibrariesLinkingIOS' pod 'React-RCTNetwork', :path => '...。 node_modulesreact-nativeLibrariesNetwork' pod 'React-RCTSettings', :path => '...node_modulesreact-nativeLibrariesSettings' pod 'React-RCTText', :path => '...。 node_modulesreact-nativeLibrariesText' pod 'React-RCTVibration', :path => '.node_modulesreact-nativeLibrariesVibration' pod 'React-CoreRCTWebSocket', :path => '.node_modulesreact-native'。

pod 'React-cxxreact', :path =>'.node_modulesreact-nativeReactCommoncxxreact' pod 'React-jsi', :path =>'. node_modulesreact-nativeReactCommonjsi' pod 'React-jsiexecutor', :path => '.node_modulesreact-nativeReactCommonjsiexecutor' pod 'React-jsinspector', :path => '. '.node_modulesreact-nativeReactCommonjsinspector' pod 'ReactCommonjscallinvoker', :path => ".node_modulesreact-nativeReactCommon" pod 'ReactCommonturbomodulecore', :path => ".node_modulesreact-nativeReactCommon" pod 'Yoga', :path => '.node_modulesreact-nativeReactCommonyoga'.

pod 'DoubleConversion', :podspec => '.node_modulesreact-nativethird-party-podspecsDoubleConversion.podspec' pod 'glog', :podspec => '.node_modulesreact-nativethird-party-podspecsglog.podspec' pod 'Folly', :podspec => '.node_modulesreact-nativethird-party-podspecsFolly.podspec'。

pod 'react-native-splash-screen', :path => '.node_modulesreact-native-splash-screen'。

target 'quibikTests' do 继承! :search_paths # 测试用的花苞 end

use_native_modules!

target 'quibik-tvOS' do # Pods for quibik-tvOS

target 'quibik-tvOSTests' do 继承! :search_paths # 测试用的花苞 end

结束

react-native cocoapods react-native-ios react-native-cli
1个回答
2
投票

您的项目包含由Yarn以外的工具生成的锁文件。建议不要混合使用包管理器,以避免由不同步的锁文件引起的分辨率不一致。要清除这个警告,请删除package-lock.json。

rm -rf package-lock.json
cd ios
pod install
© www.soinside.com 2019 - 2024. All rights reserved.