Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove command line test project from repository

  • Loading branch information...
commit a45c4571f9fbbe369928df64f518851607c9b567 1 parent 15134d6
@ole authored
View
247 EnumerateApps.xcodeproj/project.pbxproj
@@ -1,247 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5D2D122114F4E6A500761FD2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D2D122014F4E6A500761FD2 /* Foundation.framework */; };
- 5D2D122414F4E6A500761FD2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D2D122314F4E6A500761FD2 /* main.m */; };
- 5D2D122814F4E6A500761FD2 /* EnumerateApps.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5D2D122714F4E6A500761FD2 /* EnumerateApps.1 */; };
- 5D2D123214F5141E00761FD2 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D2D123114F5141E00761FD2 /* Security.framework */; };
- 5D2D123514F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D2D123414F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.m */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 5D2D121A14F4E6A500761FD2 /* CopyFiles */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = /usr/share/man/man1/;
- dstSubfolderSpec = 0;
- files = (
- 5D2D122814F4E6A500761FD2 /* EnumerateApps.1 in CopyFiles */,
- );
- runOnlyForDeploymentPostprocessing = 1;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 5D2D121C14F4E6A500761FD2 /* EnumerateApps */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = EnumerateApps; sourceTree = BUILT_PRODUCTS_DIR; };
- 5D2D122014F4E6A500761FD2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 5D2D122314F4E6A500761FD2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 5D2D122614F4E6A500761FD2 /* EnumerateApps-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "EnumerateApps-Prefix.pch"; sourceTree = "<group>"; };
- 5D2D122714F4E6A500761FD2 /* EnumerateApps.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = EnumerateApps.1; sourceTree = "<group>"; };
- 5D2D123114F5141E00761FD2 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
- 5D2D123314F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; path = "NSBundle+OBCodeSigningInfo.h"; sourceTree = "<group>"; };
- 5D2D123414F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSBundle+OBCodeSigningInfo.m"; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5D2D121914F4E6A500761FD2 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5D2D123214F5141E00761FD2 /* Security.framework in Frameworks */,
- 5D2D122114F4E6A500761FD2 /* Foundation.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5D2D121114F4E6A400761FD2 = {
- isa = PBXGroup;
- children = (
- 5D2D122214F4E6A500761FD2 /* EnumerateApps */,
- 5D2D121F14F4E6A500761FD2 /* Frameworks */,
- 5D2D121D14F4E6A500761FD2 /* Products */,
- );
- sourceTree = "<group>";
- };
- 5D2D121D14F4E6A500761FD2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5D2D121C14F4E6A500761FD2 /* EnumerateApps */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5D2D121F14F4E6A500761FD2 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5D2D123114F5141E00761FD2 /* Security.framework */,
- 5D2D122014F4E6A500761FD2 /* Foundation.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 5D2D122214F4E6A500761FD2 /* EnumerateApps */ = {
- isa = PBXGroup;
- children = (
- 5D2D122314F4E6A500761FD2 /* main.m */,
- 5D2D123314F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.h */,
- 5D2D123414F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.m */,
- 5D2D122714F4E6A500761FD2 /* EnumerateApps.1 */,
- 5D2D122514F4E6A500761FD2 /* Supporting Files */,
- );
- path = EnumerateApps;
- sourceTree = "<group>";
- };
- 5D2D122514F4E6A500761FD2 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 5D2D122614F4E6A500761FD2 /* EnumerateApps-Prefix.pch */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5D2D121B14F4E6A500761FD2 /* EnumerateApps */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5D2D122B14F4E6A500761FD2 /* Build configuration list for PBXNativeTarget "EnumerateApps" */;
- buildPhases = (
- 5D2D121814F4E6A500761FD2 /* Sources */,
- 5D2D121914F4E6A500761FD2 /* Frameworks */,
- 5D2D121A14F4E6A500761FD2 /* CopyFiles */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = EnumerateApps;
- productName = EnumerateApps;
- productReference = 5D2D121C14F4E6A500761FD2 /* EnumerateApps */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 5D2D121314F4E6A400761FD2 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0430;
- ORGANIZATIONNAME = "Ole Begemann";
- };
- buildConfigurationList = 5D2D121614F4E6A400761FD2 /* Build configuration list for PBXProject "EnumerateApps" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- );
- mainGroup = 5D2D121114F4E6A400761FD2;
- productRefGroup = 5D2D121D14F4E6A500761FD2 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 5D2D121B14F4E6A500761FD2 /* EnumerateApps */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5D2D121814F4E6A500761FD2 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5D2D122414F4E6A500761FD2 /* main.m in Sources */,
- 5D2D123514F52E4300761FD2 /* NSBundle+OBCodeSigningInfo.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 5D2D122914F4E6A500761FD2 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_64_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.7;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = macosx;
- };
- name = Debug;
- };
- 5D2D122A14F4E6A500761FD2 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_64_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.7;
- SDKROOT = macosx;
- };
- name = Release;
- };
- 5D2D122C14F4E6A500761FD2 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "EnumerateApps/EnumerateApps-Prefix.pch";
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Debug;
- };
- 5D2D122D14F4E6A500761FD2 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "EnumerateApps/EnumerateApps-Prefix.pch";
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5D2D121614F4E6A400761FD2 /* Build configuration list for PBXProject "EnumerateApps" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5D2D122914F4E6A500761FD2 /* Debug */,
- 5D2D122A14F4E6A500761FD2 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 5D2D122B14F4E6A500761FD2 /* Build configuration list for PBXNativeTarget "EnumerateApps" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5D2D122C14F4E6A500761FD2 /* Debug */,
- 5D2D122D14F4E6A500761FD2 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 5D2D121314F4E6A400761FD2 /* Project object */;
-}
View
7 EnumerateApps.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "self:EnumerateApps.xcodeproj">
- </FileRef>
-</Workspace>
View
BIN  ...s.xcodeproj/project.xcworkspace/xcuserdata/elo.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
View
7 EnumerateApps/EnumerateApps-Prefix.pch
@@ -1,7 +0,0 @@
-//
-// Prefix header for all source files of the 'EnumerateApps' target in the 'EnumerateApps' project
-//
-
-#ifdef __OBJC__
- #import <Foundation/Foundation.h>
-#endif
View
79 EnumerateApps/EnumerateApps.1
@@ -1,79 +0,0 @@
-.\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples.
-.\"See Also:
-.\"man mdoc.samples for a complete listing of options
-.\"man mdoc for the short list of editing options
-.\"/usr/share/misc/mdoc.template
-.Dd 22.02.12 \" DATE
-.Dt EnumerateApps 1 \" Program name and manual section number
-.Os Darwin
-.Sh NAME \" Section Header - required - don't modify
-.Nm EnumerateApps,
-.\" The following lines are read in generating the apropos(man -k) database. Use only key
-.\" words here as the database is built based on the words here and in the .ND line.
-.Nm Other_name_for_same_program(),
-.Nm Yet another name for the same program.
-.\" Use .Nm macro to designate other names for the documented program.
-.Nd This line parsed for whatis database.
-.Sh SYNOPSIS \" Section Header - required - don't modify
-.Nm
-.Op Fl abcd \" [-abcd]
-.Op Fl a Ar path \" [-a path]
-.Op Ar file \" [file]
-.Op Ar \" [file ...]
-.Ar arg0 \" Underlined argument - use .Ar anywhere to underline
-arg2 ... \" Arguments
-.Sh DESCRIPTION \" Section Header - required - don't modify
-Use the .Nm macro to refer to your program throughout the man page like such:
-.Nm
-Underlining is accomplished with the .Ar macro like this:
-.Ar underlined text .
-.Pp \" Inserts a space
-A list of items with descriptions:
-.Bl -tag -width -indent \" Begins a tagged list
-.It item a \" Each item preceded by .It macro
-Description of item a
-.It item b
-Description of item b
-.El \" Ends the list
-.Pp
-A list of flags and their descriptions:
-.Bl -tag -width -indent \" Differs from above in tag removed
-.It Fl a \"-a flag as a list item
-Description of -a flag
-.It Fl b
-Description of -b flag
-.El \" Ends the list
-.Pp
-.\" .Sh ENVIRONMENT \" May not be needed
-.\" .Bl -tag -width "ENV_VAR_1" -indent \" ENV_VAR_1 is width of the string ENV_VAR_1
-.\" .It Ev ENV_VAR_1
-.\" Description of ENV_VAR_1
-.\" .It Ev ENV_VAR_2
-.\" Description of ENV_VAR_2
-.\" .El
-.Sh FILES \" File used or created by the topic of the man page
-.Bl -tag -width "/Users/joeuser/Library/really_long_file_name" -compact
-.It Pa /usr/share/file_name
-FILE_1 description
-.It Pa /Users/joeuser/Library/really_long_file_name
-FILE_2 description
-.El \" Ends the list
-.\" .Sh DIAGNOSTICS \" May not be needed
-.\" .Bl -diag
-.\" .It Diagnostic Tag
-.\" Diagnostic informtion here.
-.\" .It Diagnostic Tag
-.\" Diagnostic informtion here.
-.\" .El
-.Sh SEE ALSO
-.\" List links in ascending order by section, alphabetically within a section.
-.\" Please do not reference files that do not exist without filing a bug report
-.Xr a 1 ,
-.Xr b 1 ,
-.Xr c 1 ,
-.Xr a 2 ,
-.Xr b 2 ,
-.Xr a 3 ,
-.Xr b 3
-.\" .Sh BUGS \" Document known, unremedied bugs
-.\" .Sh HISTORY \" Document history if command behaves in a unique manner
View
106 EnumerateApps/main.m
@@ -1,106 +0,0 @@
-//
-// main.m
-// EnumerateApps
-//
-// Created by Ole Begemann on 22.02.12.
-// Copyright (c) 2012 Ole Begemann. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "NSBundle+OBCodeSigningInfo.h"
-
-
-int main(int argc, const char * argv[])
-{
- @autoreleasepool
- {
- if (argc > 1)
- {
- for (unsigned int argumentIndex = 1; argumentIndex < argc; argumentIndex++)
- {
- const char *argument = argv[argumentIndex];
- NSString *bundlePath = [NSString stringWithCString:argument encoding:NSUTF8StringEncoding];
- NSString *appName = [bundlePath lastPathComponent];
- NSBundle *appBundle = [NSBundle bundleWithPath:bundlePath];
-
- BOOL comesFromAppStore = [appBundle ob_comesFromAppStore];
- OBCodeSignState codeSignState = [appBundle ob_codeSignState];
- if (comesFromAppStore) {
- NSLog(@"%@ is from the Mac App Store.", appName);
- }
- if (appBundle == nil || codeSignState == OBCodeSignStateError)
- {
- NSLog(@"An error occured checking %@'s signature.", appName);
- }
- else
- {
- if (codeSignState == OBCodeSignStateUnsigned) {
- NSLog(@"%@ is not code signed.", appName);
- }
- if (codeSignState == OBCodeSignStateSignatureValid) {
- NSLog(@"%@ has a valid code signature.", appName);
- }
- if (codeSignState == OBCodeSignStateSignatureInvalid) {
- NSLog(@"%@ has an invalid code signature.", appName);
- }
- if (codeSignState == OBCodeSignStateSignatureUnsupported) {
- NSLog(@"%@ has an unsupported code signature.", appName);
- }
- if (codeSignState == OBCodeSignStateSignatureNotVerifiable) {
- NSLog(@"%@'s signature could not be verified.", appName);
- }
- if ([appBundle ob_isSandboxed]) {
- NSLog(@"%@ is sandboxed.", appName);
- } else {
- NSLog(@"%@ is not sandboxed.", appName);
- }
- }
- }
- }
- else
- {
- NSFileManager *fileManager = [[NSFileManager alloc] init];
- NSArray *appDirectories = [fileManager URLsForDirectory:NSApplicationDirectory inDomains:NSAllDomainsMask];
-
- for (NSURL *directory in appDirectories)
- {
- NSString *directoryPath = [directory path];
- BOOL fileExists = [fileManager fileExistsAtPath:directoryPath];
- if (!fileExists) {
- NSLog(@"Skipping %@ because it does not exist.", directoryPath);
- continue;
- }
-
- NSArray *propertiesToCache = [NSArray arrayWithObjects:NSURLNameKey, NSURLTypeIdentifierKey, nil];
- NSDirectoryEnumerator *directoryEnumerator = [fileManager enumeratorAtURL:directory includingPropertiesForKeys:propertiesToCache options:NSDirectoryEnumerationSkipsPackageDescendants errorHandler:^BOOL(NSURL *url, NSError *error) {
-
- NSLog(@"Error enumerating %@ in %@: %@", url, directory, error);
- return YES;
- }];
-
- for (NSURL *url in directoryEnumerator)
- {
- NSDictionary *resourceValues = [url resourceValuesForKeys:propertiesToCache error:NULL];
- NSString *uti = [resourceValues objectForKey:NSURLTypeIdentifierKey];
-
- if ([uti isEqualToString:@"com.apple.application-bundle"])
- {
- NSString *appName = [resourceValues objectForKey:NSURLNameKey];
- NSBundle *appBundle = [[NSBundle alloc] initWithURL:url];
-
- if ([appBundle ob_comesFromAppStore]) {
- NSLog(@"%@ is from the Mac App Store.", appName);
- }
-
- BOOL isSandboxed = [appBundle ob_isSandboxed];
- if (isSandboxed) {
- NSLog(@"%@ is sandboxed.", appName);
- }
- }
- }
- }
- }
- }
- return 0;
-}
-
View
0  EnumerateApps/NSBundle+OBCodeSigningInfo.h → NSBundle+OBCodeSigningInfo.h
File renamed without changes
View
0  EnumerateApps/NSBundle+OBCodeSigningInfo.m → NSBundle+OBCodeSigningInfo.m
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.