Coder Social home page Coder Social logo

dbus's People

Contributors

colemancda avatar rpinz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dbus's Issues

Missing required module 'CDBus' in XCode

Thanks to this fantastic project.

I tried building DBus.framework and add it as a dependency into my own Swift project.

When I import DBus, it gives me an error like this
image

Anything helpful ? Thanks

Linux testing fails

Running tests on linux fails currently with the following:

DBus$ swift test
Fetching https://github.com/PureSwift/CDBus.git
Completed resolution in 0.62s
Cloning https://github.com/PureSwift/CDBus.git
Resolving https://github.com/PureSwift/CDBus.git at master
Compile Swift Module 'DBus' (18 sources)
Compile Swift Module 'DBusTests' (4 sources)
Compile Swift Module 'DBusPackageTests' (1 sources)
DBus/Tests/LinuxMain.swift:5:5: error: cannot invoke 'testCase' with an argument list of type '([((ObjectPathTests) -> () -> (), String)])'
    testCase(ObjectPathTests.allTests),
    ^
DBus/Tests/LinuxMain.swift:5:5: note: overloads for 'testCase' exist with these partially matching parameter lists: ([(String, (T) -> () throws -> Void)]), ([(String, (T) -> () -> Void)])
    testCase(ObjectPathTests.allTests),
    ^
error: terminated(1): .swiftenv/versions/4.2.1/usr/bin/swift-build-tool -f DBus/.build/debug.yaml test output:

pull request #1 fixes the issue.

DBusError.Reference() internalValue nil exception

Thanks for your helpful library !

I imported and created a DBusConnection on macOS.

let conn = try DBusConnection.init(address: "/tmp/dbus-1AGCwnZNuj", shared: false);

An error occured Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value.

It seems that padding1 is nil which caused this problem.

I changed internal let internalPointer: OpaquePointer? to fix it.
The situation is that when there is error in connection, the returned pointer is NULL/nil.

image

My Swift version is Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) Target: x86_64-apple-darwin18.6.0.

Thanks in advance !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.