Skip to content

Can not compiled to xfcframework? #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yyaadet opened this issue Feb 4, 2025 · 1 comment
Open

Can not compiled to xfcframework? #381

yyaadet opened this issue Feb 4, 2025 · 1 comment

Comments

@yyaadet
Copy link

yyaadet commented Feb 4, 2025

Thank you for contributing to MarkdownUI!

Before you submit an issue, please complete the report with all the relevant details for your bug and go through every item in the checklist.

Describe the bug

I want to compile a xfcframework for my project. Next is my build script:

#!/bin/zsh

export SWIFT_VERSION=5.9


SWIFT_OPTIMIZATION_LEVEL="-Onone"


xcodebuild archive \
    -scheme MarkdownUI \
    -destination "platform=macOS,arch=arm64" \
    -archivePath ./build/macos_arm64.xcarchive \
    SKIP_INSTALL=NO \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
    SWIFT_OPTIMIZATION_LEVEL=${SWIFT_OPTIMIZATION_LEVEL}


xcodebuild -create-xcframework \
    -framework ./build/macos_arm64.xcarchive/Products/Library/Frameworks/MarkdownUI.framework \
    -output ./build/MarkdownUI.xcframework


Returns:

Image
@choule99
Copy link

Unless I am mistaken, this is normal because xcframework do not allow transitive dependencies through XCFrameworks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants