We have a project, where we use compose multiplatf...
# multiplatform
d
We have a project, where we use compose multiplatform with the multiplatform resources library. The library will be distributed as both a Cocoapods dependency and Swift Package Manager dependency. This inherently means that the project our shared code will be used in doesn’t reside in the same repo. We’re experiencing differences when building through XCode (from the sample project inside the library repo) and from the command line. For example when running
podPublishDebugXCFramework
the
build/compose/ios/<name>/compose-resources
directory is missing. And when building through AS or XC (where the gradle
syncFrameworks
command is hooked as an XC build phase with some mysterious parameters) we have everything we need. Is there a way to build the library through the command line?
And the generated podspec within the build folder has the resources directory specified, but since the dir is missing, this leads to MissingResource crashes
Copy code
spec.resources = ['build/compose/ios/KMPPaymentCards/compose-resources'] # doesn't exist when running podPublishDebugXCFramework