Closed gery closed 7 years ago
Hmm, this looks like 'gir2swift' didn't run properly.
Can you try cloning 'SwiftHelloGtk' (git clone https://github.com/rhx/SwiftHelloGtk.git) and then run
./build.sh
from inside the 'SwiftHelloGtk' directory? This is a simple 'Hello World' example that shows how to use the SwiftGtk module.
You don't normally compile SwiftGtk separately (as this is handled by the package manager), but if you want to try, do the following (all from within the 'SwiftGtk' directory):
./distclean.sh ./build.sh ./test.sh
Let me know if there are any issues.
Not OP, but getting exactly the same error. Cloning SwiftHelloGtk leads to:
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:740:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:65: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:74: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:103: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: use 'String(describing:)' to silence this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
String(describing: )
/tmp/SwiftHelloGtk/.build/gir2swift/Sources/gir.swift:756:128: note: provide a default value to avoid this warning
context.outputs = ["// error alias \($0.node.attribute(named: "name")) = \(context.parentNode.node.attribute(named: "name"))"]
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
Linking ./.build/debug/gir2swift
which: no parallel in (/tmp/SwiftHelloGtk/.build/gir2swift/.build/debug:/tmp/SwiftHelloGtk/.build/gir2swift/.build/debug:/tmp/SwiftHelloGtk/.build/gir2swift/.build/debug:/home/luis/.dropbox-bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
Generate Swift Wrapper for *
./generate-wrapper.sh: linha 24: cd: Packages/*: Arquivo ou diretório não encontrado
Compile Swift Module 'GLib' (1 sources)
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:53:18: error: use of undeclared type 'StringRef'
public extension StringRef {
^~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:90:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
^~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:104:18: error: use of undeclared type 'MainContext'
public extension MainContext {
^~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:119:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
^~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:129:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
^~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:139:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
^~~~~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:151:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
^~~~~~~~~
Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:152:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
^~~~~~~~~
Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:153:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
^~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:154:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
^~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:61:27: error: use of undeclared type 'StringType'
public class StringClass: StringType {
^~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:63:21: error: initializer does not override a designated initializer from its superclass
override public init(_ op: UnsafeMutablePointer<GString>) {
~~~~~~~~ ^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:82:30: error: use of undeclared type 'StringRef'
public var g_string_ref: StringRef { return StringRef(self) }
^~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:82:30: error: use of undeclared type 'StringRef'
public var g_string_ref: StringRef { return StringRef(self) }
^~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:97:44: error: use of undeclared type 'MainContextRef'
public static func defaultContext() -> MainContextRef {
^~~~~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:111:44: error: use of undeclared type 'MainContext'
public static func defaultContext() -> MainContext {
^~~~~~~~~~~
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:22:47: error: use of unresolved identifier 'SourceFunc'
let callback = unsafeBitCast(handler, to: SourceFunc.self)
^~~~~~~~~~
CGLib.GSourceFunc:12:18: note: did you mean 'GSourceFunc'?
public typealias GSourceFunc = @convention(c) (gpointer?) -> gboolean
^
CGLib.GSourceFuncs:52:18: note: did you mean 'GSourceFuncs'?
public typealias GSourceFuncs = _GSourceFuncs
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:23:14: error: use of unresolved identifier 'timeoutAddFull'
let rv = timeoutAddFull(priority: p, interval: interval, function: callback, data: opaqueHolder) {
^~~~~~~~~~~~~~
CGLib.g_timeout_add_full:1:13: note: did you mean 'g_timeout_add_full'?
public func g_timeout_add_full(_ priority: gint, _ interval: guint, _ function: CGLib.GSourceFunc!, _ data: gpointer!, _ notify: CGLib.GDestroyNotify!) -> guint
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:64:9: error: 'super' members cannot be referenced in a root class
super.init(UnsafeMutablePointer(g_string_new(op.pointee.str)))
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:69:9: error: 'super' members cannot be referenced in a root class
super.init(s.ptr)
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:74:23: error: use of unresolved identifier 'ptr'
g_string_free(ptr, 1)
^~~
SwiftGlibc.putc:1:13: note: did you mean 'putc'?
public func putc(_ __c: Int32, _ __stream: UnsafeMutablePointer<FILE>!) -> Int32
^
SwiftGlibc.puts:1:13: note: did you mean 'puts'?
public func puts(_ __s: UnsafePointer<Int8>!) -> Int32
^
SwiftGlibc.putw:1:13: note: did you mean 'putw'?
public func putw(_ __w: Int32, _ __stream: UnsafeMutablePointer<FILE>!) -> Int32
^
/tmp/SwiftHelloGtk/.build/checkouts/SwiftGLib.git--7509546108972641032/Sources/GLib.swift:112:23: error: use of unresolved identifier 'MainContext'
let context = MainContext(g_main_context_ref(g_main_context_default())!)
^~~~~~~~~~~
CGLib.GMainContext:7:18: note: did you mean 'GMainContext'?
public typealias GMainContext = _GMainContext
^
CGLib._GMainContext:1:15: note: did you mean '_GMainContext'?
public struct _GMainContext {
^
<unknown>:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /tmp/SwiftHelloGtk/.build/debug.yaml
Do you have any ideas on how to solve it? Thanks.
The directory layout of the Swift Package Manager has changed, which caused these failed builds. I have updated the projects to work with Swift 3.1 now (Swift 3.0 should still work, though).
gery@gery-desktop:~/projects/gtk7/SwiftGtk$ ./build.sh Compile Swift Module 'GLib' (1 sources) /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:53:18: error: use of undeclared type 'StringRef' public extension StringRef { ^) {
~~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:90:18: error: use of undeclared type 'MainContextRef' public extension MainContextRef { ^~~~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:104:18: error: use of undeclared type 'MainContext' public extension MainContext { ^~~/home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:119:18: error: use of undeclared type 'MainLoopRef' public extension MainLoopRef { ^~~/home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:129:18: error: use of undeclared type 'MainLoop' public extension MainLoop { ^~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:139:11: error: use of undeclared type 'ErrorTypeProtocol' extension ErrorTypeProtocol { ^~~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:151:11: error: 'ErrorType' has been renamed to 'Error' extension ErrorType: CustomStringConvertible {} ^~~~~ Error /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:152:11: error: 'ErrorType' has been renamed to 'Error' extension ErrorType: CustomDebugStringConvertible {} ^~~~~ Error /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:153:11: error: use of undeclared type 'ErrorRef' extension ErrorRef: CustomStringConvertible {} ^~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:154:11: error: use of undeclared type 'ErrorRef' extension ErrorRef: CustomDebugStringConvertible {} ^~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:61:27: error: use of undeclared type 'StringType' public class StringClass: StringType { ^~~~~~ /home/gery/projects/gtk7/SwiftGtk/Packages/GLib-2.46.0/Sources/GLib.swift:63:21: error: initializer does not override a designated initializer from its superclass override public init(_ op: UnsafeMutablePointer