Sunday, December 15, 2024
HomeiOS Developmentios - Swift Package deal Supervisor Transitive Native Dependency - package deal...

ios – Swift Package deal Supervisor Transitive Native Dependency – package deal is dependent upon native package deal, which isn’t supported


I’ve an iOS multi-repository app that makes use of cocoapods to sync a number of frameworks, I’m making an attempt emigrate to swift package deal supervisor whoever I am going through some difficulty whereas making an attempt to attach all dependencies, that is my structure:

My app is in a single repo and the remainder of the packages are in a unique repo, the package deal is a function module, that’s modularized internally to separate UI, Enterprise Logic and networking layer, every of them is a unique package deal, here’s a diagram that explains it higher:

Architecture diagram

Since MultiFrameWorkPackage has a dependency on different frameworks I must reference it regionally, nevertheless when I attempt to fetch MultiFrameWorkPackage remotely from MyApp.xcodeproj I get following error:

package deal ‘multiframeworks’ is required utilizing a revision-based
requirement and it is dependent upon native package deal ‘frameworka’, which isn’t
supported

Is there any workaround to attain this sort of structure with SPM?

Listed here are code examples, you’ll be able to even attempt operating it:

Repo 1:
https://github.com/lalejzapata/MyMainApp

Repo 2:
https://github.com/lalejzapata/MultiFrameworks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments