Skip to content

Commit

Permalink
Fixed the provisioning profiles for NetP
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed Oct 19, 2023
1 parent 57a58ed commit c0fb742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13347,6 +13347,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 4B4D604F2A0B293C00BCD287 /* NetworkProtectionSystemExtension.xcconfig */;
buildSettings = {
"DEVELOPMENT_TEAM[sdk=macosx*]" = HKE973VLUW;
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "macOS NetP VPN SysEx - Release (XPC)";
};
name = Release;
};
Expand Down Expand Up @@ -13377,6 +13379,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7BA7CC0C2AD11D1E0042E5CE /* DuckDuckGoVPN.xcconfig */;
buildSettings = {
"DEVELOPMENT_TEAM[sdk=macosx*]" = HKE973VLUW;
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "macOS NetP VPN App - Release (XPC)";
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ final class NetworkProtectionAppEvents {
// MARK: - Legacy Login Item and Extension

private func removeLegacyLoginItemAndVPNConfiguration() async {
LoginItem(bundleId: "HKE973VLUW.com.duckduckgo.macos.browser.network-protection.system-extension.agent.debug").forceStop()
LoginItem(bundleId: legacyAgentBundleID).forceStop()

let tunnels = try? await NETunnelProviderManager.loadAllFromPreferences()
let tunnel = tunnels?.first {
($0.protocolConfiguration as? NETunnelProviderProtocol)?.providerBundleIdentifier == "com.duckduckgo.macos.browser.debug.network-protection-extension"
($0.protocolConfiguration as? NETunnelProviderProtocol)?.providerBundleIdentifier == legacySystemExtensionBundleID
}

guard let tunnel else {
Expand Down

0 comments on commit c0fb742

Please sign in to comment.