Issue
I downloaded macOS using QEMU-system. You can find the full tutorial here::https://www.youtube.com/watch?v=p-pJ3qCse20 https://github.com/foxlet/macOS-Simple-KVM
Here are the problems I faced while downloading macOS on Ubuntu and running Xcode on the macOS
Solution
Problem 1: qemu-system-x86_64: failed to initialize KVM: No such file or directory
when running ./basic.sh
in terminal
Solution: enable virtualization
from bios
or you can run sudo chown [username] /dev/kvm
in terminal
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 <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`
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.
Answered By - Nisrine Bou Ghannam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.