Did more digging an this and looks like its dependent on order of PluginBundleIds array
Sys logs when tunnel2 is launched.
{"msg":"computing freshAuthorizationContext", "Client":"icom.testapp.testapp:", "ClientDictionary":"{\n BundleId = \"com.testapp.testapp\";\n BundlePath = \"\/private\/var\/containers\/Bundle\/Application\/777F64D2-D076-4B63-9AAD-A8DDA3C20A4E\/testapp.app\";\n Executable = \"\/private\/var\/containers\/Bundle\/Application\/777F64D2-D076-4B63-9AAD-A8DDA3C20A4E\/testapp.app\/testapp\";\n ExistsInLSDatabase = 1;\n InUseLevel = 5;\n PluginBundleIds = (\n \"com.testapp.testapp.cfcp\",\n \"com.testapp.testapp.cfdp\",\n \"com.testapp.testapp.tunnel2\",\n \"com.testapp.testapp.tunnel1\"\n );\n SuppressShowingInSettings = 1;\n}", "BigSwitch":1, "InUseLevel":{"type":"decode failure","raw value":5,"expected type":"Generic"}}
com.apple.networkextension default 11145 2024-08-08 14:54:18.995142 -0700 neagent Looking for an extension with identifier com.testapp.testapp.tunnel2 and extension point com.apple.networkextension.packet-tunnel
Sys logs when tunnel1 is launched
com.apple.locationd.Core default 75 2024-08-08 15:03:57.357930 -0700 locationd {"msg":"computing freshAuthorizationContext", "Client":"icom.testapp.testapp:", "ClientDictionary":"{\n BundleId = \"com.testapp.testapp\";\n BundlePath = \"\/private\/var\/containers\/Bundle\/Application\/93129BC4-3C01-41DE-B51D-A55B2831988D\/testapp.app\";\n Executable = \"\/private\/var\/containers\/Bundle\/Application\/93129BC4-3C01-41DE-B51D-A55B2831988D\/testapp.app\/testapp\";\n ExistsInLSDatabase = 1;\n InUseLevel = 5;\n PluginBundleIds = (\n \"com.testapp.testapp.cfdp\",\n \"com.testapp.testapp.cfcp\",\n \"com.testapp.testapp.tunnel1\",\n \"com.testapp.testapp.tunnel2\"\n );\n SuppressShowingInSettings = 1;\n}", "BigSwitch":1, "InUseLevel":{"type":"decode failure","raw value":5,"expected type":"Generic"}}
com.apple.networkextension default 11145 2024-08-08 15:04:11.909990 -0700 neagent Looking for an extension with identifier com.testapp.testapp.tunnel1 and extension point com.apple.networkextension.packet-tunnel
Question now is , how can I ensure that tunnel1 is first items in the plugins folder of my ipa file? Any recommendation from your side?
Topic:
App & System Services
SubTopic:
Networking
Tags: