-
Notifications
You must be signed in to change notification settings - Fork 500
How to compile LuLu step-by-step #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Aloha, tl;dr I guessing its failing as you don't have the System Extension entitlement? That error is thrown here: The Line 22 in 4136b68
You can see that it just calls into the You can read all about this in a recent talk I gave: https://speakerdeck.com/patrickwardle/nothing-but-net-leveraging-macoss-networking-frameworks-to-heuristically-detect-malware If I had to guess these macOS APIs are failing as you don't have the necessary "System Extension" entitlement that must be explicty granted to you by Apple: On Apple developer site, you can find a link to apply for the this entitlement: https://developer.apple.com/contact/request/system-extension/ I'd suggest
Hope this helps |
Thank you for the details! I ended up switching to another OS firewall but will return to LuLu if I run into issues there. I will leave this 'issue' open for future devs that want to try compiling LuLu |
Hello o/ I'm reproducing this step-by-step and reach at the same error as @sam49358. When I was creating the identifier, I enable the System Extension, idk if is enough. Also, I tried to turn off the SIP and launch again the application, but error still appear. Suggestions to just build and test or the only way is ask to Apple for System Entitlement? Any help would be appreciated @objective-see :). |
I have faced the same problems as @sam49358 and I would like to highlight some steps that were missed. In the LuLu App, along with both targets (LuLu and Extensions), there are some mismatches in build settings in XCode e.g. Product Name. Those values must match your bundle. But these things are not enough to build the application. I checked the syslogs with Line 22 in 4136b68
request Line 40 in 4136b68
Therefore, if you are signing the software with your own certificate and bundle, you will need to change all references in Solution:My solution to this issue is to place the hardcoded code part in a configuration file, which would simplify the process. I will be opening a pull request with the appropriate changes soon." |
Sidenote: OP's directions need an update to include making an app group id and associating it with each app id, inter alia tl;dr look to empty out (Edit: and maybe As to moving forward, Yeah, as above, the core reported error from
(and I'm frankly surprised that the notarization servers will return an artifact with that sort of mismatch but c'est la vie
and for completeness here is: git commit -am "the changes" && git format-patch HEAD~1 && \<br>
sed -i'' -e "s/${REDACTED_APP_ID_PREFIX}/your.bundle.id/g;s/${REDACTED_TEAM_ID}/UR73AMID/g" ./0001-the-changes.patch <br>
# I have no idea why I'm acting like these are sensitive
# ... but I mean, you definitely don't want mine, they won't work for you
# You probs also don't want my provisioning profile names, "Lilith Lulu App" and "Lilith Lulu Extension",
#nor the couple "Donald Guy"s that replaced "Objective See, LLC"s but I'm too lazy to remove those ^ the 632 post-stat lines of that, if you'd rather see here with syntax highlightingdiff --git a/LuLu/App/App.entitlements b/LuLu/App/App.entitlements
index 42fab08..06e64fd 100644
--- a/LuLu/App/App.entitlements
+++ b/LuLu/App/App.entitlements
@@ -10,7 +10,7 @@
<true/>
<key>com.apple.security.application-groups</key>
<array>
- <string>$(TeamIdentifierPrefix)com.objective-see.lulu</string>
+ <string>$(TeamIdentifierPrefix)group.your.bundle.id.lulu</string>
</array>
</dict>
</plist>
diff --git a/LuLu/Extension/Extension.entitlements b/LuLu/Extension/Extension.entitlements
index c1eb3ab..b2f090f 100644
--- a/LuLu/Extension/Extension.entitlements
+++ b/LuLu/Extension/Extension.entitlements
@@ -12,7 +12,7 @@
</array>
<key>com.apple.security.application-groups</key>
<array>
- <string>$(TeamIdentifierPrefix)com.objective-see.lulu</string>
+ <string>$(TeamIdentifierPrefix)your.bundle.id.lulu</string>
</array>
</dict>
</plist>
diff --git a/LuLu/Extension/Info.plist b/LuLu/Extension/Info.plist
index 704a677..686634b 100644
--- a/LuLu/Extension/Info.plist
+++ b/LuLu/Extension/Info.plist
@@ -29,7 +29,7 @@
<key>NetworkExtension</key>
<dict>
<key>NEMachServiceName</key>
- <string>$(TeamIdentifierPrefix)com.objective-see.lulu</string>
+ <string>$(TeamIdentifierPrefix)your.bundle.id.lulu</string>
<key>NEProviderClasses</key>
<dict>
<key>com.apple.networkextension.filter-data</key>
diff --git a/LuLu/Extension/main.m b/LuLu/Extension/main.m
index c0c3f4a..3b45690 100644
--- a/LuLu/Extension/main.m
+++ b/LuLu/Extension/main.m
@@ -7,7 +7,7 @@
//
//FOR LOGGING:
-// % log stream --level debug --predicate="subsystem='com.objective-see.lulu'"
+// % log stream --level debug --predicate="subsystem='your.bundle.id.lulu'"
#import "main.h"
diff --git a/LuLu/LuLu.xcodeproj/project.pbxproj b/LuLu/LuLu.xcodeproj/project.pbxproj
index 9eb99c5..918c774 100644
--- a/LuLu/LuLu.xcodeproj/project.pbxproj
+++ b/LuLu/LuLu.xcodeproj/project.pbxproj
@@ -61,7 +61,7 @@
CDB2CC3324D61B3900D0EECE /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDB2CC3224D61B3900D0EECE /* NetworkExtension.framework */; };
CDB2CC3724D61B3900D0EECE /* FilterDataProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = CDB2CC3624D61B3900D0EECE /* FilterDataProvider.m */; };
CDB2CC3924D61B3900D0EECE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDB2CC3824D61B3900D0EECE /* main.m */; };
- CDB2CC3E24D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension in Embed System Extensions */ = {isa = PBXBuildFile; fileRef = CDB2CC3024D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+ CDB2CC3E24D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension in Embed System Extensions */ = {isa = PBXBuildFile; fileRef = CDB2CC3024D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
CDB2CC4424DBE48100D0EECE /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDB2CC3224D61B3900D0EECE /* NetworkExtension.framework */; };
CDB909EB2B72BC230043FEB4 /* Configure.m in Sources */ = {isa = PBXBuildFile; fileRef = CDB909EA2B72BC230043FEB4 /* Configure.m */; };
CDC378C7250C66C300314064 /* Extension.m in Sources */ = {isa = PBXBuildFile; fileRef = CDC378C6250C66C300314064 /* Extension.m */; };
@@ -90,7 +90,7 @@
dstPath = "$(SYSTEM_EXTENSIONS_FOLDER_PATH)";
dstSubfolderSpec = 16;
files = (
- CDB2CC3E24D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension in Embed System Extensions */,
+ CDB2CC3E24D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension in Embed System Extensions */,
);
name = "Embed System Extensions";
runOnlyForDeploymentPostprocessing = 0;
@@ -194,7 +194,7 @@
CDB2CC2324D61A5000D0EECE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CDB2CC2424D61A5000D0EECE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
CDB2CC2624D61A5000D0EECE /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
- CDB2CC3024D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension */ = {isa = PBXFileReference; explicitFileType = "wrapper.system-extension"; includeInIndex = 0; path = "com.objective-see.lulu.extension.systemextension"; sourceTree = BUILT_PRODUCTS_DIR; };
+ CDB2CC3024D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension */ = {isa = PBXFileReference; explicitFileType = "wrapper.system-extension"; includeInIndex = 0; path = your.bundle.id.lulu.extension.systemextension; sourceTree = BUILT_PRODUCTS_DIR; };
CDB2CC3224D61B3900D0EECE /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; };
CDB2CC3524D61B3900D0EECE /* FilterDataProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FilterDataProvider.h; sourceTree = "<group>"; };
CDB2CC3624D61B3900D0EECE /* FilterDataProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FilterDataProvider.m; sourceTree = "<group>"; };
@@ -282,7 +282,7 @@
isa = PBXGroup;
children = (
CDB2CC1824D61A4E00D0EECE /* LuLu.app */,
- CDB2CC3024D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension */,
+ CDB2CC3024D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension */,
);
name = Products;
sourceTree = "<group>";
@@ -454,7 +454,7 @@
);
name = Extension;
productName = Extension;
- productReference = CDB2CC3024D61B3900D0EECE /* com.objective-see.lulu.extension.systemextension */;
+ productReference = CDB2CC3024D61B3900D0EECE /* your.bundle.id.lulu.extension.systemextension */;
productType = "com.apple.product-type.system-extension";
};
/* End PBXNativeTarget section */
@@ -741,11 +741,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
- CODE_SIGN_IDENTITY = "Developer ID Application";
+ CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = App/Info.plist;
@@ -756,9 +758,10 @@
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 2.6.3;
ONLY_ACTIVE_ARCH = NO;
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.app";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.app;
PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "LuLu Application";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Lilith Lulu App";
};
name = Debug;
};
@@ -767,11 +770,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
- CODE_SIGN_IDENTITY = "Developer ID Application";
+ CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = App/Info.plist;
@@ -781,9 +786,10 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 2.6.3;
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.app";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.app;
PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "LuLu Application";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Lilith Lulu App";
};
name = Release;
};
@@ -791,10 +797,12 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
- CODE_SIGN_IDENTITY = "Developer ID Application";
+ CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = Extension/Info.plist;
@@ -807,9 +815,10 @@
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 2.6.3;
ONLY_ACTIVE_ARCH = NO;
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.extension";
- PRODUCT_NAME = "com.objective-see.lulu.extension";
- PROVISIONING_PROFILE_SPECIFIER = "LuLu Extension";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.extension;
+ PRODUCT_NAME = your.bundle.id.lulu.extension;
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Lilith Lulu Extension";
SKIP_INSTALL = YES;
};
name = Debug;
@@ -818,10 +827,12 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
- CODE_SIGN_IDENTITY = "Developer ID Application";
+ CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = Extension/Info.plist;
@@ -833,9 +844,10 @@
LIBRARY_SEARCH_PATHS = "";
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 2.6.3;
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.extension";
- PRODUCT_NAME = "com.objective-see.lulu.extension";
- PROVISIONING_PROFILE_SPECIFIER = "LuLu Extension";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.extension;
+ PRODUCT_NAME = your.bundle.id.lulu.extension;
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Lilith Lulu Extension";
SKIP_INSTALL = YES;
};
name = Release;
diff --git a/LuLu/Shared/consts.h b/LuLu/Shared/consts.h
index fab5a0c..7a05c17 100644
--- a/LuLu/Shared/consts.h
+++ b/LuLu/Shared/consts.h
@@ -20,22 +20,22 @@ enum Signer{None, Apple, AppStore, DevID, AdHoc};
#define OBJECTIVE_SEE_VENDOR "com.objectiveSee"
//bundle ID
-#define BUNDLE_ID "com.objective-see.lulu"
+#define BUNDLE_ID "your.bundle.id.lulu"
//extension bundle ID
-#define EXT_BUNDLE_ID @"com.objective-see.lulu.extension"
+#define EXT_BUNDLE_ID @"your.bundle.id.lulu.extension"
//main app bundle id
-#define APP_ID @"com.objective-see.lulu.app"
+#define APP_ID @"your.bundle.id.lulu.app"
//signing auth
-#define SIGNING_AUTH @"Developer ID Application: Objective-See, LLC (VBG97UB4TA)"
+#define SIGNING_AUTH @"Developer ID Application: Donald Guy (UR73AMID)"
//firewall event: new flow
-#define LULU_EVENT @"com.objective-see.lulu.event"
+#define LULU_EVENT @"your.bundle.id.lulu.event"
//lulu service
-#define LULU_SERVICE_NAME "com_objective_see_firewall"
+#define LULU_SERVICE_NAME "your_bundle_id_lulu_firewall"
//install directory
#define INSTALL_DIRECTORY @"/Library/Objective-See/LuLu"
@@ -59,7 +59,7 @@ enum Signer{None, Apple, AppStore, DevID, AdHoc};
#define STATUS_CLIENT_ENABLED 1
//daemon mach name
-#define DAEMON_MACH_SERVICE @"VBG97UB4TA.com.objective-see.lulu"
+#define DAEMON_MACH_SERVICE @"UR73AMID.your.bundle.id.lulu"
//rule state; not found
#define RULE_STATE_NOT_FOUND -1
@@ -184,10 +184,10 @@ enum Signer{None, Apple, AppStore, DevID, AdHoc};
#define KEY_ERROR_SUB_MSG @"errorSubMsg"
//rules changed
-#define RULES_CHANGED @"com.objective-see.lulu.rulesChanged"
+#define RULES_CHANGED @"your.bundle.id.lulu.rulesChanged"
//extension event
-#define EXTENSION_EVENT @"com.objective-see.lulu.extensionEvent"
+#define EXTENSION_EVENT @"your.bundle.id.lulu.extensionEvent"
/* INSTALLER */
@@ -198,7 +198,7 @@ enum Signer{None, Apple, AppStore, DevID, AdHoc};
#define LAUNCH_DAEMON_BINARY @"LuLu"
//launch daemon plist
-#define LAUNCH_DAEMON_PLIST @"com.objective-see.lulu.plist"
+#define LAUNCH_DAEMON_PLIST @"your.bundle.id.lulu.plist"
//installed apps file
#define INSTALLED_APPS @"installedApps"
diff --git a/Uninstaller/Helper/HelperInterface.m b/Uninstaller/Helper/HelperInterface.m
index 0461476..1ef8bd4 100644
--- a/Uninstaller/Helper/HelperInterface.m
+++ b/Uninstaller/Helper/HelperInterface.m
@@ -17,10 +17,10 @@
#define CONF_SCRIPT @"configure.sh"
//installer (helper) ID
-#define CONFIG_HELPER_ID @"com.objective-see.lulu.configHelper"
+#define CONFIG_HELPER_ID @"your.bundle.id.lulu.configHelper"
//signing auth
-#define SIGNING_AUTH @"Developer ID Application: Objective-See, LLC (VBG97UB4TA)"
+#define SIGNING_AUTH @"Developer ID Application: Donald Guy (UR73AMID)"
/* GLOBALS */
diff --git a/Uninstaller/Helper/Info.plist b/Uninstaller/Helper/Info.plist
index 6dadde3..c9a8458 100644
--- a/Uninstaller/Helper/Info.plist
+++ b/Uninstaller/Helper/Info.plist
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
- <string>com.objective-see.lulu.configHelper</string>
+ <string>your.bundle.id.lulu.configHelper</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@@ -16,7 +16,7 @@
<string>Copyright (c) 2019 Objective-See. All rights reserved.</string>
<key>SMAuthorizedClients</key>
<array>
- <string>
8000
anchor apple generic and identifier "com.objective-see.lulu.config" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = VBG97UB4TA)</string>
+ <string>anchor apple generic and identifier "your.bundle.id.lulu.config" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = UR73AMID)</string>
</array>
</dict>
</plist>
diff --git a/Uninstaller/Helper/Launchd.plist b/Uninstaller/Helper/Launchd.plist
index cb15525..b4bd011 100644
--- a/Uninstaller/Helper/Launchd.plist
+++ b/Uninstaller/Helper/Launchd.plist
@@ -3,10 +3,10 @@
<plist version="1.0">
<dict>
<key>Label</key>
- <string>com.objective-see.lulu.configHelper</string>
+ <string>your.bundle.id.lulu.configHelper</string>
<key>MachServices</key>
<dict>
- <key>com.objective-see.lulu.configHelper</key>
+ <key>your.bundle.id.lulu.configHelper</key>
<true/>
</dict>
<key>EnableTransactions</key>
diff --git a/Uninstaller/Shared/consts.h b/Uninstaller/Shared/consts.h
index 6d5cc87..f1d5490 100644
--- a/Uninstaller/Shared/consts.h
+++ b/Uninstaller/Shared/consts.h
@@ -16,28 +16,28 @@
#define CS_RUNTIME 0x00010000
//bundle ID
-#define BUNDLE_ID "com.objective-see.lulu"
+#define BUNDLE_ID "your.bundle.id.lulu"
//main app bundle id
-#define MAIN_APP_ID @"com.objective-see.lulu.app"
+#define MAIN_APP_ID @"your.bundle.id.lulu.app"
//helper (login item) ID
-#define HELPER_ID @"com.objective-see.lulu.helper"
+#define HELPER_ID @"your.bundle.id.lulu.helper"
//installer (app) ID
-#define CONFIG_ID @"com.objective-see.lulu.config"
+#define CONFIG_ID @"your.bundle.id.lulu.config"
//installer (helper) ID
-#define CONFIG_HELPER_ID @"com.objective-see.lulu.configHelper"
+#define CONFIG_HELPER_ID @"your.bundle.id.lulu.configHelper"
//signing auth
-#define SIGNING_AUTH @"Developer ID Application: Objective-See, LLC (VBG97UB4TA)"
+#define SIGNING_AUTH @"Developer ID Application: Donald Guy (UR73AMID)"
//install directory
#define INSTALL_DIRECTORY @"/Library/Objective-See/LuLu"
//daemon mach name
-#define DAEMON_MACH_SERVICE @"com.objective-see.lulu"
+#define DAEMON_MACH_SERVICE @"your.bundle.id.lulu"
//product version url
#define PRODUCT_VERSIONS_URL @"https://objective-see.com/products.json"
@@ -107,7 +107,7 @@
#define LAUNCH_DAEMON_BINARY @"LuLu"
//launch daemon plist
-#define LAUNCH_DAEMON_PLIST @"com.objective-see.lulu.plist"
+#define LAUNCH_DAEMON_PLIST @"your.bundle.id.lulu.plist"
//frame shift
// for status msg to avoid activity indicator
diff --git a/Uninstaller/Uninstaller.xcodeproj/project.pbxproj b/Uninstaller/Uninstaller.xcodeproj/project.pbxproj
index f3d7f88..73438ca 100644
--- a/Uninstaller/Uninstaller.xcodeproj/project.pbxproj
+++ b/Uninstaller/Uninstaller.xcodeproj/project.pbxproj
@@ -11,7 +11,7 @@
4BE4906110445E13006BE471 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BE4905510445DDD006BE471 /* main.m */; };
4BE4906410445F2F006BE471 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BE4906310445F2F006BE471 /* Security.framework */; };
4BE4906810445F36006BE471 /* ServiceManagement.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BE4906710445F36006BE471 /* ServiceManagement.framework */; };
- 4BE49092104463A0006BE471 /* com.objective-see.lulu.configHelper in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4BE4905D10445E0A006BE471 /* com.objective-see.lulu.configHelper */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
+ 4BE49092104463A0006BE471 /* your.bundle.id.lulu.configHelper in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4BE4905D10445E0A006BE471 /* your.bundle.id.lulu.configHelper */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
BF04235611C0531400431286 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BF04235511C0531400431286 /* AppDelegate.m */; };
BF65C19111B985C0007C20AB /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = BF65C19011B985C0007C20AB /* MainMenu.xib */; };
@@ -46,7 +46,7 @@
dstPath = Contents/Library/LaunchServices;
dstSubfolderSpec = 1;
files = (
- 4BE49092104463A0006BE471 /* com.objective-see.lulu.configHelper in CopyFiles */,
+ 4BE49092104463A0006BE471 /* your.bundle.id.lulu.configHelper in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -59,7 +59,7 @@
4BE4905310445DDD006BE471 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4BE4905410445DDD006BE471 /* Launchd.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Launchd.plist; sourceTree = "<group>"; };
4BE4905510445DDD006BE471 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 4BE4905D10445E0A006BE471 /* com.objective-see.lulu.configHelper */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "com.objective-see.lulu.configHelper"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 4BE4905D10445E0A006BE471 /* your.bundle.id.lulu.configHelper */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = your.bundle.id.lulu.configHelper; sourceTree = BUILT_PRODUCTS_DIR; };
4BE4906310445F2F006BE471 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
4BE4906710445F36006BE471 /* ServiceManagement.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ServiceManagement.framework; path = System/Library/Frameworks/ServiceManagement.framework; sourceTree = SDKROOT; };
8D1107320486CEB800E47090 /* LuLu Uninstaller.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "LuLu Uninstaller.app"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -106,7 +106,7 @@
isa = PBXGroup;
children = (
8D1107320486CEB800E47090 /* LuLu Uninstaller.app */,
- 4BE4905D10445E0A006BE471 /* com.objective-see.lulu.configHelper */,
+ 4BE4905D10445E0A006BE471 /* your.bundle.id.lulu.configHelper */,
);
name = Products;
sourceTree = "<group>";
@@ -214,7 +214,7 @@
);
name = helper;
productName = SMJobBlessHelper;
- productReference = 4BE4905D10445E0A006BE471 /* com.objective-see.lulu.configHelper */;
+ productReference = 4BE4905D10445E0A006BE471 /* your.bundle.id.lulu.configHelper */;
productType = "com.apple.product-type.tool";
};
8D1107260486CEB800E47090 /* Uninstaller */ = {
@@ -246,12 +246,12 @@
LastUpgradeCheck = 1000;
TargetAttributes = {
4BE4905C10445E0A006BE471 = {
- DevelopmentTeam = VBG97UB4TA;
+ DevelopmentTeam = UR73AMID;
ProvisioningStyle = Manual;
};
8D1107260486CEB800E47090 = {
- DevelopmentTeam = VBG97UB4TA;
- ProvisioningStyle = Manual;
+ DevelopmentTeam = UR73AMID;
+ ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.HardenedRuntime = {
enabled = 1;
@@ -338,7 +338,8 @@
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = UR73AMID;
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
FRAMEWORK_SEARCH_PATHS = "";
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = NO;
INFOPLIST_FILE = Helper/Info.plist;
@@ -357,8 +358,8 @@
Helper/launchd.plist,
"-Wl,-sectcreate,__RESTRICT,__restrict,/dev/null",
);
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.configHelper";
- PRODUCT_NAME = "com.objective-see.lulu.configHelper";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.configHelper;
+ PRODUCT_NAME = your.bundle.id.lulu.configHelper;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
@@ -373,7 +374,8 @@
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = UR73AMID;
+ "DEVELOPMENT_TEAM[sdk=macosx*]" = UR73AMID;
FRAMEWORK_SEARCH_PATHS = "";
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = NO;
INFOPLIST_FILE = Helper/Info.plist;
@@ -391,8 +393,8 @@
Helper/launchd.plist,
"-Wl,-sectcreate,__RESTRICT,__restrict,/dev/null",
);
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.configHelper";
- PRODUCT_NAME = "com.objective-see.lulu.configHelper";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.configHelper;
+ PRODUCT_NAME = your.bundle.id.lulu.configHelper;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
@@ -406,11 +408,11 @@
ASSETCATALOG_COMPILER_STICKER_PACK_IDENTIFIER_PREFIX = "";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
- CODE_SIGN_IDENTITY = "Developer ID Application";
- CODE_SIGN_STYLE = Manual;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = NO;
@@ -420,7 +422,7 @@
MARKETING_VERSION = 2.6.3;
ONLY_ACTIVE_ARCH = NO;
OTHER_CODE_SIGN_FLAGS = "-o hard,kill,library";
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.config";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.config;
PRODUCT_NAME = "LuLu Uninstaller";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
@@ -436,11 +438,11 @@
ASSETCATALOG_COMPILER_STICKER_PACK_IDENTIFIER_PREFIX = "";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
- CODE_SIGN_IDENTITY = "Developer ID Application";
- CODE_SIGN_STYLE = Manual;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2.6.3;
- DEVELOPMENT_TEAM = VBG97UB4TA;
+ DEVELOPMENT_TEAM = UR73AMID;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = NO;
@@ -450,7 +452,7 @@
MARKETING_VERSION = 2.6.3;
ONLY_ACTIVE_ARCH = NO;
OTHER_CODE_SIGN_FLAGS = "-o hard,kill,library";
- PRODUCT_BUNDLE_IDENTIFIER = "com.objective-see.lulu.config";
+ PRODUCT_BUNDLE_IDENTIFIER = your.bundle.id.lulu.config;
PRODUCT_NAME = "LuLu Uninstaller";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
diff --git a/Uninstaller/Uninstaller.xcodeproj/xcshareddata/xcschemes/helper.xcscheme b/Uninstaller/Uninstaller.xcodeproj/xcshareddata/xcschemes/helper.xcscheme
index 9bb004c..88ae3e9 100644
--- a/Uninstaller/Uninstaller.xcodeproj/xcshareddata/xcschemes/helper.xcscheme
+++ b/Uninstaller/Uninstaller.xcodeproj/xcshareddata/xcschemes/helper.xcscheme
@@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BE4905C10445E0A006BE471"
- BuildableName = "com.objective-see.lulu.configHelper"
+ BuildableName = "your.bundle.id.lulu.configHelper"
BlueprintName = "helper"
ReferencedContainer = "container:Uninstaller.xcodeproj">
</BuildableReference>
@@ -45,7 +45,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BE4905C10445E0A006BE471"
- BuildableName = "com.objective-see.lulu.configHelper"
+ BuildableName = "your.bundle.id.lulu.configHelper"
BlueprintName = "helper"
ReferencedContainer = "container:Uninstaller.xcodeproj">
</BuildableReference>
@@ -62,7 +62,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BE4905C10445E0A006BE471"
- BuildableName = "com.objective-see.lulu.configHelper"
+ BuildableName = "your.bundle.id.lulu.configHelper"
BlueprintName = "helper"
ReferencedContainer = "container:Uninstaller.xcodeproj">
</BuildableReference>
diff --git a/Uninstaller/Uninstaller/ConfigFiles/com.objective-see.lulu.plist b/Uninstaller/Uninstaller/ConfigFiles/com.objective-see.lulu.plist
index 61cc7bf..b7efdfe 100644
--- a/Uninstaller/Uninstaller/ConfigFiles/com.objective-see.lulu.plist
+++ b/Uninstaller/Uninstaller/ConfigFiles/com.objective-see.lulu.plist
@@ -4,11 +4,11 @@
<dict>
<key>MachServices</key>
<dict>
- <key>com.objective-see.lulu</key>
+ <key>your.bundle.id.lulu</key>
<true/>
</dict>
<key>Label</key>
- <string>com.objective-see.lulu</string>
+ <string>your.bundle.id.lulu</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Objective-See/LuLu/LuLu.bundle/Contents/MacOS/LuLu</string>
diff --git a/Uninstaller/Uninstaller/Info.plist b/Uninstaller/Uninstaller/Info.plist
index 23a135c..14f48ac 100644
--- a/Uninstaller/Uninstaller/Info.plist
+++ b/Uninstaller/Uninstaller/Info.plist
@@ -26,8 +26,8 @@
<string>NSApplication</string>
<key>SMPrivilegedExecutables</key>
<dict>
- <key>com.objective-see.lulu.configHelper</key>
- <string>anchor apple generic and identifier "com.objective-see.lulu.configHelper" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = VBG97UB4TA)</string>
+ <key>your.bundle.id.lulu.configHelper</key>
+ <string>anchor apple generic and identifier "your.bundle.id.lulu.configHelper" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = UR73AMID)</string>
</dict>
</dict>
</plist>
diff --git a/Uninstaller/Uninstaller/Script/configure.sh b/Uninstaller/Uninstaller/Script/configure.sh
index dc7bdfb..1da833a 100755
--- a/Uninstaller/Uninstaller/Script/configure.sh
+++ b/Uninstaller/Uninstaller/Script/configure.sh
@@ -44,8 +44,8 @@ if [ "${1}" == "-uninstall" ]; then
killall "LuLu" 2> /dev/null
#unload launch daemon & remove its plist
- launchctl unload "/Library/LaunchDaemons/com.objective-see.lulu.plist"
- rm "/Library/LaunchDaemons/com.objective-see.lulu.plist"
+ launchctl unload "/Library/LaunchDaemons/your.bundle.id.lulu.plist"
+ rm "/Library/LaunchDaemons/your.bundle.id.lulu.plist"
printf "unloaded launch daemon\n"
@@ -82,7 +82,7 @@ if [ "${1}" == "-uninstall" ]; then
#kill
killall LuLu 2> /dev/null
- killall com.objective-see.lulu.helper 2> /dev/null
+ killall your.bundle.id.lulu.helper 2> /dev/null
killall "LuLu Helper" 2> /dev/null
#remove kext
--
2.39.3 (Apple Git-146)
Footnotes
|
Not sure if Apple is annoying (subtext: money-hungry) about this too, but if we are just "testing" the build process via XCode, the notarization at the very least shouldn't be necessary, right? Notarization and entitlements are just for distribution, requiring it to run code only on your personal computer, even for system extensions, is just transparently greedy. |
Notes:
Step-By-Step:
Currently blocked at this step and not sure how to move forward. Any help would be appreciated
@objective-see
The text was updated successfully, but these errors were encountered: