Skip to content

Instantly share code, notes, and snippets.

Avatar

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/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
@LeoNatan
LeoNatan / build_framework.sh
Created Feb 2, 2017
Creating a universal fat
View build_framework.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
# Step 2. Copy the framework structure (from iphoneos build) to the universal folder
View gist:9532361
@import ObjectiveC;
@interface NSObject (LN_FORCE_SHAPES)
@end
@implementation NSObject (LN_FORCE_SHAPES)
+ (void)load
{