pdfium-lib icon indicating copy to clipboard operation
pdfium-lib copied to clipboard

the iOS project can not run

Open aaluyi opened this issue 2 years ago • 7 comments
trafficstars

Describe the bug Hello developer, when I added Pdfium.framework to sample-apple/Sample/Vendor, I tried to build the project, and 'fpdf_doc.h' file was reported not found in the PDFiumDocument.h file. Then I changed #import "fpdf_doc.h" to #import <Pdfium/fpdfview.h>, 'fpdf_text.h' file not found and 'fpdf_transformpage.h' file not found are displayed in the PDFiumPage.m file. How can I solve this problem.

System (please complete the following information):

  • OS: iOS simulator 16.0
  • xCode:14.1

aaluyi avatar Aug 02 '23 01:08 aaluyi

  1. I'm from https://github.com/TechTeamer/ios-xc-pdfium for the framework, this framework is only fpdfview header files, but exactly what I need, I commented out the code related to fpdf_text.h and fpdf_transformpage.h in the demo, and the demo was ready to run
  2. I also tried to compile a new framework using python, and the execution of "python3 make.py build-pdfium-ios" and "python3 make.py patch-ios" was successful. But when executing "python3 make.py build-ios", "ERROR at //skia/BUILD.gn:174:14: Undefined identifier ", I can not solve this problem, but in the locally generated build->ios->pdfium->public there are fpdf_text.h and fpdf_transformpage.h these two header files, drag these two header files into the project, The original project is now operational

aaluyi avatar Aug 02 '23 08:08 aaluyi

截屏2023-08-02 17 06 08

I want to compile a framework myself, may I ask how to solve this problem?

aaluyi avatar Aug 02 '23 09:08 aaluyi

Hi,

I need update to latest stable branch, maybe some changes was made in the reference file you show.

paulocoutinhox avatar Aug 02 '23 09:08 paulocoutinhox

Hi,

I have updated to latest version.

Can you test now?

paulocoutinhox avatar Sep 14 '23 15:09 paulocoutinhox

I'm executing Build for iOS Step four Compile: python3 make.py build-ios Report an error

ERROR Unresolved dependencies. //third_party/nasm:nasm(//build/toolchain/mac:clang_x64) needs //build/config/mac:strip_all(//build/toolchain/mac:clang_x64)

image What's the question, thank you very much

coderliu007 avatar Sep 16 '23 08:09 coderliu007

Hi,

I have updated everything.

You can now use the latest version.

Thanks.

paulocoutinhox avatar Dec 15 '23 07:12 paulocoutinhox