XCframework compilation fails due to macros #2639
Replies: 2 comments 5 replies
-
Unfortunately I have not had a chance to try the new composable architecture version. I hope, @stephencelis and @mbrandonw will get some time to react to this discussion at some point. (They have been very helpful in trying to resolve compilation issues in the past, but beware that it can also be some intrinsic Apple problem). I remember finding a problem in their generic frameworks, and Apple folks very kind to eventually implement some workaround to get it to compile. Not sure about this one though... (May take some time if it's on the Apple's side). |
Beta Was this translation helpful? Give feedback.
-
I was able to make an XCFramework for Composable Architecture (and its dependencies) using Scipio.
While it generated XCFrameworks without any issues, and the frameworks seem to work fine when used in an Xcode project, the macros unfortunately do not work. When trying to use
I'm not sure how to fix the problem. I've opened an issue regarding it, and looking for support. Besides this, I haven't found any problems so far. I'm able to use the Composable Architecture distributed in an XCFramework. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone.
I use the ComposableArchitecture in my project as a xcframework and imported as a binary target. I've been using it like this for some time without any issues. It allows faster compile times in my project.
I haven't updated the ComposableArchitecture dependency for quite some time and today I decided to update it so I could also play with the new macro features. I can't seem to compile it into an xcframework anymore, I get the error:
"Internal error. Please file a bug at https://github.com/apple/swift-package-manager/issues with this info. macro not supported"**
@flockoffiles I know you also use The Composable Architecture in your project as a xcframework. Are you able to compile the latest version?
Does anyone want to chime in?
For reference I'm using the following command to try and compile it:
swift create-xcframework ComposableArchitecture CasePaths CombineSchedulers ConcurrencyExtras CustomDump Dependencies DependenciesMacros IdentifiedCollections OrderedCollections SwiftUINavigationCore XCTestDynamicOverlay --clean --configuration release --debug-symbols --stack-evolution --platform ios --platform macos --platform tvos --platform watchos --output xcframeworks
Beta Was this translation helpful? Give feedback.
All reactions