This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find “$PROJECT_DIR/Carthage/Build/iOS” -name ‘*.framework’ -type d | while read -r FRAMEWORK | |
do | |
PATH_COUNT=$(echo “$FRAMEWORK/” | grep -o ‘/’ | wc -l) | |
FILE_NAME=$(echo $FRAMEWORK | cut -d ‘/’ -f $PATH_COUNT | cut -d ‘.’ -f 1) | |
EXECUTE_FILE=“$FRAMEWORK/$FILE_NAME” | |
echo $EXECUTE_FILE | |
if $(lipo $EXECUTE_FILE -verify_arch i386) ; then | |
lipo -remove i386 $EXECUTE_FILE -o $EXECUTE_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "UIApplication+EventInterceptor.h" | |
#import <objc/runtime.h> | |
#import "EventLogger.h" | |
@implementation UIApplication (EventInterceptor) | |
+(void) load | |
{ | |
//Swap the implementations of our interceptor and the original sendEvent: | |
Method oldMethod = class_getInstanceMethod(self, @selector(sendEvent:)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "UIApplication+EventInterceptor.h" | |
#import <objc/runtime.h> | |
#import "EventLogger.h" | |
@implementation UIApplication (EventInterceptor) | |
+(void) load | |
{ | |
//Swap the implementations of our interceptor and the original sendEvent: | |
Method oldMethod = class_getInstanceMethod(self, @selector(sendEvent:)); |