Skip to content
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

Help pls with understood how make xcframeowrks? #14

Open
bimawa opened this issue Jun 6, 2022 · 0 comments
Open

Help pls with understood how make xcframeowrks? #14

bimawa opened this issue Jun 6, 2022 · 0 comments

Comments

@bimawa
Copy link

bimawa commented Jun 6, 2022

xcode 13.4 trying move from fat to xcframework.

  1. I create the package by: 'swift package init --type library`;
  2. Move our sources to Source folder;
  3. Generate archive for iOS:
xcodebuild archive -scheme TestFramework \
            -destination "generic/platform=iOS" \
            -archivePath ./Archive-iOS \
            -derivedDataPath ".build" \
            SKIP_INSTALL=NO \
            BUILD_LIBRARY_FOR_DISTRIBUTION=YES
  1. Generate archive for iOS Simulator:
xcodebuild archive -scheme TestFramework \
            -destination "generic/platform=iOS Simulator" \
            -archivePath ./Archive-iOSSimulator \
            -derivedDataPath ".build" \
            SKIP_INSTALL=NO \
            BUILD_LIBRARY_FOR_DISTRIBUTION=YES
  1. Generate the xcframework by docs:
xcodebuild -create-xcframework \
-framework './Archive-iOS.xcarchive/Products/Library/Frameworks/TestFramework.framework' \
-framework './Archive-iOSSimulator.xcarchive/Products/Library/Frameworks/TestFramework.framework' \
-output './Archive-iOS.xcarchive.xcframework'

got error: error: unable to read the file -> ./Archive-iOS.xcarchive/Products/Library/Frameworks/TestFramework.framework/TestFramework

Ofc, because on steps 3,4 I haven't this framework in archive. Where can I found correct documentation with step by step for make xcframeworks?
What I did wrong?

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

1 participant