Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fdgogogo committed Jan 15, 2024
1 parent 0ee52c3 commit 580a254
Show file tree
Hide file tree
Showing 8 changed files with 724 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
.DS_Store
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
# Credits.rtf
Command line tool to generate "Credits.rtf" (for About page) from xcodeproj



## Usage

```shell
OVERVIEW: A Swift command-line tool to generate Credits.rtf file

USAGE: credits <input> --output <output> [--title-font-size <title-font-size>] [--font-size <font-size>] [--exclude <exclude> ...] [--no-open <no-open>]

ARGUMENTS:
<input> Input file. Supports one of:
- .xcodeproj/.pbxproj file
- Project direcotry (contains .xcodeproj file)
- plain text file with Github repository URLs (one
per line)

OPTIONS:
-o, --output <output> The output file name.
-t, --title-font-size <title-font-size>
Font size for the title. (default: 16)
-f, --font-size <font-size>
Font size for the content. (default: 12)
-x, --exclude <exclude> Ignored repositories by name, repeat for multiple.
-O, --no-open <no-open> Don't automatically open the output file after
generation. (default: false)
-h, --help Show help information.
```
337 changes: 337 additions & 0 deletions credits.rtf.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,337 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {

/* Begin PBXBuildFile section */
F711FB642B4FF61600C0E272 /* credits.swift in Sources */ = {isa = PBXBuildFile; fileRef = F711FB632B4FF61600C0E272 /* credits.swift */; };
F7CCF04B2B55255C00A195D3 /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = F7CCF04A2B55255C00A195D3 /* ArgumentParser */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
F711FB5E2B4FF61600C0E272 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
F711FB602B4FF61600C0E272 /* credits */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = credits; sourceTree = BUILT_PRODUCTS_DIR; };
F711FB632B4FF61600C0E272 /* credits.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = credits.swift; sourceTree = "<group>"; };
F738F85B2B552EC200CA3590 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
F738F85C2B552EC200CA3590 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
F711FB5D2B4FF61600C0E272 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F7CCF04B2B55255C00A195D3 /* ArgumentParser in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
F711FB572B4FF61600C0E272 = {
isa = PBXGroup;
children = (
F738F85B2B552EC200CA3590 /* LICENSE */,
F738F85C2B552EC200CA3590 /* README.md */,
F711FB622B4FF61600C0E272 /* credits.rtf */,
F711FB612B4FF61600C0E272 /* Products */,
F7CCF0482B5524E300A195D3 /* Frameworks */,
);
sourceTree = "<group>";
};
F711FB612B4FF61600C0E272 /* Products */ = {
isa = PBXGroup;
children = (
F711FB602B4FF61600C0E272 /* credits */,
);
name = Products;
sourceTree = "<group>";
};
F711FB622B4FF61600C0E272 /* credits.rtf */ = {
isa = PBXGroup;
children = (
F711FB632B4FF61600C0E272 /* credits.swift */,
);
path = credits.rtf;
sourceTree = "<group>";
};
F7CCF0482B5524E300A195D3 /* Frameworks */ = {
isa = PBXGroup;
children = (
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
F711FB5F2B4FF61600C0E272 /* credits */ = {
isa = PBXNativeTarget;
buildConfigurationList = F711FB672B4FF61600C0E272 /* Build configuration list for PBXNativeTarget "credits" */;
buildPhases = (
F711FB5C2B4FF61600C0E272 /* Sources */,
F711FB5D2B4FF61600C0E272 /* Frameworks */,
F711FB5E2B4FF61600C0E272 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = credits;
packageProductDependencies = (
F7CCF04A2B55255C00A195D3 /* ArgumentParser */,
);
productName = credits.rtf;
productReference = F711FB602B4FF61600C0E272 /* credits */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
F711FB582B4FF61600C0E272 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1520;
LastUpgradeCheck = 1520;
TargetAttributes = {
F711FB5F2B4FF61600C0E272 = {
CreatedOnToolsVersion = 15.2;
};
};
};
buildConfigurationList = F711FB5B2B4FF61600C0E272 /* Build configuration list for PBXProject "credits.rtf" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = F711FB572B4FF61600C0E272;
packageReferences = (
F7CCF0492B55255C00A195D3 /* XCRemoteSwiftPackageReference "swift-argument-parser" */,
);
productRefGroup = F711FB612B4FF61600C0E272 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
F711FB5F2B4FF61600C0E272 /* credits */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
F711FB5C2B4FF61600C0E272 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F711FB642B4FF61600C0E272 /* credits.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
F711FB652B4FF61600C0E272 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
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;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 14.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
F711FB662B4FF61600C0E272 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
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;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 14.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
};
name = Release;
};
F711FB682B4FF61600C0E272 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = K7AJ426GA6;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_BUNDLE_IDENTIFIER = credits.jiaanf.tech;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
F711FB692B4FF61600C0E272 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = K7AJ426GA6;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_BUNDLE_IDENTIFIER = credits.jiaanf.tech;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
F711FB5B2B4FF61600C0E272 /* Build configuration list for PBXProject "credits.rtf" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F711FB652B4FF61600C0E272 /* Debug */,
F711FB662B4FF61600C0E272 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F711FB672B4FF61600C0E272 /* Build configuration list for PBXNativeTarget "credits" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F711FB682B4FF61600C0E272 /* Debug */,
F711FB692B4FF61600C0E272 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
F7CCF0492B55255C00A195D3 /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/apple/swift-argument-parser.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.3.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
F7CCF04A2B55255C00A195D3 /* ArgumentParser */ = {
isa = XCSwiftPackageProductDependency;
package = F7CCF0492B55255C00A195D3 /* XCRemoteSwiftPackageReference "swift-argument-parser" */;
productName = ArgumentParser;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = F711FB582B4FF61600C0E272 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit 580a254

Please sign in to comment.