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

Umbrella header 'CorePlot.h' not found #477

Open
sprout-apps opened this issue May 5, 2023 · 14 comments
Open

Umbrella header 'CorePlot.h' not found #477

sprout-apps opened this issue May 5, 2023 · 14 comments

Comments

@sprout-apps
Copy link

Today my project stopped building due to the following error:

core-plot/framework/Module/module.modulemap:2:19: Umbrella header 'CorePlot.h' not found

MacOS: 13.2.1 (22D68)
Xcode: Version 14.3 (14E222b)

@eskroch
Copy link
Member

eskroch commented May 6, 2023

How are you integrating Core Plot into your app? CocoaPods? Building from source from GitHub? Make sure you're using the latest code from the release-2.4 branch.

@sprout-apps
Copy link
Author

Yes, l'm using the latest release-2.4 branch and building from source. core-plot has been integrated into our projects for close to 10 years. Both are mixed projects with Objective-C and Swift and both are failing to build with the same error.

@sprout-apps
Copy link
Author

I was wondering if there was any update on this issue? Without the fix we are not able to make any development or production builds as our apps are heavily dependent on core-plot.

@eskroch
Copy link
Member

eskroch commented May 24, 2023

I suspect there's a project setting in your app that conflicts with recent updates to Core Plot done to fix various issues with the module interface.

Is there a way you could share your project or a stripped-down version with similar settings to help troubleshoot?

@sprout-apps
Copy link
Author

Unfortunately, I can't share the project code at this time. However, I do have more information. The last build that works is e0b8dd1. Here is some additional info from our developer:

"After that build there are various issues: with module verifier error; with double quoted includes error; and last one with a module map error."

He also believes that creating an empty project in Xcode with iOS app and importing core-plot source code directly into it would produce this error. I haven't tried it yet.

@myoung959
Copy link

Same problem here. I've been rebuilding all my apps that use CorePlot with the release-2.4 branch. Three worked fine, but the fourth fails and fails, even after rebuilding from scratch always with 'CorePlot.h" not found in file xxx.m even though #import "CorePlot.h" is in file xxx.h.

@myoung959
Copy link

Yes, I'll be happy to send you my source code.

@eskroch
Copy link
Member

eskroch commented Jun 16, 2023

Yes, I'll be happy to send you my source code.

My email address is listed in my profile. Thanks!

eskroch added a commit that referenced this issue Jul 5, 2023
…initions and fix issues with CocoaPods. Fixed issue #477.
@eskroch
Copy link
Member

eskroch commented Jul 8, 2023

I believe the build problems have been resolved on the release-2.4 branch. Please let me know if you're still seeing any issues.

@sprout-apps
Copy link
Author

Thanks for making the changes. I just tested and unfortunately I'm still seeing the same issue:

Umbrella header 'CorePlot.h' not found
Could not build Objective-C module 'CorePlot'

@eskroch
Copy link
Member

eskroch commented Jul 15, 2023

Does the error occur when building Core Plot by itself or just when building your app?

@sprout-apps
Copy link
Author

No, I can build Core Plot by itself, so only when building the app. It's a mix of Objective-C and Swift.

@eskroch
Copy link
Member

eskroch commented Jul 16, 2023

That sounds like an issue with the build configuration of your app. The Mac CPTTestApp example app (Objective-C) uses module references and two of the example apps (DatePlot and the iPhone CPTTestApp) are written in Swift. Pull the latest code from the release-2.4 branch and see if you can build those apps.

Take a look at the CorePlot framework in your build folder. The Headers folder inside the framework should contain 68 files, including CorePlot.h and 67 with filenames beginning with CPT*.

@sprout-apps
Copy link
Author

Unfortunately we are facing a deadline and I can't dedicate the time to follow your suggestions. For now we will continue to build using the last version that works: e0b8dd1. I'll try debugging on my end after our release.

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