无效的Podfile文件:套接字错误不支持该操作

时间:2019-11-25 21:26:53

标签: ios flutter

尝试在iphone 11 pro max-13.2.2模拟器上运行时出现此错误。

  

以调试模式在iPhone 11 Pro Max上启动lib / main.dart ...

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)。

     从/ Volumes / VMware共享文件夹/ C / app / ios / Podfile中的

#:51#   -------------------------------------------#symlink = File.join( '.symlinks','flutter')

     

> File.symlink(File.dirname(p [:path]),symlink)#pod'Flutter',:path => File.join(symlink,File.basename(p [:path]))#< / h2>      

/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 阻止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 初始化'   /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'   /库/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 运行'   /库/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 运行'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in   <top (required)>' /usr/local/bin/pod:23:in加载”   / usr / local / bin / pod:23:in''

     

运行pod install时出错在iPhone 11 Pro上启动应用程序时出错   最多


pod --version
1.8.4

1 个答案:

答案 0 :(得分:2)

当我的文件存储在Windows NTFS中并且尝试从MAC访问它时,我遇到了类似的错误,为解决该问题,我将该文件夹从Windows NTFS分区移至了我的桌面。

当MAC无法在不受支持的分区上创建符号链接文件时,出现symlink错误。