(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# -*- coding: utf-8 -*- | |
# | |
require 'rubygems' | |
require 'xcodeproj' | |
ADD_FRAMEWORKS = %w{ | |
AddressBook | |
AVFoundation | |
GameKit | |
libicucore.A.dylib |
#!/bin/sh | |
# Current as working as of 2012/4/17 | |
# Xcode 4.3.2 | |
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" | |
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" | |
CONFIG="AdHoc" | |
SCHEME="XXXXXXXX" |
#!/usr/bin/env ruby | |
# | |
# PostprocessBuildPlayer | |
# Tested on Ruby 1.8.7, Gem 1.3.6, and xcodeproj 0.3.0 | |
# Created by akisute (http://akisute.com) | |
# Licensed under The MIT License: http://opensource.org/licenses/mit-license.php | |
# | |
require 'rubygems' | |
require 'xcodeproj' | |
require 'pathname' |
extern "C" | |
{ | |
int _pow2(int x) | |
{ | |
// Just a simple example of returning an int value | |
return x * x; | |
} | |
// Returns a char* (a string to Unity) | |
char* _helloWorldString() |
require 'xcodeproj' | |
project_path = "your_project_path"; | |
# Create project object | |
project = Xcodeproj::Project.new(project_path); | |
lib_path = "your_lib_path"; | |
# Add the lib file as a reference | |
libRef = project.new_file(lib_path, "Frameworks"); |
@interface UIView (MPAdditions) | |
@end | |
@implementation UIView (MPAdditions) | |
- (id)debugQuickLookObject { | |
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) { | |
return nil; | |
} | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.