Skip to content

Commit

Permalink
Updated project settings + minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 22, 2020
1 parent 7094864 commit 1ef0428
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
10 changes: 6 additions & 4 deletions FastDMG.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
F45AC0F020ACDB4D0086DF1D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1140;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = "Sveinbjorn Thordarson";
TargetAttributes = {
F45AC0F720ACDB4E0086DF1D = {
Expand Down Expand Up @@ -231,6 +231,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -243,7 +244,7 @@
DEBUG_INFORMATION_FORMAT = dwarf;
DEPLOYMENT_POSTPROCESSING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -294,6 +295,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -329,7 +331,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = 5WX26Y89JP;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -346,7 +348,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = 5WX26Y89JP;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1140"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
19 changes: 8 additions & 11 deletions FastDMG/FastDMGAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,14 @@ - (void)mountDiskImage:(NSString *)diskImagePath {
task.launchPath = @"/usr/bin/hdiutil"; // present on all macOS systems

// See man hdiutil for details
NSMutableArray *args = [@[@"attach",
diskImagePath,
@"-plist",
@"-noautoopen",
@"-noautofsck",
@"-noverify",
@"-ignorebadchecksums",
@"-noidme"]
mutableCopy];

task.arguments = args;
task.arguments = @[@"attach",
diskImagePath,
@"-plist",
@"-noautoopen",
@"-noautofsck",
@"-noverify",
@"-ignorebadchecksums",
@"-noidme"];

// STDIN
task.standardInput = [NSPipe pipe];
Expand Down

0 comments on commit 1ef0428

Please sign in to comment.