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

Xcode adwaita.h not found #32

Open
kobutri opened this issue May 29, 2024 · 4 comments
Open

Xcode adwaita.h not found #32

kobutri opened this issue May 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@kobutri
Copy link

kobutri commented May 29, 2024

Describe the bug

If I try to build the project in the template repository via Xcode I get the build error in shim.h that #include <adwaita.h> doesn't work because it can't find adwaita.h.
It works just fine with with swift build/swift run from the terminal.

To Reproduce

  1. install Xcode via the AppStore
  2. install Adwaita via brew install libadwaita
  3. clone the template repository
  4. open it in xcode
  5. click the run button in Xcode

Expected behavior

project should build and open

Additional context

MacOS 14.5
Xcode 15.4

@kobutri kobutri added the bug Something isn't working label May 29, 2024
@david-swift
Copy link
Member

Unfortunately, I'm not able to reproduce this with the same setup (except I installed Xcode via Xcodes and am currently on version 15.3). Another, maybe somehow related issue appeared to me as well (#11). Maybe you could try following the solution to this problem: #11 (comment)?

I want to stress that this library works best on Linux, using the GNOME Builder IDE and Flatpak. More information on how to set up a comfortable developer environment can be found here, or you could also set it up in a VM.

I'll upgrade to Xcode 15.4 to see whether a bug was introduced in the new version.

@iDevPro
Copy link

iDevPro commented Jun 15, 2024

Unfortunately, I'm not able to reproduce this with the same setup (except I installed Xcode via Xcodes and am currently on version 15.3). Another, maybe somehow related issue appeared to me as well (#11). Maybe you could try following the solution to this problem: #11 (comment)?

I want to stress that this library works best on Linux, using the GNOME Builder IDE and Flatpak. More information on how to set up a comfortable developer environment can be found here, or you could also set it up in a VM.

I'll upgrade to Xcode 15.4 to see whether a bug was introduced in the new version.

I have problem with tutorial with localizable programm, when remove localization and yaml convertation all build success :)

link: https://github.com/AparokshaUI/AdwaitaTemplate/blob/main/Package.swift

@david-swift
Copy link
Member

I have problem with tutorial with localizable programm, when remove localization and yaml convertation all build success :)

Did you also get the adwaita.h error, @iDevPro? This would be very strange as the Localizable package does not depend on Libadwaita, but the adwaita-swift package does.

@david-swift
Copy link
Member

@iDevPro I also experienced a problem with the Localizable package after updating to Xcode 16 Beta. I could solve it by simply running swift run in the terminal (which succeeded), and from then on it worked in Xcode as well. Could you try this, @iDevPro? This doesn't seem to be the case for @kobutri's adwaita.h problem as far as I understand?

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

No branches or pull requests

3 participants