rhx / SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection
https://rhx.github.io/SwiftGtk/
BSD 2-Clause "Simplified" License
317 stars 26 forks source link

/home/gaofeng/Desktop/swift_projects/gtk-demo/.build/checkouts/SwiftGLib/Sources/GLib/TypedSequence.swift:222:25: error: value of type 'gpointer' (aka 'UnsafeMutableRawPointer') has no member 'withMemoryRebound' return data.withMemoryRebound(to: Element.self, capacity: 1) { #59

Closed Naonao9527 closed 1 year ago

Naonao9527 commented 1 year ago

swift5.6.2 ubuntu20.04(wsl)

rhx commented 1 year ago

Thanks for spotting, this was using a Swift-5.7 API. I have committed a fix that makes it compile again with Swift-5.6.x. Could you run swift package purge-cache ; rm -rf .build ; swift package update and then try again, please?

Naonao9527 commented 1 year ago

Ok, it's up and running 好了,它可以运行了