I have a network extension that has an Info.plist with an entry as follows:
<key>XPCService</key>
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>Whatever</key>
<string>Whoever</string>
<key>DYLD_INSERT_LIBRARIES</key>
<string>/usr/lib/libgmalloc.dylib</string>
</dict>
</dict>
It is my understanding that this should set the DYLD_INSERT_LIBRARIES variable. When I dump my environment to the console, however, the variable is not set and guard malloc is clearly not being activated (note also that the Whatever/Whoever variable is also not being set). How can I get Guard Malloc to run for a network extension?
<key>XPCService</key>
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>Whatever</key>
<string>Whoever</string>
<key>DYLD_INSERT_LIBRARIES</key>
<string>/usr/lib/libgmalloc.dylib</string>
</dict>
</dict>
It is my understanding that this should set the DYLD_INSERT_LIBRARIES variable. When I dump my environment to the console, however, the variable is not set and guard malloc is clearly not being activated (note also that the Whatever/Whoever variable is also not being set). How can I get Guard Malloc to run for a network extension?