Schlaubischlump / LocationSimulator

MacOS application to spoof / fake / mock your iOS / iPadOS or iPhoneSimulator device location. WatchOS and TvOS are partially supported.
https://schlaubischlump.github.io/LocationSimulator/
GNU General Public License v3.0
2.39k stars 184 forks source link

Failed to resolve dependencies #67

Closed craigcoles closed 3 years ago

craigcoles commented 3 years ago

It turns out its been a while since I had updated my version locally. Done so today and then fired up XCode and I am seeing this issue:

Screenshot 2021-01-11 at 10 04 12

Resolving package dependencies
because every version of SuggestionPopup contains incompatible tools version and root depends on SuggestionPopup 0.0.2..<1.0.0, version solving failed.
Schlaubischlump commented 3 years ago

This seems to be a problem with the swift package manager. It's hard to debug, because I can not reproduce the issue. Did you clone the project or just performed a git pull ?

Which version of Xcode are you using ? Pretty sure your swift-tools-version is outdated. It should be swift-tools-version 5.3.

craigcoles commented 3 years ago

@Schlaubischlump I am currently using XCode 11 - seems like that could be the problem.

Schlaubischlump commented 3 years ago

Thats most-likely the problem. Maybe I can downgrade the swift-tools-version for each dependency

craigcoles commented 3 years ago

@Schlaubischlump If there is a work around I could implement locally for the time being, then I can just do that. I did have two versions of XCode running on my machine - work reasons - but it takes up too much space so I had to keep the one that I need the most currently 🤦

Schlaubischlump commented 3 years ago

There is a workaround, but it takes a little bit of work. There are three dependencies: SuggestionPopup, Downloader and GPXParser. Each of these dependencies can be found on my profile and include a Package.swift file. The first line in these files are: // swift-tools-version:5.3.

You would have to fork each of the projects, change the first line to say // swift-tools-version:5.1 (or maybe even lower). Create a new release for each of the dependencies and change the swift package dependencies inside the LocationSimulator Xcode project to your fork.

Schlaubischlump commented 3 years ago

It might be easier if I just update the dependencies. Give me second, I'll update everything, then you can pull and try again.

Schlaubischlump commented 3 years ago

Okay you can pull and try again. I downgraded to swift-tools-version 5.2. It should be compatible with Xcode 11.6.

Edit: You might need to change the language specified in the homebrew scheme. I currently set it to spanish to work on the translation.

craigcoles commented 3 years ago

Just gave it a whirl and it is showing some Swift Complier Errors

I imagine this is down to downgrading the swift tools?

Schlaubischlump commented 3 years ago

Are you using macOS 10.15 ? You need the macOS 11.x sdk. If you have a running copy of macOS Big Sur you can just copy and past the sdk to the correct folder in your Xcode installation on macOS 10.15. The macOS 10.15 SDK will not work, because Apple introduced the NSTableView.Style property with macOS 11.0. Thats why the fullWidth symbol and the style property of NSTableView can not be found.

You should place the sdk here:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk

If you don't have a working Big Sur installation, this download link for the macOS 11.1 SDK should work.