You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.
The problem is that the the cardIOPaymentViewControllerForResponder: method is defined as + (CardIOPaymentViewController *)cardIOPaymentViewControllerForResponder:(UIResponder *)responder. So it is expecting a UIResponder * as the parameter.
I honestly have no idea how this currently compiles on Xcode 7 but apparently the compiler has been updated for Xcode 8 and is now catching this.
I think you can just update CardIOVideoStream.h to be @property(nonatomic, weak, readwrite) UIResponder<CardIOVideoStreamDelegate> *delegate; and then this compiler error will go away. It looks like the CardIOCameraView is the only thing that uses CardIOVideoStream and it is a subclass of UIView which is a UIResponder.
The text was updated successfully, but these errors were encountered:
card.io is failing to compile on Xcode 8 on line https://github.com/card-io/card.io-iOS-source/blob/master/Classes/CardIOVideoStream.mm#L267
The problem is that the the
cardIOPaymentViewControllerForResponder:
method is defined as+ (CardIOPaymentViewController *)cardIOPaymentViewControllerForResponder:(UIResponder *)responder
. So it is expecting aUIResponder *
as the parameter.https://github.com/card-io/card.io-iOS-source/blob/master/Classes/CardIOVideoStream.mm#L267 is calling
CardIOPaymentViewController *vc = [CardIOPaymentViewController cardIOPaymentViewControllerForResponder:self.delegate];
andself.delegate
is defined as@property(nonatomic, weak, readwrite) id<CardIOVideoStreamDelegate> delegate;
so it is not guaranteed to be aUIResponder *
.I honestly have no idea how this currently compiles on Xcode 7 but apparently the compiler has been updated for Xcode 8 and is now catching this.
I think you can just update
CardIOVideoStream.h
to be@property(nonatomic, weak, readwrite) UIResponder<CardIOVideoStreamDelegate> *delegate;
and then this compiler error will go away. It looks like theCardIOCameraView
is the only thing that usesCardIOVideoStream
and it is a subclass ofUIView
which is aUIResponder
.The text was updated successfully, but these errors were encountered: