Won't build demo app in Xcode #78

Closed
opened 2026-02-02 22:17:56 +01:00 by iQQator · 2 comments

Describe the bug

error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-a7b8a37f.input:1:
In file included from <module-includes>:1:
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found
CAdw-a7b8a37f.input:1:1: fatal error: could not build module 'CAdw'
 (in target 'Adwaita' from project 'Adwaita')
error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-66d52aab.input:1:
In file included from <module-includes>:1:
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found
CAdw-66d52aab.input:1:1: fatal error: could not build module 'CAdw'
 (in target 'Adwaita' from project 'Adwaita')
error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-1705fceb.input:1:
In file included from <module-includes>:1:
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found
CAdw-1705fceb.input:1:1: fatal error: could not build module 'CAdw'
 (in target 'Adwaita' from project 'Adwaita')
error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-1fd0655f.input:1:
In file included from <module-includes>:1:
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found
CAdw-1fd0655f.input:1:1: fatal error: could not build module 'CAdw'
 (in target 'Adwaita' from project 'Adwaita')
error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-fb52e507.input:1:
In file included from <module-includes>:1:
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found
CAdw-fb52e507.input:1:1: fatal error: could not build module 'CAdw'
 (in target 'Adwaita' from project 'Adwaita')
/Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/Adwaita/Menu/MenuButton.swift:8:8: error: Unable to find module dependency: 'CAdw'
import CAdw
       ^ (in target 'Adwaita' from project 'Adwaita')

To Reproduce

  • git clone project
  • open in Xcode Package.swift
  • wait until update dependencies
  • run brew install libadwaita in terminal
  • reopen project
  • select Demo and My Mac target build

Expected behavior

Build and run Demo

Additional context

No response

### Describe the bug ``` error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-a7b8a37f.input:1: In file included from <module-includes>:1: /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found CAdw-a7b8a37f.input:1:1: fatal error: could not build module 'CAdw' (in target 'Adwaita' from project 'Adwaita') error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-66d52aab.input:1: In file included from <module-includes>:1: /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found CAdw-66d52aab.input:1:1: fatal error: could not build module 'CAdw' (in target 'Adwaita' from project 'Adwaita') error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-1705fceb.input:1: In file included from <module-includes>:1: /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found CAdw-1705fceb.input:1:1: fatal error: could not build module 'CAdw' (in target 'Adwaita' from project 'Adwaita') error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-1fd0655f.input:1: In file included from <module-includes>:1: /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found CAdw-1fd0655f.input:1:1: fatal error: could not build module 'CAdw' (in target 'Adwaita' from project 'Adwaita') error: Clang dependency scanner failure: While building module 'CAdw' imported from CAdw-fb52e507.input:1: In file included from <module-includes>:1: /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/CAdw/shim.h:1:10: fatal error: 'adwaita.h' file not found CAdw-fb52e507.input:1:1: fatal error: could not build module 'CAdw' (in target 'Adwaita' from project 'Adwaita') /Users/iqqator/Developer/OWN/GNOME/adwaita-swift/Sources/Adwaita/Menu/MenuButton.swift:8:8: error: Unable to find module dependency: 'CAdw' import CAdw ^ (in target 'Adwaita' from project 'Adwaita') ``` ### To Reproduce - git clone project - open in Xcode Package.swift - wait until update dependencies - run brew install libadwaita in terminal - reopen project - select Demo and My Mac target build ### Expected behavior Build and run Demo ### Additional context _No response_
iQQator added the
bug
label 2026-02-02 22:17:56 +01:00
Author

fixed by replace .macOS(.v10_15) to .macOS(.v13), and work in Xcode as expected

fixed by replace `.macOS(.v10_15)` to `.macOS(.v13)`, and work in Xcode as expected
Owner

Thanks for the report! I haven't used macOS for quite a while now :)

Thanks for the report! I haven't used macOS for quite a while now :)
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/adwaita-swift#78
No description provided.