Проблемы, возникающие при загрузке MACOS VMWARE в Ubuntu и запуске Xcode - PullRequest
2 голосов
/ 02 августа 2020

Я скачал macOS с помощью QEMU-системы. Вы можете найти полное руководство здесь: https://www.youtube.com/watch?v=p-pJ3qCse20 https://github.com/foxlet/macOS-Simple-KVM

Вот проблемы, с которыми я столкнулся при загрузке macOS на Ubuntu и запуске Xcode на macOS

1 Ответ

2 голосов
/ 02 августа 2020

Проблема 1: 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

Note that after installing Xcode, you should install bundle, ruby, cocoapods

Problem 2: Could not find proper version of cocoapods (1.9.1) in any of the sources

Solution the cocoapods you're using are not compatable, uninstall cocoapods and reinstall again with cocoapods version = 1.9.1

Problem 3: Getting errors while running 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.

I tried running pod repo update or with pod install --repo-update but I also got this error

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 [...] -- [...]'
[!] 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`

running pod repo update --verbose also didnt work and gave this error

/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
  fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
  HEAD

Solution: open vi Gemfile.lock and add git configuration to the file

now running bundle exec pod install will work fine

Problem 4: CocoaPods could not find compatible versions for pod "Firebase/Performance"

Solution: run pod install --repo-update and ran again bundle exec pod install the error is resolved

Problem 5: simulator wasn't running due to multiple commands produce after running /build/products/debug-iphonesimulator/umbrella.framework/umbrella

Solution: go to File >Project/Workspace settings then Change the build system to Legacy Build system.

введите описание изображения здесь

...