Added apple debug signing requirements

main
noah metz 2024-11-04 00:46:36 -07:00
parent 1d85024a6a
commit b3a75df762
2 changed files with 23 additions and 1 deletions

@ -38,7 +38,7 @@ roleplay: $(OBJECTS)
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
.PHONY: clean clean_compdb .PHONY: clean clean_compdb run
clean: clean:
rm -f $(SPV_FILES) rm -f $(SPV_FILES)
@ -53,6 +53,10 @@ clean_compdb:
run: roleplay $(SPV_FILES) run: roleplay $(SPV_FILES)
./roleplay ./roleplay
.PHONY: debug-sign
debug-sign:
codesign --entitlements ./ent.plist -f -s "fake-apple-signing" ./roleplay
roleplay.dSYM: roleplay roleplay.dSYM: roleplay
$(DSYM) roleplay $(DSYM) roleplay

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>