nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

Auto-Generated Obj C @interface is empty #80

Closed progressiveCaveman closed 9 years ago

progressiveCaveman commented 9 years ago

Hello,

After updating to Xcode 7 / Socket.IO-Client-Swift 3.1.3, previously working code now throws errors for all Socket.io-related methods/properties. After further investigation, it appears that the Obj C auto-generated header file is mostly empty. I don't have much experience with combining Swift/Obj C so excuse me if this is just my incompetence. Below is the file in question...There is another header file with the correct method definitions, which is also automatically generated, but for some reason this is the one that is visible to my code.

// Generated by Apple Swift version 2.0 (swiftlang-700.0.59 clang-700.0.72)

public typealias char16_t = uint_least16_t
public typealias char32_t = uint_least32_t

/// Send an engine message (4)

/// Write a message, independent of transport.

public enum PacketType : Int {

    case Open
    case Close
    case Ping
    case Pong
    case Message
    case Upgrade
    case Noop
}

/// Create a new SocketIOClient. opts can be omitted

/// Closes the socket. Only reopen the same socket if you know what you're doing. Will turn off automatic reconnects. Pass true to fast if you're closing from a background task

/// Connect to the server.

/// Connect to the server. If we aren't connected after timeoutAfter, call handler

/// error

/// Same as close

/// Same as emit, but meant for Objective-C

/// Same as emitWithAck, but for Objective-C

/// Leaves nsp and goes back to /

/// Joins nsp if it is not /

/// Joins namespace /

/// Removes handler(s)

/// Adds a handler for an event.

/// Adds a single-use handler for an event.

/// Removes all handlers. Can be used after disconnecting to break any potential remaining retain cycles.

/// Adds a handler that will be called on every event.

/// Same as connect

/// Tries to reconnect to the server.

public enum SocketIOClientStatus : Int {

    case NotConnected
    case Closed
    case Connecting
    case Connected
    case Reconnecting
}
nuclearace commented 9 years ago

How are you incorporating the library?

progressiveCaveman commented 9 years ago

Using pods, and iOS if it matters.

nuclearace commented 9 years ago

Any progress on this? I haven't had time to investigate yet.

nuclearace commented 9 years ago

Seems to work for me on the latest version of Xcode on El Capitan

progressiveCaveman commented 9 years ago

Yep, it's working on the latest version here too. It must have been some weirdness with the new update.