Closed rickharrison closed 10 months ago
@rickharrison Thanks for the info.
If you do:
carthage update
cd Carthage/Checkouts/posthog-ios;pod install
// try to compile again
Does it work?
Thanks that appears to have worked:
carthage build posthog-ios --platform iOS --use-xcframeworks --no-use-binaries
*** xcodebuild output can be found in /var/folders/m9/2p5ztxyj6934tqgcrntmjz1w0000gn/T/carthage-xcodebuild.5tK8Pl.log
*** Building scheme "PostHog" in PostHog.xcworkspace
You might want to add that to this page: https://app.posthog.com/ingestion/mobile/ios
I can't be the only one who ran into this issue right?
@marandaneto It seems Carthage has been removed from the docs and all pages. Do you know why?
@rickharrison It is not very popular compared to SPM and Cocoapods, since we've rewritten the whole SDK, we did not implement it initially unless we saw the need for it. Can you use either one of them or is Carthage a must? if so, please open a feature request, I don't recall anyone else needing it.
Are you able to use SPM with an objective-c project? We don't use cocoa pods because of how heavy it is, and we don't want to swap over to cocoa pods for a single dependency.
@rickharrison the new SDK (v3+) is swift only, so yes you can use SPM.
When installing posthog via carthage I am getting the following build error:
Xcode version: 14.3.1 macOS: 13.4.1
Any ideas on how to install this using carthage?