You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to link with a SPM package that contains both iOS & macOS dependencies, an .o file is not generated for the macOS dependency and the binary target .xcframework it includes is not copied to DerivedData.
This results in the following error:
If I manually edit the .xcconfig and remove -l"SamplePackageB-macOS.o", I am met with a new error related to the .xcframework it includes (LAME.xcframework):
If I remove both -l"SamplePackageB-macOS.o" and -framework "LAME" I am able to compile successfully.
When importing SamplePackageA through native SPM (not via cocoapods-spm), this is not an issue.
Since the .xcconfig is generated upon pod install, you will need to do that locally, but feel free to use this branch on my fork: kalub92/macos-dependency-framework-issue
What happened?
When attempting to link with a SPM package that contains both iOS & macOS dependencies, an
.o
file is not generated for the macOS dependency and the binary target.xcframework
it includes is not copied to DerivedData.This results in the following error:
If I manually edit the
.xcconfig
and remove-l"SamplePackageB-macOS.o"
, I am met with a new error related to the.xcframework
it includes (LAME.xcframework
):If I remove both
-l"SamplePackageB-macOS.o"
and-framework "LAME"
I am able to compile successfully.When importing
SamplePackageA
through native SPM (not viacocoapods-spm
), this is not an issue.Since the .xcconfig is generated upon pod install, you will need to do that locally, but feel free to use this branch on my fork: kalub92/macos-dependency-framework-issue
CocoaPods environment
Stack
Installation Source
Plugins
Podfile
Anything else?
No response
The text was updated successfully, but these errors were encountered: