Closed craigcoles closed 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.
@Schlaubischlump I am currently using XCode 11 - seems like that could be the problem.
Thats most-likely the problem. Maybe I can downgrade the swift-tools-version for each dependency
@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 🤦
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.
It might be easier if I just update the dependencies. Give me second, I'll update everything, then you can pull and try again.
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.
Just gave it a whirl and it is showing some Swift Complier Errors
I imagine this is down to downgrading the swift tools?
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.
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: