Skip to content

Instantly share code, notes, and snippets.

voxels /
Last active May 30, 2018 — forked from steipete/
This filter script phase is required to remove unused architectures from your application, which would be flagged as issue during upload to the Apple AppStore. Read more at
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
voxels /
Last active May 30, 2018 — forked from atsepkov/
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). This version works with Cocoapods, merging simulator and device architectures for intermediate libraries as well. To use this script, go to Product > Scheme > Edit S…
# This XCode scheme archive post-action script combines the device and iOS simulator frameworks into a single binary
# so that the encapsulated library can be run in both contexts. PLEASE NOTE: the iOS Simulator framework must be REMOVED
# before submitting this binary to the app store
# Source:
# Based on:
# Resources:
# -
# -
voxels / ConcurrentOperation.swift
Created Jan 15, 2017 — forked from calebd/AsynchronousOperation.swift
Concurrent NSOperation in Swift
View ConcurrentOperation.swift
import Foundation
/// An abstract class that makes building simple asynchronous operations easy.
/// Subclasses must implement `execute()` to perform any work and call
/// `finish()` when they are done. All `NSOperation` work will be handled
/// automatically.
open class Operation: Foundation.Operation {
// MARK: - Properties
You can’t perform that action at this time.