Skip to content

Commit

Permalink
Enable application extension api only flag
Browse files Browse the repository at this point in the history
  • Loading branch information
marekpridal committed May 11, 2020
1 parent 2ee767b commit 2be7966
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions create-xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,62 @@ xcodebuild archive \
-destination "generic/platform=iOS" \
-archivePath "archives/LogKit-iOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=iOS Simulator" \
-archivePath "archives/LogKit-iOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=watchOS" \
-archivePath "archives/LogKit-watchOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=watchOS Simulator" \
-archivePath "archives/LogKit-watchOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=tvOS" \
-archivePath "archives/LogKit-tvOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=tvOS Simulator" \
-archivePath "archives/LogKit-tvOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-destination "generic/platform=macOS" \
-archivePath "archives/LogKit-macOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES

xcodebuild -create-xcframework \
-framework "archives/LogKit-iOS.xcarchive/Products/Library/Frameworks/LogKit.framework" \
Expand Down

0 comments on commit 2be7966

Please sign in to comment.