SandBox popup validation

I want to use SandBox but I need to get rid of that popup menu : ""I can not load a .png"" so I do not know how to show the PopUp. Desktop/PopUpScreenShot.png

Could you please provide more details about the issue you're experiencing, including code snippets if possible that reproduces the problem.

Hi, Thank you for replying.

At last I found the way to include a screen shot : About the code that generate that PopUp, It is when I send a shell command to ipecmd.sh. ipecmd.sh is the interface to control an external "Microchip" programmer (ICD4). I think this is the relevant code for that action : NSString *ipeBasePath = @"/Applications/microchip/mplabx/v6.25/mplab_platform/mplab_ipe"; NSString *command = [NSString stringWithFormat:@"cd "%@" && PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH" bash "./bin/ipecmd.sh" -P16LF18326 -TSJIT180510799 -OD -W -F"%@" -S"%@" -M", ipeBasePath, self.hexFilePath, self.numFilePath];

NSLog(@"🚀 Programmation en cours...");
self.statusLabel.stringValue = @"Programation en cours ✅";

NSTask *task = [[NSTask alloc] init];
task.launchPath = @"/bin/bash";
task.arguments = @[@"-c", command];

When executing that code, the programming of the Microchip processor works fine but I always have to validate the PopUp. Later on, as this operation should work by itself, I will not be able to have an operator just to validate the PopUp (Place in the trash). I also attach the "CmdLine_v00.entitlements" that may be interesting : <?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> <!-- Activer le sandbox --> <key>com.apple.security.app-sandbox</key> <true/>

<!-- Permissions fichiers utilisateur -->
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>

<!-- Accès USB sans popup -->
<key>com.apple.security.device.usb</key>
<true/>

<!-- Accès réseau -->
<key>com.apple.security.network.client</key>
<true/>

<!-- AJOUT : Permissions spécifiques pour éviter les popups -->
<key>com.apple.security.temporary-exception.apple-events</key>
<string>identifier "com.apple.systemevents"</string>

</dict> </plist> I trier to solve the problem with ClaudeAI and chatGPTAI, both of them walked me around for two days without results. Let me know if you need some more information (sorry English is not my mother tongue). Kindly yours, Ichiyen

Sorry for my terrible answer layout. I have no idea how to clean it up. Let's try again :

NSString *ipeBasePath = @"/Applications/microchip/mplabx/v6.25/mplab_platform/mplab_ipe";
NSString *command = [NSString stringWithFormat:@"cd \"%@\" && PATH=\"/usr/bin:/bin:/usr/sbin:/sbin:$PATH\" bash \"./bin/ipecmd.sh\" -P16LF18326 -TSJIT180510799 -OD -W -F\"%@\" -S\"%@\" -M",
ipeBasePath, self.hexFilePath, self.numFilePath];

NSLog(@"🚀 Programmation en cours...");
self.statusLabel.stringValue = @"Programation en cours ✅";

NSTask *task = [[NSTask alloc] init];
task.launchPath = @"/bin/bash";
task.arguments = @[@"-c", command];

It looks better. Do you need any comments in the listing ?

SandBox popup validation
 
 
Q