Coder Social home page Coder Social logo

swiftssdp's Introduction

Hi there ๐Ÿ‘‹

I'm Paul! I keep myself sane by working/maintainging a few side projects. There's some things I'm not ready to share here yet, or are in a state of flux. I'd love to spend more time on public repositories and sharing support for the community, unfortunately I've become quite a bit busier in the last couple of years. I'll try get to feature requests and issues, just be a bit patient so I can catch up ๐Ÿ™‚.

Thanks for stopping by!

swiftssdp's People

Contributors

happycodelucky avatar jhurliman avatar tom-groves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swiftssdp's Issues

Build error

carthage update --platform iOS
*** Fetching CocoaAsyncSocket
*** Fetching SwiftSSDP
*** Fetching SwiftAbstractLogger
*** Checking out Weak at "0da0dea234b2d2aa1c01fabfb8ee35455735569f"
*** Checking out SwiftAbstractLogger at "v0.3.0"
*** Checking out SwiftSSDP at "v0.5.1"
*** Checking out CocoaAsyncSocket at "7.6.3"
*** xcodebuild output can be found in /var/folders/_v/l8f_4mqn0w11yqd23g0bmmsh0000gn/T/carthage-xcodebuild.ZEbYUI.log
*** Building scheme "iOS Framework" in CocoaAsyncSocket.xcodeproj
*** Building scheme "SwiftAbstractLogger iOS" in SwiftAbstractLogger.xcodeproj
*** Building scheme "Weak iOS" in Weak.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/mohinipotigampu/Downloads/SwiftSSDP-master/Carthage/Checkouts/Weak/Weak.xcodeproj -scheme Weak\ iOS -configuration Release -derivedDataPath /Users/mohinipotigampu/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/Weak/0da0dea234b2d2aa1c01fabfb8ee35455735569f -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/_v/l8f_4mqn0w11yqd23g0bmmsh0000gn/T/Weak SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/mohinipotigampu/Downloads/SwiftSSDP-master/Carthage/Checkouts/Weak)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/_v/l8f_4mqn0w11yqd23g0bmmsh0000gn/T/carthage-xcodebuild.ZEbYUI.log

carthage-xcodebuild.ZEbYUI.log

I attached log file. Any idea to resolve this issue really appreciate.

Getting error by fetching dependency CocoaAsyncSocket

Hi,
installing the library with SPM throws the following error:
error: https://github.com/robbiehanson/CocoaAsyncSocket.git has no manifest for version 7.5.1

My package.swift:
import PackageDescription let package = Package( name: "SwiftSSDP", dependencies: [ .Package(url: "https://github.com/pryomoax/SwiftSSDP.git", majorVersion: 0, minor: 4)])
The other dependencies were fetched normally.

It won't compile with Xcode 10.2

Xcode 10.2 does not support Swift 3.0 anymore. The Weak package unfortunately requires Swift 3.0. Therefore it is not possible to compile SwiftSSDP anymore.

can't discover some devices

thank you for sharing this project - very helpful and well structured.
I can discover my Sonos in no time just like in your readme is documented, however with WEMO switches I don't even receive a callback after the M-SEARCH. Any clue on what could be the issue or where to look to resolve?

I know that you don't have time, I am just looking for clues and resolve on my own.
thz

Build error for Swift 4 on Xcode 9.2

/Users/jianli/iosApp/examples/myTest/SwiftSSDPExample/Carthage/Checkouts/SwiftSSDP/SwiftSSDP/SSDPResponse.swift:174:43: error: 'rangeAt' has been renamed to 'range(at:)'
let capturedRange = match.rangeAt(1)
^~~~~~~
range at:
Foundation.NSTextCheckingResult:25:15: note: 'rangeAt' was obsoleted in Swift 4
open func rangeAt(_ idx: Int) -> NSRange

Changed to let capturedRange = match.range(at: 1), then build successful.

And there is the same error when directly build SwiftSSDP.

Thanks a lot. Your project is really great.

Broadcast to 239.255.255.250 isn't working?

This is driving me crazy. I'm trying to build a network scanner--including finding UPnP devices. I have tried SwiftSSDP and other libraries and I'm getting back nothing even though I know I have PnP devices on my network (I can broadcast from my laptop, for instance, and get responses).

The irritating this is, I'm watching traffic on Wireshark, and never seeing a broadcast from my phone to 239.255.255.250. Again, broadcasting from my laptop I can see this broadcast.

I have gone so far as to manually try implementing SSDP myself through CocoaAsyncSocket. If I broadcast to 255.255.255.255, I can see the packet, but I don't get a response (obviously because SSDP protocol is listening on 255.255.255.255). If I broadcast to 239.255.255.250, as SwiftSSDP is rightly doing, no packet shows up.

Is SwiftSSDP still working for everyone else?

Can't build with SPM

Hey, Im trying to build the project with SPM, but getting

error: noManifest(baseURL: "https://github.com/robbiehanson/CocoaAsyncSocket.git", version: Optional("7.6.2"))

this is my Package.swift, and Im just doing swift package resolve

// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "Heos",
    products: [
        .executable(name: "heos", targets: ["Heos"]),
    ],
    dependencies: [
        .package(url: "https://github.com/pryomoax/SwiftSSDP.git", .branch("master"))
    ],
    targets: [
        .target(
            name: "Heos",
            dependencies: ["SwiftSSDP"]),
    ]
)

Update on new version?

Saw in the README you're working on a new version that uses Networking Framework and without any dependencies. I am very interested in the progress of that. Could you push your progress in a branch?

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.