SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

please support swift5.0

Open uponup opened this issue 4 years ago • 11 comments

Xcode 11 cann‘t build , SwiftOCR only support Swift3.0

It's a problem

uponup avatar Feb 27 '20 16:02 uponup

Hi, I have the same problem of @uponup. I tried to install the pod on my project (1.1) but Xcode said to me that the library has some parts in swift 3.0.1 so is not compatible. I tried to force tag 1.2 (I read on release that support swift 5) but when I tried to install remove the GPUImage dependency:

Analyzing dependencies Pre-downloading: SwiftOCRfromhttps://github.com/garnele007/SwiftOCR.git, tag 1.2Downloading dependencies Installing SwiftOCR 1.2 (was 1.1) Removing GPUImage Generating Pods project Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

And if I try to run the project show me this error:

No such module GPUImage

I find this merge: https://github.com/garnele007/SwiftOCR/commit/bd9b19406bdd5b88dd8122bced7e9769be416cc0

Is it correct?

hihelloluigi avatar Mar 10 '20 12:03 hihelloluigi

+1

codemodouk avatar Mar 29 '20 14:03 codemodouk

+1 (though in my case XCode even complains about SwiftOCR not located, even though the pod was reported as installed /upgraded from 1.1 to 1.2)

guesxy avatar Apr 07 '20 07:04 guesxy

@garnele007 not working on Swift 5.

Buzka91 avatar Apr 30 '20 17:04 Buzka91

did you find any solution for swift 5 yet, or any pod that supports 7 segment display?

enasaz9 avatar May 05 '20 02:05 enasaz9

Can you check out the latest release? Since I don't use pods it would be great if someone could check if the lastest changes fixes this problem.

NMAC427 avatar May 08 '20 06:05 NMAC427

I've checked by by updating your example target iOS and pod to 1.2 but we got an error "No such GBUImage module" could you tell me how to fix this?

enasaz9 avatar May 09 '20 04:05 enasaz9

Swift 5 support would be highly appreciated!!!

SophieMBerger avatar Jun 08 '20 03:06 SophieMBerger

Does this support swift 5 now?

dibyasarker avatar Sep 29 '20 06:09 dibyasarker

still no support for swift 5

oselvi avatar Sep 30 '20 06:09 oselvi

@NMAC427 Just in case you are wondering why everybody is still claiming that Swift version 5.0 is still not supported: cocoapods only contains versions 1.0 and 1.1. which do not support Swift 5.0. It would be awesome if you could just push the new version to the cocoapods trunk.

For everybody else, I got it to run by:

  1. Cloning this repo and drag and dropping it into my other Xcode project.
  2. Adjust the build targets in all project definitions.
  3. Fix all errors in the build logs. Currently this icon in the file bar: image

niklasbuechner avatar Dec 12 '20 16:12 niklasbuechner