无效的Podfile文件:套接字错误不支持该操作 [英] Invalid `Podfile` file: Operation not supported on socket error
问题描述
尝试在iphone 11 pro max-13.2.2模拟器上运行时出现此错误.
I get this error when trying to run on iphone 11 pro max - 13.2.2 simulator.
以调试模式在iPhone 11 Pro Max上启动lib/main.dart ...
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running pod install...CocoaPods'
output:
↳ [!] Invalid `Podfile` file: Operation not supported on socket @ rb_file_s_symlink -
(/用户/x/flutter/bin/cache/artifacts/engine、.symlinks/flutter).
(/Users/x/flutter/bin/cache/artifacts/engine, .symlinks/flutter).
#:51#-------------------------------------------#symlink = File.join('.symlinks','flutter')
# from /Volumes/VMware Shared Folders/C/app/ios/Podfile:51 # ------------------------------------------- # symlink = File.join('.symlinks', 'flutter')
/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:301:in在from_ruby中的块中营救'/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:295:in
阻止from_ruby'/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in instance_eval'/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in
初始化"/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in新"/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in
from_ruby'/库/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:259:in from_file'/库/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/config.rb:200:in
podfile"/库/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:150:in verify_podfile_exists!"/库/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:46:in
运行"/库/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run'/库/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(必填)>'/usr/local/bin/pod:23:in
load'/usr/local/bin/pod:23:in''
/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 `'
运行pod install时出错在iPhone 11 Pro上启动应用程序时出错最多
Error running pod install Error launching application on iPhone 11 Pro Max.
pod --version
1.8.4
推荐答案
当我的文件存储在Windows NTFS中并且试图从MAC访问它时,我也遇到了类似的错误,以解决我将文件夹从Windows NTFS中移出的问题分区到我的桌面.
I had similar error when my files was stored in Windows NTFS and I was trying to access it from MAC, to resolve the issue I moved the folder from Windows NTFS partition to my Desktop.
当MAC无法在不受支持的分区上创建符号链接文件时,出现symlink错误.
The symlink error appears when your MAC is unable to create symbolic link file on unsupported partition.
这篇关于无效的Podfile文件:套接字错误不支持该操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!