]> git.saurik.com Git - cycript.git/commitdiff
The iOS entitlements break execution on Mac OS X.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Jan 2014 00:48:07 +0000 (16:48 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Jan 2014 00:48:07 +0000 (16:48 -0800)
cycript-ios.xml [new file with mode: 0644]
cycript-mac.xml [new file with mode: 0644]
cycript.xml [deleted file]
xcode.mk

diff --git a/cycript-ios.xml b/cycript-ios.xml
new file mode 100644 (file)
index 0000000..c159294
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>com.apple.springboard.debugapplications</key>
+       <true/>
+       <key>get-task-allow</key>
+       <true/>
+       <key>task_for_pid-allow</key>
+       <true/>
+</dict>
+</plist>
diff --git a/cycript-mac.xml b/cycript-mac.xml
new file mode 100644 (file)
index 0000000..df80de7
--- /dev/null
@@ -0,0 +1,5 @@
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+</dict>
+</plist>
diff --git a/cycript.xml b/cycript.xml
deleted file mode 100644 (file)
index bf3c3a5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>com.apple.springboard.debugapplications</key>
-       <true/>
-       <key>get-task-allow</key>
-       <true/>
-       <key>task_for_pid-allow</key>
-       <true/>
-</dict>
-</plist>
-
index 42aa66f4b537dd78effda78a694b542c021f37b7..317bbeb07d5c5a33810d01b8b5ddb861f41f7392 100644 (file)
--- 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 $@)