Last active
May 25, 2025 21:27
-
-
Save denandreychuk/24db6b6c2296b70da13f81b21459f243 to your computer and use it in GitHub Desktop.
Скрипт для создания XCFramework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Основы Cocoapods 04: Как создать библиотеку без исходного кода? | |
# https://youtu.be/LjPBxPywGoI | |
# zip -r PMComplitedUserPrinter.zip LICENSE PMUserPrinter.xcframework | |
xcodebuild archive \ | |
-workspace PMUserPrinter.xcworkspace \ | |
-scheme PMUserPrinter \ | |
-sdk iphoneos \ | |
-archivePath "xcframework_archives/ios_devices.xcarchive" \ | |
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ | |
SKIP_INSTALL=NO | |
xcodebuild archive \ | |
-workspace PMUserPrinter.xcworkspace \ | |
-scheme PMUserPrinter \ | |
-sdk iphonesimulator \ | |
-archivePath "xcframework_archives/ios_simulators.xcarchive" \ | |
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ | |
SKIP_INSTALL=NO | |
xcodebuild -create-xcframework \ | |
-framework xcframework_archives/ios_devices.xcarchive/Products/Library/Frameworks/PMUserPrinter.framework \ | |
-framework xcframework_archives/ios_simulators.xcarchive/Products/Library/Frameworks/PMUserPrinter.framework \ | |
-output PMUserPrinter.xcframework |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment