Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TesseractOCR problem on iOS Jenkins build #184

Open
vladansaracpv opened this issue Aug 30, 2021 · 9 comments
Open

TesseractOCR problem on iOS Jenkins build #184

vladansaracpv opened this issue Aug 30, 2021 · 9 comments

Comments

@vladansaracpv
Copy link

vladansaracpv commented Aug 30, 2021

Report

Plugin Version

"cordova-plugin-appsflyer-sdk": "^6.3.50",

On what Platform are you having the issue?

iOS

What did you do?

Build fails on Xcode and Jenkins

What did you expect to happen?

Build pass

What happened instead?

The following build commands failed:
Ld /Users/jenkins/Library/Developer/Xcode/DerivedData/project-aeirksujgkawoogvnmupopwdgipx/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/arm64/TesseractOCR normal arm64
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.

Please provide any other relevant information.

I've managed to make it work on Xcode build by triggering flag (BITCODE=false) for tesseract pod.

@pazlavi
Copy link
Contributor

pazlavi commented Aug 31, 2021

Hi @vladansaracpv,
Thank you for reaching out to us.

Is it happen only when building the app using Jenkins?
Is it happen with previous versions? If not, what was your previous version?
What is your Xcode version?

@vladansaracpv
Copy link
Author

Hi @pazlavi

It happens on Xcode build also. On previous version of plugin I got different error.

Undefined symbols for architecture arm64:
"OBJC_CLASS$_AppsFlyerCrossPromotionHelper", referenced from:
objc-class-ref in AppsFlyerPlugin.o
"OBJC_CLASS$_AppsFlyerShareInviteHelper", referenced from:
objc-class-ref in AppsFlyerPlugin.o
"OBJC_CLASS$_AppsFlyerLib", referenced from:
objc-class-ref in AppsFlyerPlugin.o
objc-class-ref in AppsFlyerAttribution.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My Xcode version is 12.4

@pazlavi
Copy link
Contributor

pazlavi commented Aug 31, 2021

@vladansaracpv,
We'll try to reproduce the issue on our side and will update here with our findings.

Regarding the second issue, it is not directly related to the SDK. It is an issue with your compiler and linker.
Up to version 6.0.54, the plugin used our static lib SDK, and since version 6.1.10, we are using CocoaPods.

@vladansaracpv
Copy link
Author

Thanks @pazlavi

Please be free to ask for any details/explanations you need in order to reproduce it.

We really like the product and would like to use it in our project

@pazlavi
Copy link
Contributor

pazlavi commented Sep 1, 2021

Hi @vladansaracpv ,
Please try to update your Xcode version to 12.5. This might solve the issue of compiling with bitcode.

@vladansaracpv
Copy link
Author

Thanks @pazlavi

But we do our builds using Jenkins. Any suggestion for that?

@af-obodovskyi
Copy link

@vladansaracpv you have mentioned, that you used Cocoapods in your project, could you please, mention which version do you use? Also, could you please tell, on which Apple CPU did you try to build your project?

@vladansaracpv
Copy link
Author

Hi @af-obodovskyi
We're using version 1.10.1 on our Jenkins machine. On local builds we tried with 1.13.1 as well. Regarding the CPU, we're using the Intel ones.

@dalybouba
Copy link

any solution for this please??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants