wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.47k stars 1.23k forks source link

macOS Sonoma build failed #3004

Open dedo1911 opened 1 year ago

dedo1911 commented 1 year ago

Description

Cannot compile applications in macOS 14.0 Sonoma (Apple M2 Max)


# Building target: darwin/arm64

  • Generating bindings: Done.
  • Installing frontend dependencies: Done.
  • Compiling frontend: Done.
  • Compiling application: # github.com/wailsapp/wails/v2/pkg/assetserver/webview
In file included from /Users/dedo1911/go/pkg/mod/github.com/wailsapp/wails/v2@v2.6.0/pkg/assetserver/webview/request_darwin.go:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h:66:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:120:47: error: type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type
@property (nullable, nonatomic, copy) NSArray<nw_proxy_config_t> *proxyConfigurations NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(14.0), ios(17.0));
                                              ^~~~~~~~~~~~~~~~~
1 error generated.
  ERROR   
  exit status 1

To Reproduce

  1. wails init -n wails-svelte -t svelte
  2. cd wails-svelte
  3. wails build

Expected behaviour

The application should compile properly

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.6.0

# System
┌─────────────────────────┐
| OS           | MacOS    |
| Version      | 14.0     |
| ID           | 23A344   |
| Go Version   | go1.21.3 |
| Platform     | darwin   |
| Architecture | arm64    |
└─────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version         |
| Xcode command line tools  | N/A          | Installed | 2399            |
| Nodejs                    | N/A          | Installed | 18.16.0         |
| npm                       | N/A          | Installed | 9.5.1           |
| *Xcode                    | N/A          | Installed | 15.0.1 (15A507) |
| *upx                      | N/A          | Available |                 |
| *nsis                     | N/A          | Available |                 |
└─────────────────────── * - Optional Dependency ────────────────────────┘

Additional context

Edit: Updated to Sonoma 14.1, nothing has changed.

taliove commented 3 months ago

Same issue here...

# Wails
Version | v2.9.1

# System
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | MacOS                                                                                                                  |
| Version      | 14.0                                                                                                                   |
| ID           | 23A344                                                                                                                 |
| Go Version   | go1.22.1                                                                                                               |
| Platform     | darwin                                                                                                                 |
| Architecture | arm64                                                                                                                  |
| CPU          | Apple M1                                                                                                               |
| GPU          | Chipset Model: Apple M1 Type: GPU Bus: Built-In Total Number of Cores: 8 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory       | 16GB                                                                                                                   |
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version         |
| Xcode command line tools  | N/A          | Installed | 2399            |
| Nodejs                    | N/A          | Installed | 20.11.1         |
| npm                       | N/A          | Installed | 10.2.4          |
| *Xcode                    | N/A          | Installed | 15.0.1 (15A507) |
| *upx                      | N/A          | Installed | upx 3.96        |
| *nsis                     | N/A          | Available |                 |
└─────────────────────── * - Optional Dependency ────────────────────────┘