NMAC427/SwiftOCR

SwiftOCR Framework issue

TLHorse opened this issue · 1 comments

I am using SwiftOCR. When I imported 'SwiftOCR' Xcode said there's an error in the framework. And I went to SwiftOCR.xcodeproj and have a look, I saw there's a function of code written in Objective-C in SwiftOCR-master/framework/SwiftOCR/GPUImage-master/framework/Source/GPUImageVideoCamera.m:

- (void)addTarget:(id<GPUImageOutput *>)newTarget atTextureLocation:(NSInteger)textureLocation;
{
    [super addTarget:newTarget atTextureLocation:textureLocation];
    
    [newTarget setInputRotation:outputRotation atIndex:textureLocation];
}

there's an issue on the first line: Type arguments cannot be applied to non-class type 'id'.
But I'm not good at Objective-C! Who can help me to fix it? Thanks :-)

You could Change GPUImageOutput * to GPUImageInput
hope this help you