Skip to content

Instantly share code, notes, and snippets.

@denandreychuk
Last active May 25, 2025 21:27
Show Gist options
  • Save denandreychuk/24db6b6c2296b70da13f81b21459f243 to your computer and use it in GitHub Desktop.
Save denandreychuk/24db6b6c2296b70da13f81b21459f243 to your computer and use it in GitHub Desktop.
Скрипт для создания XCFramework
# Основы 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