Full Disk Access for a command line tool (not a helper tool)

Problem:


o A basic command line tool with no (__TEXT,__info_plist) section and properly codesigned can be added to the FDA list in the Privacy Pref pane.


Yet this does not let the command line tool access the protected folders.


o The same basic command line tool with a (__TEXT,__info_plist) section and propertly codesigned can be added to the FDA list in the Privacy Pref pane.


Yet this does not let the command line tool access the protected folders.


o A basic Cocoa app (bundle app) with the same code and properly codesigned can be added to the FDA List in the Privacy pref pane.


This works just fine.


Question:


How do you enable Full Disk Access for a command line tool (that is not a helper tool for a bundle app)?



Could there be some key-values that are required and missing in the (__TEXT,__info_plist) section?


CFBundleName, CFBundleExecutable were added or removed with no effect, CFBundleIdentifier looks fine as codesign -d -v shows).


The (__TEXT,__info_plist) section does not look bad according to otool -P.

Replies

OK, problem solved. You absolutely need to enable FDA for the Terminal.app.


Enabling a command line tool and calling it from the Terminal does not work.


This is not handy for tests.