News for hackers. Stuff that matters.
Re:CocoaPods Is Deprecated by armadsen on Monday September 01, 2025 @11:36AM (#45093584)
Right, but you can’t have a single package containing both ObjC and Swift. It’s a limitation of SwiftPM that has prevented me from using it for a few projects (I am using it in several others, though).
Re:CocoaPods Is Deprecated by einsteinx2 on Monday September 01, 2025 @05:00PM (#45096561)
You can mix them, it just has to be released as a binary framework which is a bit annoying as I would prefer a pure source release but it does work.
Re:CocoaPods Is Deprecated by josteink on Monday September 01, 2025 @05:07PM (#45096616)
Since it clearly wasn’t obvious, I was asking in the context of a package consumer, not publisher.

My involvement with MacOS development is somewhat limited and I have no plans publishing any packages yet ;)

Re:CocoaPods Is Deprecated by einsteinx2 on Monday September 01, 2025 @05:09PM (#45096628)
Oh gotcha, yeah they’re absolutely usable as any maintainer mixing the languages and providing SPM support will handle the binary release part. If anything it’s nicer for the consumer (binary releases in general) as it cuts down on full app rebuild times.
Re:CocoaPods Is Deprecated by josteink on Tuesday September 02, 2025 @04:39AM (#45100496)
I kept hitting my head against the wall, and getting a million stupid errors trying to resolve header files. But in the end I got it working, and I will no longer be one of the guys pestering the old Cocoapods servers :)

For whoever comes after me... When ChatGPT suggests changing your Objective-C from this:

   #import package.h
To this:

   #import <package/package.h>
Just skip that rabbithole of inifiny-nested failure, and just do this instead:

   @import package;
And you're done. You can thank me later :)