AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

TesseractOCR problem on iOS Jenkins build #184

Open vladansaracpv opened 2 years ago

vladansaracpv commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

vladansaracpv commented 2 years ago

Thanks @pazlavi

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

af-obodovskyi commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

any solution for this please??