Skip to content
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

'VZVirtualMachineView' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 11.0.0 #76

Closed
Code-Hex opened this issue Oct 14, 2022 · 0 comments · Fixed by #94
Labels
bug Something isn't working

Comments

@Code-Hex
Copy link
Owner

Describe the bug

Get a compilation warning message.

To Reproduce
Steps to reproduce the behavior:

We can see make test

Expected behavior

No warning

Screenshots

go test -exec "go run /Users/runner/work/vz/vz/cmd/codesign" -count=1 ./...
go: downloading golang.org/x/sys v0.0.0-20220808155132-1c4a2a[7](https://github.com/Code-Hex/vz/actions/runs/3247329051/jobs/5327163236#step:4:8)2c664
# github.com/Code-Hex/vz/v2
virtualization_view.m:170:5: warning: 'VZVirtualMachineView' is only available on macOS 12.0 or newer [-Wunguarded-availability-new]
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:23:12: note: 'VZVirtualMachineView' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 11.0.0
./virtualization_view.h:25:12: note: annotate 'AppDelegate' with an availability attribute to silence this warning
virtualization_view.m:1[8](https://github.com/Code-Hex/vz/actions/runs/3247329051/jobs/5327163236#step:4:9)4:5: warning: 'VZVirtualMachineView' is only available on macOS 12.0 or newer [-Wunguarded-availability-new]
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:23:12: note: 'VZVirtualMachineView' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 11.0.0
virtualization_view.m:184:5: note: enclose 'VZVirtualMachineView' in an @available check to silence this warning
virtualization_view.m:184:37: warning: 'VZVirtualMachineView' is only available on macOS 12.0 or newer [-Wunguarded-availability-new]
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:23:12: note: 'VZVirtualMachineView' has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS [11](https://github.com/Code-Hex/vz/actions/runs/3247329051/jobs/5327163236#step:4:12).0.0
virtualization_view.m:184:37: note: enclose 'VZVirtualMachineView' in an @available check to silence this warning
ok  	github.com/Code-Hex/vz/v2	1.457s
?   	github.com/Code-Hex/vz/v2/cmd/codesign	[no test files]
ok  	github.com/Code-Hex/vz/v2/internal/progress	3.328s

Environment (please complete the following information):

  • macOS Version: 11
  • Go Version: all
@Code-Hex Code-Hex added the bug Something isn't working label Oct 14, 2022
Code-Hex added a commit that referenced this issue Oct 31, 2022
Code-Hex added a commit that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant