From cd0c51c77f602dfda99f67906dd115c5e561218c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 24 Sep 2013 15:48:59 -0700 Subject: [PATCH] We need to codesign cycript with our entitlements. --- .gitignore | 1 + xcode.mk | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index c165f6e..e7536fa 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ libtool .dirstamp .libs autom4te.cache +codesign.mk config.h control control.tmp diff --git a/xcode.mk b/xcode.mk index 5155721..edebc70 100644 --- a/xcode.mk +++ b/xcode.mk @@ -20,6 +20,8 @@ .DELETE_ON_ERROR: SHELL := /bin/bash +include codesign.mk + lipo := $(shell xcrun --sdk iphoneos -f lipo) cycript := @@ -97,6 +99,8 @@ $(foreach arch,armv6,$(eval $(call build_arm,$(arch)))) Cycript_/%: build.mac-i386/.libs/% build.mac-x86_64/.libs/% build.ios-armv6/.libs/% @mkdir -p $(dir $@) $(lipo) -create -output $@ $^ + # XXX: this should probably not entitle the dylibs + codesign -s $(codesign) --entitlement cycript.xml $@ Cycript_/libcycript-sys.dylib: @mkdir -p $(dir $@) @@ -105,6 +109,7 @@ Cycript_/libcycript-sys.dylib: Cycript_/libcycript-sim.dylib: build.sim-i386/.libs/libcycript.dylib @mkdir -p $(dir $@) cp -af $< $@ + codesign -s $(codesign) $@ libcycript-%.o: build.%/.libs/libcycript.a @mkdir -p $(dir $@) -- 2.49.0