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

Problem with building app on macos #3974

Open
xgrommx opened this issue Dec 30, 2024 · 6 comments
Open

Problem with building app on macos #3974

xgrommx opened this issue Dec 30, 2024 · 6 comments
Labels
Bug Something isn't working cannot reproduce The issue cannot be reproduced by the project maintainers

Comments

@xgrommx
Copy link

xgrommx commented Dec 30, 2024

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 xgrommx added the Bug Something isn't working label Dec 30, 2024
@leaanthony
Copy link
Member

leaanthony commented Dec 30, 2024

Can you please try upgrading the xcode tools?

@xgrommx
Copy link
Author

xgrommx commented Dec 30, 2024

@leaanthony but I use last version for xcode 16.2

@leaanthony
Copy link
Member

Well that's weird. Foundation.h is kinda foundational 😅

@xgrommx
Copy link
Author

xgrommx commented Dec 31, 2024

I don't know, but I still got this error

@leaanthony
Copy link
Member

If anyone else can reproduce this then we can investigate.

@leaanthony leaanthony added the cannot reproduce The issue cannot be reproduced by the project maintainers label Dec 31, 2024
@pbnjay
Copy link
Contributor

pbnjay commented Jan 1, 2025

@xgrommx try running gcc -v -framework Foundation at a command line and see if you find some bad paths. If your paths are configured correctly it should only say Undefined symbol: _main but it will probably say ld: framework 'Foundation' not found and list the search paths for the compiler above for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working cannot reproduce The issue cannot be reproduced by the project maintainers
Projects
None yet
Development

No branches or pull requests

3 participants