尝试在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:ininstance_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:innew' /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:infrom_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:inverify_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:inrun' /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
答案 0 :(得分:2)
当我的文件存储在Windows NTFS中并且尝试从MAC访问它时,我遇到了类似的错误,为解决该问题,我将该文件夹从Windows NTFS分区移至了我的桌面。
当MAC无法在不受支持的分区上创建符号链接文件时,出现symlink错误。