How to sandbox a command line tool?

后端 未结 4 1776
灰色年华
灰色年华 2020-12-25 08:17

I\'ve a simple unix tool made by me that launches the main cocoa app from a shell.

I need to sandbox it but when I run it, it crashes with error \"Illegal instructio

4条回答
  •  抹茶落季
    2020-12-25 09:05

    While @Nick Moore's answer is perfectly fine, there's an option for this in today's Xcode under Packaging - Create Info.plist Section in Binary (CREATE_INFOPLIST_SECTION_IN_BINARY). All that's needed is setting thue to Yes.

提交回复
热议问题