Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged

Hi.

After the recent update of Ventura to 13.4 and Big Sur to 11.7.7

all of a sudden "launchctl setenv" returns the following errors.

Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged

Is there any workaround to fix this?

Hi, did you find the solution? I have the same problem.

No Luck. Now it seems like there is no way to pass env variable to the installer.

Also looking for a workaround or alternative solution to this problem.

I think this issue is fixed in 13.4.1c

This error appears only when running with "sudo launchctl setenv", without "sudo" it works well.

Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged
 
 
Q