From ac18c552b6548f08b3a662f833e983c3f6949b52 Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Sat, 3 Mar 2018 21:39:06 +0800 Subject: [PATCH 1/2] fix xcode 9 build error --- Makefile | 2 +- MobileDevice.framework => f/MobileDevice.framework | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename MobileDevice.framework => f/MobileDevice.framework (100%) diff --git a/Makefile b/Makefile index 09c14f6..984a0d0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: @echo "Making deviceconsole..." - @$(CC) -O3 main.c tail.c -o deviceconsole -F/System/Library/PrivateFrameworks/ -framework MobileDevice -framework CoreFoundation + @$(CC) -O3 main.c tail.c -o deviceconsole -F./f/ -framework MobileDevice -framework CoreFoundation @mv ./deviceconsole /usr/local/bin @echo "deviceconsole succesfully built and installed. :D" diff --git a/MobileDevice.framework b/f/MobileDevice.framework similarity index 100% rename from MobileDevice.framework rename to f/MobileDevice.framework From dcd6a265938c8a45304944f5b2d325726fd700cb Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Sat, 3 Mar 2018 21:47:52 +0800 Subject: [PATCH 2/2] chmod +x --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 984a0d0..113b3fd 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ all: @echo "Making deviceconsole..." @$(CC) -O3 main.c tail.c -o deviceconsole -F./f/ -framework MobileDevice -framework CoreFoundation - @mv ./deviceconsole /usr/local/bin + @mv ./deviceconsole /usr/local/bin/ + @chmod +x /usr/local/bin/deviceconsole @echo "deviceconsole succesfully built and installed. :D" .PHONY: all