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

Error importing with SPM #13

Closed
gluonfield opened this issue Mar 24, 2021 · 6 comments · Fixed by #16
Closed

Error importing with SPM #13

gluonfield opened this issue Mar 24, 2021 · 6 comments · Fixed by #16
Assignees

Comments

@gluonfield
Copy link

gluonfield commented Mar 24, 2021

When importing PostHog via Swift Package Manager I end up with an error.

Could not build Objective-C module 'PostHog'

image

To reproduce the problem:

Simply create a new Xcode project using Swift and import PostHog from "https://github.com/PostHog/posthog-ios".

I'm not sure if I'm missing something basic or the package is not compatible with SPM. All ideas are appreciated!

@arunrdd
Copy link

arunrdd commented Mar 25, 2021

More specifically, XCode complains with the following error:

'PHGMiddleware.h' file not found

Occurs in the file posthog-ios/PostHog/Classes/Payloads/PHGPayloadManager.h on line #2

@JMCPH
Copy link

JMCPH commented May 14, 2021

I'm also experiencing this problem. Did you manage to find a solution to the issue?

@JMCPH
Copy link

JMCPH commented May 18, 2021

@arunrdd did you find a way to solve this error?

@kconrad-cls
Copy link

+1 to the people experiencing this problem.

@JMCPH
Copy link

JMCPH commented May 26, 2021

@mariusandra what is the status on this? We are still getting this error with importing objective-c headers
#import "PHGCrypto.h" in the PHGStorage.h file

@mariusandra
Copy link
Contributor

Version 1.4.0 should finally fix this!

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

Successfully merging a pull request may close this issue.

5 participants