From 69d4f99aa28c0e60cf762583c2e94aa76f2bdec0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 31 Dec 2013 16:48:07 -0800 Subject: [PATCH] The iOS entitlements break execution on Mac OS X. --- cycript.xml => cycript-ios.xml | 1 - cycript-mac.xml | 5 +++++ xcode.mk | 7 +++++-- 3 files changed, 10 insertions(+), 3 deletions(-) rename cycript.xml => cycript-ios.xml (99%) create mode 100644 cycript-mac.xml diff --git a/cycript.xml b/cycript-ios.xml similarity index 99% rename from cycript.xml rename to cycript-ios.xml index bf3c3a5..c159294 100644 --- a/cycript.xml +++ b/cycript-ios.xml @@ -9,4 +9,3 @@ - diff --git a/cycript-mac.xml b/cycript-mac.xml new file mode 100644 index 0000000..df80de7 --- /dev/null +++ b/cycript-mac.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/xcode.mk b/xcode.mk index 42aa66f..317bbeb 100644 --- a/xcode.mk +++ b/xcode.mk @@ -100,10 +100,13 @@ Cycript_/%.dylib: build.mac-i386/.libs/%.dylib build.mac-x86_64/.libs/%.dylib bu @mkdir -p $(dir $@) $(lipo) -create -output $@ $^ -Cycript_/%: build.mac-i386/.libs/% build.mac-x86_64/.libs/% build.ios-armv6/.libs/% +%_: % + @cp -af $< $@ + codesign -s $(codesign) --entitlement cycript-$(word 2,$(subst ., ,$(subst -, ,$*))).xml $@ + +Cycript_/%: build.mac-i386/.libs/%_ build.mac-x86_64/.libs/%_ build.ios-armv6/.libs/%_ @mkdir -p $(dir $@) $(lipo) -create -output $@ $^ - codesign -s $(codesign) --entitlement cycript.xml $@ Cycript_/libcycript-sys.dylib: @mkdir -p $(dir $@) -- 2.45.2