Open civatrix opened 1 year ago
I see the same issue
Are you able to use SPMs module aliases feature now?
I'm not using SPM at all, I'm just trying to build the framework as a binary with BUILD_LIBRARY_FOR_DISTRIBUTION=YES
, as the author suggested.
To solve this problem execute the archive with OTHER_SWIFT_FLAGS='-no-verify-emitted-module-interface'
Like:
xcodebuild archive -scheme <Name> -archivePath archives -destination "generic/platform=iOS" -sdk iphoneos BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_SWIFT_FLAGS='-no-verify-emitted-module-interface'
Describe the bug I'm building an XCFramework that includes this as a dependency via SPM. Because of a bug in the swift compiler, I'm unable to build my framework with yours included. tl;dr The module shares a name with a class within the module and Swift can't generate a correct
swiftinterface
fileIdeally if you could change the name of the module to something like
InputBarAccessoryViewKit
that would fix the issue until the compiler bug is resolved.To Reproduce
https://github.com/nathantannar4/InputBarAccessoryView
as a package (File -> Add Packages...)xcodebuild archive -scheme <Name> -archivePath archives -destination "generic/platform=iOS" -sdk iphoneos BUILD_LIBRARY_FOR_DISTRIBUTION=YES
Screenshots
Expected behavior The archive command should succeed
Environment
Additional context Add any other context about the problem here.