Giter Site home page Giter Site logo

Won't build. about cocoamultipeer HOT 5 OPEN

pkclsoft avatar pkclsoft commented on August 27, 2024
Won't build.

from cocoamultipeer.

Comments (5)

manavgabhawala avatar manavgabhawala commented on August 27, 2024

You're right the NSNetService class has been marked __WATCHOS_PROHIBITED in the Foundation reference. That is really strange since in Apple's watchOS documentation there is a reference to the NSNetService class: https://developer.apple.com/library/watchos/documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/index.html#//apple_ref/c/tdef/NSNetServiceOptions
This is probably a bug on Apple's part and you should probably file a radar with them. In the mean time I will try to look for a workaround in case Apple has decided to drop support for NSNetService in watchOS

from cocoamultipeer.

pkclsoft avatar pkclsoft commented on August 27, 2024

I found this. It looks like it might be deliberate.

https://developer.apple.com/library/prerelease/watchos/releasenotes/General/watchOS2SeedAPIDiffs/Swift/Foundation.html

from cocoamultipeer.

pkclsoft avatar pkclsoft commented on August 27, 2024

I'm looking at using this for tvOS because Apple have not included MultipeerConnectivity and I really need to be able to set up adhoc networks. I'm hoping your framework will work on tvOS.

from cocoamultipeer.

manavgabhawala avatar manavgabhawala commented on August 27, 2024

It looks like Apple removed NSNetServices and its friends on watchOS which is really disappointing (maybe I can try to build around that by using some CoreFoundation classes or even some POSIX classes like CFSocket if those are even available on watchOS. However, on the upside, a tvOS framework looks promising because NSNetService is available on it. Hopefully, I can look at the programming reference soon and get a browser and advertiser UI going and fully support it, along with the launch of the framework

from cocoamultipeer.

pkclsoft avatar pkclsoft commented on August 27, 2024

I'll fork and remove the WatchOS stuff there. I'll also see if I can get tvOS going.

from cocoamultipeer.

Related Issues (7)

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.