centrifugal / centrifuge-swift

Swift client SDK for bidirectional real-time communication with Centrifugo and Centrifuge-based server over WebSocket
MIT License
48 stars 44 forks source link

Doesn't work with Carthage #14

Closed danqing closed 1 year ago

danqing commented 4 years ago
*** Skipped building centrifuge-swift due to the error:
Dependency "centrifuge-swift" has no shared framework schemes for any of the platforms: iOS

If you believe this to be an error, please file an issue with the maintainers at https://github.com/centrifugal/centrifuge-swift/issues/new

Looking at the source, there's no xcodeproj file (other than the one for example), and so there's no target that builds the framework. I believe that's the reason.

FZambia commented 4 years ago

Hmm, I suppose it worked before... Will try to investigate this.

danqing commented 4 years ago

I'm pretty sure fixing this involves the following:

  1. Create a .xcodeproj file for the framework itself (not for the example app) and add its files
  2. Create a Cartfile in the root folder that lists the dependencies (protobuf, starscream)
  3. Do carthage update and that will build the two dependencies. Add the resulting frameworks into .xcodeproj
  4. Make sure the framework can build with the dependencies added
FZambia commented 2 years ago

I am not an iOS developer and diving into this seems a bit time-consuming. That's why some basic things are still missing here..

danqing commented 2 years ago

This is not important to me right now since I've transitioned to using SPM :)