Post

Replies

Boosts

Views

Activity

Reply to SandBox popup validation
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 ?
Topic: UI Frameworks SubTopic: General Tags:
Jul ’25
Reply to SandBox popup validation
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 : <!-- 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>
Topic: UI Frameworks SubTopic: General Tags:
Jul ’25