Skip to content

Instantly share code, notes, and snippets.


Leo Natan LeoNatan

View GitHub Profile
View Take control of macOS
csrutil disable
sudo nvram boot-args="amfi_get_out_of_my_way=1"
sudo spctl --master-disable
sudo defaults write /Library/Preferences/ Entitlements -string always
sudo defaults write /Library/Preferences/ AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/ DisableLibraryValidation -bool YES
LeoNatan /
Created Feb 2, 2017
Creating a universal fat
# make sure the output directory exists
# 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
# Step 2. Copy the framework structure (from iphoneos build) to the universal folder
View gist:9532361
@import ObjectiveC;
@interface NSObject (LN_FORCE_SHAPES)
@implementation NSObject (LN_FORCE_SHAPES)
+ (void)load