-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build because warning "'temporaryDirectory' is only available in macOS 10.12 or newer" #1158
Comments
@dazy1030 fixed in 0.49.7 |
Hi, I almost have the same issue on both 0.49.7 & 0.49.18:
I have tried to clean the project, remove derived data and reset package caches but nothing helped. Thank you in advance Environment
|
I have same issue as @bilalb. Checked with 0.49.7 & 0.49.18 |
I'm not exactly clear how you can correct it, but it seems like the way you've integrated SwiftFormat means it's trying to build it for iOS, which isn't right. Even if you are planning to format an iOS project, the SwiftFormat plugin should be built for macOS, in which case the iOS version you are targeting shouldn't matter? |
I've just realised SwiftFormat should not be added to the project's package dependencies 😅 Thanks your feedback and keep up the great work! |
@bilalb If not added as project's package dependencie - then how to add it through SPM? |
It should not be added via SPM, as described in Xcode build phase > Using Swift Package Manager |
about
'temporaryDirectory' is only available in macOS 10.12 or newer
at line 556 of CommandLine.swift.0.49.4
is specified in a similar environment, the build succeeds.environment
The text was updated successfully, but these errors were encountered: