migueldeicaza / SwiftGodotKit

Embed Godot into Swift apps
229 stars 28 forks source link

StandaloneExample fails to build on macOS without removal of `@Godot` #19

Closed hwjeremy closed 10 months ago

hwjeremy commented 10 months ago

Hi everyone,

While attempting to reproduce a behaviour in a minimal project, I found I was unable to build Standalone Example.

The procedure followed:

  1. Clone SwiftGodotKit fresh
  2. "Trust & Enable" plugins
  3. [Await package resolution]
  4. Build via "Run"

Result:

Build failure, "Unknown attribute 'Godot'".

Run-StandaloneExample-2023.12.28_14-26-32-+1100.xcresult.zip

Screenshot 2023-12-28 at 14 30 43

Curiously, removing @Godot and re-running allows the project to build and run successfully:

Screenshot 2023-12-28 at 14 33 03

Environment:

macOS 14.2 Xcode 15.0.1 Swift version 5.9 Macbook Pro 16 w/ M2 Max

migueldeicaza commented 10 months ago

Ah yes, that has some very old hardwired dependencies, updating the sample

migueldeicaza commented 10 months ago

Fixed by bumping the referenced versions. thanks for the bug report!~