When you define properties in a protocol, and register yourself for it later, you need to remember to synthesize it after in the .m file.

So define the protocol here.


@protocol Transport <NSObject>

@property (nonatomic, weak) id<TransportDelegate> delegate;
@property (nonatomic, assign, readonly) TransportState transportState;


Implement it here.


@interface StreamTransport : NSObject<SPTAppRemoteTransport, NSStreamDelegate>

And this synthesize it in the .m file here.


@implementation StreamTransport

@synthesize delegate = _delegate;
@synthesize transportState = _transportState;

You have to do it like this because this is your first change to get your handles on the actual property. So you need to synthesize it manually because you weren’t able to define it like a regularly property previously.