gpt4 book ai didi

xcode - 在 Ubuntu 上下载 MACOS VMWARE 并运行 Xcode 时遇到的问题

转载 作者:行者123 更新时间:2023-12-04 09:15:54 24 4
gpt4 key购买 nike

我使用 QEMU 系统下载了 macOS。你可以在这里找到完整的教程::https://www.youtube.com/watch?v=p-pJ3qCse20
https://github.com/foxlet/macOS-Simple-KVM
以下是我在 Ubuntu 上下载 macOS 并在 macOS 上运行 Xcode 时遇到的问题

最佳答案

问题一: qemu-system-x86_64: failed to initialize KVM: No such file or directory运行时./basic.sh在终端
解决方案: enable virtualization来自 bios或者你可以运行 sudo chown [username] /dev/kvm在终端
Enabling Virtualization from bios
注意,安装Xcode后,应该安装bundle , ruby , cocoapods 问题2: 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.
我尝试运行 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`
运行 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
解决方案:打开 vi Gemfile.lock
并将 git 配置添加到文件中
正在运行 bundle exec pod install会正常工作
问题4: CocoaPods could not find compatible versions for pod "Firebase/Performance" 解决方案:运行 pod install --repo-update又跑了 bundle exec pod install错误已解决
问题5:由于运行/build/products/debug-iphonesimulator/umbrella.framework/umbrella 后产生的多个命令,模拟器没有运行
解决方案:转到文件>项目/工作区设置
然后将构建系统更改为旧版构建系统。
enter image description here

关于xcode - 在 Ubuntu 上下载 MACOS VMWARE 并运行 Xcode 时遇到的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63218650/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com