wails icon indicating copy to clipboard operation
wails copied to clipboard

Problem with building app on macos

Open xgrommx opened this issue 11 months ago • 6 comments

Description

When I try to build simple application on macos I got error

# github.com/wailsapp/wails/v2/pkg/assetserver/webview
../../../go/pkg/mod/github.com/wailsapp/wails/[email protected]/pkg/assetserver/webview/request_darwin.go:9:9: fatal error: Foundation/Foundation.h: No such file or directory
    9 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

To Reproduce

Just follow to create simple app from original docs

Expected behaviour

Should be created a simple app on macos

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.9.2

# System
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | MacOS                                                                                                                                                                                                                              |
| Version      | 15.2                                                                                                                                                                                                                               |
| ID           | 24C101                                                                                                                                                                                                                             |
| Go Version   | go1.23.4                                                                                                                                                                                                                           |
| Platform     | darwin                                                                                                                                                                                                                             |
| Architecture | amd64                                                                                                                                                                                                                              |
| CPU          | Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz                                                                                                                                                                                          |
| GPU          | Chipset Model: Intel Iris Pro Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB Vendor: Intel Device ID: 0x0d26 Revision ID: 0x0008 Automatic Graphics Switching: Supported gMux Version: 4.0.20 [3.2.8] Metal Support: Metal 2 |
| Memory       | 16GB                                                                                                                                                                                                                               |
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version |
| Xcode command line tools  | N/A          | Installed | 2409    |
| Nodejs                    | N/A          | Installed | 23.5.0  |
| npm                       | N/A          | Installed | 10.9.2  |
| *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/

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

xgrommx avatar Dec 30 '24 19:12 xgrommx