Reputation: 11
In Xcode7,everything is ok. But i want to test app in IOS7.1. So i use Xcode6.1. But there are many parse issues:
- (instancetype)initWithPreView:(UIView*)preView
ArrayObjectType:(NSArray*)arrayBarCodeType
cropRect:(CGRect)cropRect
success:(void(^)(NSArray<LBXScanResult*> *array))blockScanResult;
this line has issue.
How to resolve this problem.
Upvotes: 0
Views: 36
Reputation: 122391
The compiler doesn't understand the Generics as shown here:
NSArray<LBXScanResult*> *array
^^^^^^^^^^^^^^^^
There is no way around this, other than to modify the source code to:
NSArray *array
However if you are able to test on a device, rather than use a simulator, there is no reason why you have to change to Xcode 6 at all; simply stay on Xcode 7. If you don't have access to a device then you are stuck, I'm afraid, and you cannot support iOS 7.1 with that source code.
Upvotes: 2