Skip to content

Instantly share code, notes, and snippets.

View ghostwolf90's full-sized avatar

LaiBit ghostwolf90

  • Ubitech Inc.
  • Taiwan
View GitHub Profile
//
// parkingDate.swift
// stopTest
//
// Created by Laibit on 2015/7/28.
// Copyright (c) 2015年 Laibit. All rights reserved.
//
import UIKit
@ghostwolf90
ghostwolf90 / universal-framework.sh
Created June 8, 2019 09:12 — forked from cromandini/universal-framework.sh
This run script will build the iphoneos and iphonesimulator schemes and then combine them into a single framework using the lipo tool (including all the Swift module architectures).
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Step 1. Build Device and Simulator versions
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build