macOS Big Sur 安装到虚拟机

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了macOS Big Sur 安装到虚拟机相关的知识,希望对你有一定的参考价值。

参考技术A 制作u盘启动
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/u盘 --applicationpath /Applications/Install\ macOS\ Big\ Sur.app/
WARNING: "--applicationpath" is deprecated in macOS 10.14 and greater. Please remove it from your invocation.
Ready to start.
To continue we need to erase the volume at /Volumes/u盘.
If you wish to continue type (Y) then press return: Y
Erasing disk: 0%... 10%... 20%... 30%... 100%
Copying to disk: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%...
100%
Making disk bootable...
Install media now available at "/Volumes/Install macOS Big Sur"

使用是vm16版本,默认不支持mac os
使用unlocker工具解锁,使vm支持apple mac os
Unlocker 3.0.3
https://github.com/paolo-projects/unlocker/releases

Windows: download, extract and start win-install.cmd as administrator

配置连接U盘后,会从U盘启动安装

大概30分钟到1个小时后安装完成

在 macOS Big Sur 上安装可可豆荚时出错

【中文标题】在 macOS Big Sur 上安装可可豆荚时出错【英文标题】:Error installing cocoa pods on macOS Big Sur 【发布时间】:2021-03-24 15:43:27 【问题描述】:

我正在我的机器上设置颤振。但是,当我尝试使用安装 cocoapods 时

sudo gem install cocoapods

我收到此错误:

Building native extensions. This could take a while...
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/ext/ffi_c
/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 ./siteconf20210324-1667-1wwdce5.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi... yes
checking for ffi_prep_closure_loc() in -lffi... yes
checking for ffi_prep_cif_var()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
creating extconf.h
creating Makefile

current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/ext/ffi_c
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/ext/ffi_c
make "DESTDIR="
make: *** No rule to make target `"/Volumes/macOS', needed by `AbstractMemory.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.0/gem_make.out

这是由于分区名称中包含“空格”这一事实引起的吗?我安装操作系统的驱动器名称是“macOS Big Sur”,而 Flutter 位于另一个分区“macOS Storage”

有人可以帮忙吗?

【问题讨论】:

我在这里使用@Alsh 编译器修复了这个问题***.com/questions/63650689/… 【参考方案1】:

这将通过以下方式解决:

sudo gem install -n /usr/local/bin cocoapods -v 1.8.4

如果您需要安装CocoaPods 1.10.0 +,您可以使用HomeBrew 并在命令行中使用以下命令:

brew install cocoapods

【讨论】:

sudo gem install -n /usr/local/bin cocoapods -v 1.8.4 为我工作。不再需要“brew install cocopods”。【参考方案2】:

我在 BigSur 下遇到了同样的错误, 当我尝试以传统方式安装可可时,我发现了一件奇怪的事情。 https://cocoapods.org 地址给出“内部服务器错误”。这意味着可可服务器出现问题。所以我打算用 home-brew 安装新版本的可可。

我使用上面的代码将 home-brew 安装到 Mac。

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

然后,我使用下面的命令卸载了当前的旧版本 cocoapods

sudo gem uninstall cocoapods 

然后,我使用自制软件安装了新版本的可可豆荚,

brew install cocoapods  

然后,我使用下面的命令来修复不一致的地方。

brew link --overwrite cocoapods

还有胜利:)

【讨论】:

以上是关于macOS Big Sur 安装到虚拟机的主要内容,如果未能解决你的问题,请参考以下文章

VMware16 如何安装 Mac OS Big Sur 11.0.1虚拟机

macOS Big Sur 11.7.5 (20G1225) Boot ISO 原版可引导镜像

Mac M1 芯片机,Macos Big Sur 版本 11.5.1 与 eclipse 应用程序有问题。重启机器后打不开

mac Big Sur 芯片m1上安装ps,窗口里没有扩展,用不了插件了怎么办?

黑苹果原版系统镜像下载,MacOS如何安装到虚拟机?(附软件+教程)

虚拟机安装的macos能升级吗 虚拟机安装的macos升级的方法