Xcode Flatter ios构建无法在MacOS Big Sur 11.0测试版上运行

Xcode Flatter ios构建无法在MacOS Big Sur 11.0测试版上运行,xcode,flutter,macos-big-sur,flutter-ios,Xcode,Flutter,Macos Big Sur,Flutter Ios,在MacOS BigSur测试版上,我试图生成iOS的版本,但这总是给我以下错误 我试着重新安装颤振,坐在测试版、开发版或主版上,使用Xcode测试版,但没有任何效果 如果有人遇到同样的问题,请帮助我解决 让我们尝试安装旧版本的CoCoapod 卸载cocoapods 安装旧版本cocoapods(例如1.8.0)sudo gem安装cocoapods--version'=1.8.0'-n/usr/local/bin 扑通 酒吧 运行您的项目(iOS模拟器) 我使用此过程解决了错误。让我们尝试

在MacOS BigSur测试版上,我试图生成iOS的版本,但这总是给我以下错误

我试着重新安装颤振,坐在测试版、开发版或主版上,使用Xcode测试版,但没有任何效果

如果有人遇到同样的问题,请帮助我解决


让我们尝试安装旧版本的CoCoapod

  • 卸载cocoapods
  • 安装旧版本cocoapods(例如1.8.0)
    sudo gem安装cocoapods--version'=1.8.0'-n/usr/local/bin
  • 扑通
  • 酒吧
  • 运行您的项目(iOS模拟器)

  • 我使用此过程解决了错误。

    让我们尝试安装旧版本的cocoapods

  • 卸载cocoapods
  • 安装旧版本cocoapods(例如1.8.0)
    sudo gem安装cocoapods--version'=1.8.0'-n/usr/local/bin
  • 扑通
  • 酒吧
  • 运行您的项目(iOS模拟器)

  • 我使用此程序解决了错误。

    macOs Big-Sur的颤振是否存在任何问题或更改?macOs Big-Sur的颤振是否存在任何问题或更改?
    ERROR:  Error installing cocoapods:
            ERROR: Failed to build gem native extension.
    
        current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200926-66152-11vu3z5.rb extconf.rb
    creating Makefile
    
    current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
    make "DESTDIR=" clean
    
    current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
    make "DESTDIR="
    compiling generator.c
    In file included from generator.c:1:
    In file included from ./../fbuffer/fbuffer.h:5:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby.h:33:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
    #include "ruby/config.h"
             ^~~~~~~~~~~~~~~
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: note: did not find header 'config.h' in framework 'ruby' (loaded from '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks')
    1 error generated.
    make: *** [generator.o] Error 1
    
    make failed, exit code 2
    
    Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/json-2.3.1 for inspection.
    Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/json-2.3.1/gem_make.out