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

Compilation on MacOS fails #5

Closed
fako1024 opened this issue Mar 15, 2022 · 2 comments · Fixed by #6
Closed

Compilation on MacOS fails #5

fako1024 opened this issue Mar 15, 2022 · 2 comments · Fixed by #6
Assignees
Labels
bug Something isn't working

Comments

@fako1024
Copy link
Owner

As raised in this issue, compilation currently fails on MacOS. When trying to cross-compile for Darwin, different errors occur:

# GOOS=darwin GOARCH=amd64 go build
# github.com/fako1024/gatt
./device_darwin.go:34:7: undefined: xpc.XPC
./device_darwin.go:275:48: undefined: xpc.Dict
./device_darwin.go:367:39: undefined: xpc.Dict
./device_darwin.go:475:39: undefined: xpc.Dict
./device_darwin.go:481:39: undefined: xpc.Dict
./device_darwin.go:496:41: undefined: xpc.Dict
./peripheral_darwin.go:22:7: undefined: xpc.UUID
./peripheral_darwin.go:221:7: undefined: xpc.Dict
./peripheral_darwin.go:222:12: undefined: xpc.Dict
./peripheral_darwin.go:225:43: undefined: xpc.Dict
./peripheral_darwin.go:225:43: too many errors
@fako1024 fako1024 self-assigned this Mar 15, 2022
@fako1024 fako1024 added the bug Something isn't working label Mar 15, 2022
@fako1024
Copy link
Owner Author

Mh, or maybe not:

[arch@cf6bac71f57d gatt]$ go test ./...
ok  	github.com/fako1024/gatt	0.033s
?   	github.com/fako1024/gatt/examples/option	[no test files]
?   	github.com/fako1024/gatt/examples/service	[no test files]
?   	github.com/fako1024/gatt/linux	[no test files]
?   	github.com/fako1024/gatt/linux/cmd	[no test files]
?   	github.com/fako1024/gatt/linux/evt	[no test files]
?   	github.com/fako1024/gatt/linux/gioctl	[no test files]
?   	github.com/fako1024/gatt/linux/socket	[no test files]
?   	github.com/fako1024/gatt/linux/util	[no test files]
?   	github.com/fako1024/gatt/xpc	[no test files]
[arch@cf6bac71f57d gatt]$ go build ./...
[arch@cf6bac71f57d gatt]$

@fako1024
Copy link
Owner Author

Never mind the previous comment, since I had to run the tests inside a Docker container (no physical Mac available) it would still compile for linux/amd64. Was able to reproduce via GitHub action / workflow building / testing against a MacOS runner.

@fako1024 fako1024 linked a pull request Mar 16, 2022 that will close this issue
fako1024 added a commit that referenced this issue Mar 16, 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