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

the iOS project can not run #95

Open
aaluyi opened this issue Aug 2, 2023 · 7 comments
Open

the iOS project can not run #95

aaluyi opened this issue Aug 2, 2023 · 7 comments

Comments

@aaluyi
Copy link

aaluyi commented Aug 2, 2023

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
Copy link
Author

aaluyi commented Aug 2, 2023

  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
Copy link
Author

aaluyi commented Aug 2, 2023

截屏2023-08-02 17 06 08

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

@paulocoutinhox
Copy link
Owner

Hi,

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

@paulocoutinhox
Copy link
Owner

Hi,

I have updated to latest version.

Can you test now?

@coderliu007
Copy link

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

@paulocoutinhox
Copy link
Owner

Hi,

I have updated everything.

You can now use the latest version.

Thanks.

@paulocoutinhox
Copy link
Owner

Hi,

Project was updated to latest version.

If your problem was solved, can you close the issue pls?

Thanks.

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

No branches or pull requests

3 participants