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

Add tips to solve the problem that macos cannot be compiled. #2925

Merged
merged 4 commits into from Oct 21, 2023

Conversation

duolabmeng6
Copy link
Contributor

IMG_3677

@leaanthony
Copy link
Member

Thanks for this. I think this is more of a bug, if this is the workaround. What version of MacOS did you encounter the problem?

@duolabmeng6
Copy link
Contributor Author

# Wails
Version | v2.6.0

# System
┌─────────────────────────┐
| OS           | MacOS    |
| Version      | 13.2.1   |
| ID           | 22D68    |
| Go Version   | go1.20.5 |
| Platform     | darwin   |
| Architecture | arm64    |
└─────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version |
| Xcode command line tools  | N/A          | Installed | 2396    |
| Nodejs                    | N/A          | Installed | 18.17.1 |
| npm                       | N/A          | Installed | 9.6.7   |
| *Xcode                    | N/A          | Available |         |
| *upx                      | N/A          | Available |         |
| *nsis                     | N/A          | Available |         |
└─────────────────── * - Optional Dependency ────────────────────┘

# Diagnosis
Optional package(s) installation details:
  - Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/
 

I want to debug on goland but directly use the go build -tags dev -gcflags "all=-N -l" in the document to prompt an error on macos m2
But after adding the environment variable, it will work export CGO_LDFLAGS="-framework UniformTypeIdentifiers" && go build -tags dev -gcflags "all=-N -l"

@leaanthony leaanthony merged commit 63c9baa into wailsapp:master Oct 21, 2023
3 of 4 checks passed
@leaanthony
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants