在 Ubuntu 和 运行 Xcode 上下载 MACOS VMWARE 时遇到的问题
Problems Faced while downloading MACOS VMWARE on Ubuntu and running Xcode
我使用 QEMU 系统下载了 macOS。您可以在这里找到完整的教程::https://www.youtube.com/watch?v=p-pJ3qCse20
https://github.com/foxlet/macOS-Simple-KVM
以下是我在 Ubuntu 和 运行 Xcode macOS
上下载 macOS 时遇到的问题
问题1: qemu-system-x86_64: failed to initialize KVM: No such file or directory
when 运行ning ./basic.sh
in terminal
解决方案: enable virtualization
from bios
或者你可以 运行 sudo chown [username] /dev/kvm
in terminal
注意,安装Xcode后,还要安装bundle
、ruby
、cocoapods
问题二:Could not find proper version of cocoapods (1.9.1) in any of the sources
解决方法您使用的cocoapods不兼容,卸载cocoapods并重新安装cocoapods version = 1.9.1
问题 3: 在 运行 宁 pod install
时出现错误
[!] Unable to find a specification for `PureLayout (= 3.1.5)`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
我试过 运行ning pod repo update
或 pod install --repo-update
但我也遇到了这个错误
Updating local specs repositories
$ /.cocoapods/repos/cocoapods fetch origin --progress
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 27 (delta 18), reused 0 (delta 0), pack-reused 0
From https://github.com/cocoapods/specs
5c7f45f07ad8..bed8af45c97e master -> origin/master
$ /usr/bin/git -C /Users/nisrine/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[!] CocoaPods was not able to update the `cocoapods` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
运行ning pod repo update --verbose
也没有工作并给出了这个错误
/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
解决方法:打开viGemfile.lock
并在文件
中添加git配置
现在 运行ning bundle exec pod install
可以正常工作
问题四:CocoaPods could not find compatible versions for pod "Firebase/Performance"
解决方法: 运行 pod install --repo-update
再运行 bundle exec pod install
错误解决
问题 5: 模拟器未 运行ning,因为在 运行ning /build/products/debug-iphonesimulator/umbrella.[=83= 之后产生了多个命令]
解决方法:进入文件>Project/Workspace设置
然后将构建系统更改为 Legacy 构建系统。
我使用 QEMU 系统下载了 macOS。您可以在这里找到完整的教程::https://www.youtube.com/watch?v=p-pJ3qCse20 https://github.com/foxlet/macOS-Simple-KVM
以下是我在 Ubuntu 和 运行 Xcode macOS
上下载 macOS 时遇到的问题问题1: qemu-system-x86_64: failed to initialize KVM: No such file or directory
when 运行ning ./basic.sh
in terminal
解决方案: enable virtualization
from bios
或者你可以 运行 sudo chown [username] /dev/kvm
in terminal
注意,安装Xcode后,还要安装bundle
、ruby
、cocoapods
问题二:Could not find proper version of cocoapods (1.9.1) in any of the sources
解决方法您使用的cocoapods不兼容,卸载cocoapods并重新安装cocoapods version = 1.9.1
问题 3: 在 运行 宁 pod install
[!] Unable to find a specification for `PureLayout (= 3.1.5)`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
我试过 运行ning pod repo update
或 pod install --repo-update
但我也遇到了这个错误
Updating local specs repositories
$ /.cocoapods/repos/cocoapods fetch origin --progress
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 27 (delta 18), reused 0 (delta 0), pack-reused 0
From https://github.com/cocoapods/specs
5c7f45f07ad8..bed8af45c97e master -> origin/master
$ /usr/bin/git -C /Users/nisrine/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[!] CocoaPods was not able to update the `cocoapods` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
运行ning pod repo update --verbose
也没有工作并给出了这个错误
/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
解决方法:打开viGemfile.lock 并在文件
中添加git配置现在 运行ning bundle exec pod install
可以正常工作
问题四:CocoaPods could not find compatible versions for pod "Firebase/Performance"
解决方法: 运行 pod install --repo-update
再运行 bundle exec pod install
错误解决
问题 5: 模拟器未 运行ning,因为在 运行ning /build/products/debug-iphonesimulator/umbrella.[=83= 之后产生了多个命令]
解决方法:进入文件>Project/Workspace设置 然后将构建系统更改为 Legacy 构建系统。