Sha256: cabd9bf3c7a83d203d20d9f31ebf765ca5f2f8fa89c7479a989476b6b6d4daa9

Contents?: true

Size: 1.38 KB

Versions: 40

Compression:

Stored size: 1.38 KB

Contents

#!/bin/bash
set -e

WORKING_DIR=$(pwd)

FRAMEWORK_FOLDER_NAME="XCFramework"

FRAMEWORK_NAME="#{plugin_name}"

FRAMEWORK_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/${FRAMEWORK_NAME}.xcframework"

BUILD_SCHEME="#{plugin_name}"

SIMULATOR_ARCHIVE_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/simulator.xcarchive"

IOS_DEVICE_ARCHIVE_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/iOS.xcarchive"

rm -rf "${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}"
echo "Deleted ${FRAMEWORK_FOLDER_NAME}"
mkdir "${FRAMEWORK_FOLDER_NAME}"
echo "Created ${FRAMEWORK_FOLDER_NAME}"
echo "Archiving ${FRAMEWORK_NAME}"

xcodebuild -workspace "#{plugin_name}.xcworkspace" archive ONLY_ACTIVE_ARCH=NO ARCHS="#{archs}" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS Simulator" -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

xcodebuild archive -workspace "#{plugin_name}.xcworkspace" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS" -archivePath "${IOS_DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

xcodebuild -create-xcframework -framework ${SIMULATOR_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework -framework ${IOS_DEVICE_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework -output "${FRAMEWORK_PATH}"

rm -rf "${SIMULATOR_ARCHIVE_PATH}"
rm -rf "${IOS_DEVICE_ARCHIVE_PATH}"

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
gonative-cli-1.4.4 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.4.3 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.4.2 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.4.1 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.4.0 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.9 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.8 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.7 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.6 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.5 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.4 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.3 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.2 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.1 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.3.0 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.2.4 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.2.3 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.2.2 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.2.1 templates/build/ios/create-framework.sh.tpl
gonative-cli-1.2.0 templates/build/ios/create-framework.sh.tpl