Skip to content

Can not compiled to xfcframework? #381

@yyaadet

Description

@yyaadet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions