Skip to content

Instantly share code, notes, and snippets.

View tmaes's full-sized avatar

Tom Maes tmaes

  • itsuma AB
  • Stockholm, Sweden
View GitHub Profile
@tmaes
tmaes / loggingPrint.swift
Created March 29, 2017 11:02 — forked from Abizern/loggingPrint.swift
Debug logging for Swift
//
// LoggingPrint.swift
//
import Foundation
/**
Prints the filename, function name, line number and textual representation of `object` and a newline character into
the standard output if the build setting for "Active Complilation Conditions" (SWIFT_ACTIVE_COMPILATION_CONDITIONS) defines `DEBUG`.
@tmaes
tmaes / gist:3df2a7e0238ad674fd840b8f54aaf008
Last active June 21, 2016 08:48 — forked from steipete/ios-xcode-device-support.sh
Using Xcode 7.3.1 and iOS 10 devices
// The trick is to copy the DeviceSupport folder from the beta to the stable version.
// (or make a symbolic link)
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5261u\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode. You might need to do that for every beta of iOS 10/Xcode 8.
@tmaes
tmaes / version.sh
Created May 13, 2016 12:31 — forked from osteslag/version.sh
Script for managing build and version numbers using git and agvtool. See link in comments below.
#!/bin/sh
# Script for managing build and version numbers using git and agvtool.
# Change log:
# v1.0 18-Jul-11 First public release.
# v1.1 29-Sep-12 Launch git, agvtool via xcrun.
version() {