Skip to content

Commit

Permalink
apply recommended settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Kladek committed Nov 12, 2022
1 parent 7d40df7 commit 39e1233
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
5 changes: 2 additions & 3 deletions CocoaDebugKit/CocoaDebugKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@
TargetAttributes = {
CD2761EA1B0E1C050000BB5D = {
CreatedOnToolsVersion = 6.2;
ProvisioningStyle = Automatic;
};
};
};
Expand Down Expand Up @@ -470,7 +469,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -503,7 +502,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
Expand Down
2 changes: 1 addition & 1 deletion CocoaDebugKit/CocoaDebugKit/CocoaDebugDescription.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "CrossPlatformDefinitions.h"
#import <CocoaDebugKit/CrossPlatformDefinitions.h>


@interface CocoaDebugDescription : NSObject
Expand Down
2 changes: 1 addition & 1 deletion CocoaDebugKit/CocoaDebugKit/CocoaDebugSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "CrossPlatformDefinitions.h"
#import <CocoaDebugKit/CrossPlatformDefinitions.h>


@interface CocoaDebugSettings: NSObject
Expand Down
2 changes: 1 addition & 1 deletion CocoaDebugKit/CocoaDebugKit/CocoaDebugView.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "CrossPlatformDefinitions.h"
#import <CocoaDebugKit/CrossPlatformDefinitions.h>


@interface CocoaDebugView : CPView
Expand Down
2 changes: 1 addition & 1 deletion CocoaDebugKit/CocoaDebugKit/CocoaDebugView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ - (NSData *)dataFromImage:(CPImage *)image
CGImageRef cgRef = [image CGImageForProposedRect:NULL context:nil hints:nil];
NSBitmapImageRep *newRep = [[NSBitmapImageRep alloc] initWithCGImage:cgRef];
[newRep setSize:[image size]];// if you want the same resolution
return [newRep representationUsingType:NSPNGFileType properties:@{}];
return [newRep representationUsingType:NSBitmapImageFileTypePNG properties:@{}];
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion CocoaDebugKit/CocoaDebugKit/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1473</string>
<string>1492</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Patrick Kladek. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
25 changes: 17 additions & 8 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,11 @@
CDB4E14B1ED1D3DA00DE6714 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1140;
LastUpgradeCheck = 1410;
ORGANIZATIONNAME = "Patrick Kladek";
TargetAttributes = {
CD63352023E2D28900293E4B = {
CreatedOnToolsVersion = 11.3.1;
DevelopmentTeam = BQ6K935NHJ;
ProvisioningStyle = Automatic;
};
CD63A10D1ED33EE400D04814 = {
Expand Down Expand Up @@ -387,10 +386,12 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "macOS-TestApp/macOS_TestApp.entitlements";
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = BQ6K935NHJ;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = "macOS-TestApp/Info.plist";
Expand All @@ -415,10 +416,12 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "macOS-TestApp/macOS_TestApp.entitlements";
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = BQ6K935NHJ;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = "macOS-TestApp/Info.plist";
Expand All @@ -442,9 +445,10 @@
"$(inherited)",
);
INFOPLIST_FILE = "$(SRCROOT)/iOS-TestApp/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MACH_O_TYPE = mh_execute;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = com.kladek.TestApp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -457,9 +461,10 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = "$(SRCROOT)/iOS-TestApp/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MACH_O_TYPE = mh_execute;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
PRODUCT_BUNDLE_IDENTIFIER = com.kladek.TestApp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down Expand Up @@ -488,6 +493,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 @@ -513,7 +519,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -546,6 +553,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 @@ -564,7 +572,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down

0 comments on commit 39e1233

Please sign in to comment.