I have a problem with Swift package dependencies. My workspace is structured so that I have six frameworks. There are several dependencies between them.
I tried to provide DataTypes and DataService as XCFramework in a local Swift package as targets.
DataTypes has no dependencies. Consequently, I can import DataTypes in all other frameworks without any problem.
The problem is with DataService. Since DataService depends on Apollo and ApolloSQLite, I created a Swift package Target DataServiceDependencies that contains the two dependencies. The DataService framework imports this Swift Package Target. I then archive the framework and create an XCFramework from it, which is inserted into the local Swift Package as a target.
If I now import DataService as Swift Package for the other frameworks, I get the error: "Missing required module 'SQLiteObjc'." in RoutingService. I know that SQLiteObjc belongs to SQLite.swift which is imported by ApolloSQLite.
I am stuck with this error and hope someone can help me...