Skip to content

Commit

Permalink
The start of the EmbeddedDemo app, based off lemonmojo's PR gnachman#366
Browse files Browse the repository at this point in the history
 (gnachman#366). A key difference between lemonmojo's approach and this approach is instead of adding the embedded demo app as a target to the iTerm2 project, I've created an iEmbeddedDemo workspace and included the app's project and iTerm2Lib's project, thus not requiring any modification to the iTerm2 project.
  • Loading branch information
jkoutavas committed Sep 26, 2019
1 parent 64a4f78 commit 5886ad8
Show file tree
Hide file tree
Showing 16 changed files with 1,317 additions and 0 deletions.
10 changes: 10 additions & 0 deletions embed/EmbedDemo.xcworkspace/contents.xcworkspacedata

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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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/>
</plist>
358 changes: 358 additions & 0 deletions embed/EmbedDemoApp/EmbedDemoApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,358 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
691E357A233708A5007FFF84 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 691E3579233708A5007FFF84 /* AppDelegate.m */; };
691E357D233708A5007FFF84 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 691E357C233708A5007FFF84 /* ViewController.m */; };
691E357F233708A6007FFF84 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 691E357E233708A6007FFF84 /* Assets.xcassets */; };
691E3582233708A6007FFF84 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 691E3580233708A6007FFF84 /* Main.storyboard */; };
691E3585233708A6007FFF84 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 691E3584233708A6007FFF84 /* main.m */; };
692E72E3233A325E009EB4A2 /* iTerm2Lib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 692E72E2233A325E009EB4A2 /* iTerm2Lib.framework */; };
6970749A233C59150092998B /* iTerm2Lib.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 692E72E2233A325E009EB4A2 /* iTerm2Lib.framework */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
69707493233C58550092998B /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
6970749A233C59150092998B /* iTerm2Lib.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
691E3575233708A5007FFF84 /* EmbedDemoApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EmbedDemoApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
691E3578233708A5007FFF84 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
691E3579233708A5007FFF84 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
691E357B233708A5007FFF84 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
691E357C233708A5007FFF84 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
691E357E233708A6007FFF84 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
691E3581233708A6007FFF84 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
691E3583233708A6007FFF84 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
691E3584233708A6007FFF84 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
691E3586233708A6007FFF84 /* EmbedDemoApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = EmbedDemoApp.entitlements; sourceTree = "<group>"; };
692E72E2233A325E009EB4A2 /* iTerm2Lib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = iTerm2Lib.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
691E3572233708A5007FFF84 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
692E72E3233A325E009EB4A2 /* iTerm2Lib.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
691E356C233708A5007FFF84 = {
isa = PBXGroup;
children = (
691E3577233708A5007FFF84 /* EmbedDemoApp */,
691E3576233708A5007FFF84 /* Products */,
692E72E1233A325E009EB4A2 /* Frameworks */,
);
sourceTree = "<group>";
};
691E3576233708A5007FFF84 /* Products */ = {
isa = PBXGroup;
children = (
691E3575233708A5007FFF84 /* EmbedDemoApp.app */,
);
name = Products;
sourceTree = "<group>";
};
691E3577233708A5007FFF84 /* EmbedDemoApp */ = {
isa = PBXGroup;
children = (
691E3578233708A5007FFF84 /* AppDelegate.h */,
691E3579233708A5007FFF84 /* AppDelegate.m */,
691E357B233708A5007FFF84 /* ViewController.h */,
691E357C233708A5007FFF84 /* ViewController.m */,
691E357E233708A6007FFF84 /* Assets.xcassets */,
691E3580233708A6007FFF84 /* Main.storyboard */,
691E3583233708A6007FFF84 /* Info.plist */,
691E3584233708A6007FFF84 /* main.m */,
691E3586233708A6007FFF84 /* EmbedDemoApp.entitlements */,
);
path = EmbedDemoApp;
sourceTree = "<group>";
};
692E72E1233A325E009EB4A2 /* Frameworks */ = {
isa = PBXGroup;
children = (
692E72E2233A325E009EB4A2 /* iTerm2Lib.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
691E3574233708A5007FFF84 /* EmbedDemoApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 691E3589233708A6007FFF84 /* Build configuration list for PBXNativeTarget "EmbedDemoApp" */;
buildPhases = (
691E3571233708A5007FFF84 /* Sources */,
691E3572233708A5007FFF84 /* Frameworks */,
691E3573233708A5007FFF84 /* Resources */,
69707493233C58550092998B /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = EmbedDemoApp;
productName = EmbedDemoApp;
productReference = 691E3575233708A5007FFF84 /* EmbedDemoApp.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
691E356D233708A5007FFF84 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1030;
ORGANIZATIONNAME = "Heynow Software";
TargetAttributes = {
691E3574233708A5007FFF84 = {
CreatedOnToolsVersion = 10.3;
};
};
};
buildConfigurationList = 691E3570233708A5007FFF84 /* Build configuration list for PBXProject "EmbedDemoApp" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 691E356C233708A5007FFF84;
productRefGroup = 691E3576233708A5007FFF84 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
691E3574233708A5007FFF84 /* EmbedDemoApp */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
691E3573233708A5007FFF84 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
691E357F233708A6007FFF84 /* Assets.xcassets in Resources */,
691E3582233708A6007FFF84 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
691E3571233708A5007FFF84 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
691E357D233708A5007FFF84 /* ViewController.m in Sources */,
691E3585233708A6007FFF84 /* main.m in Sources */,
691E357A233708A5007FFF84 /* AppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
691E3580233708A6007FFF84 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
691E3581233708A6007FFF84 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
691E3587233708A6007FFF84 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
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_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;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
691E3588233708A6007FFF84 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
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_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;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
};
name = Release;
};
691E358A233708A6007FFF84 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = EmbedDemoApp/EmbedDemoApp.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = EmbedDemoApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = Heynow.EmbedDemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
691E358B233708A6007FFF84 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = EmbedDemoApp/EmbedDemoApp.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = EmbedDemoApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = Heynow.EmbedDemoApp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
691E3570233708A5007FFF84 /* Build configuration list for PBXProject "EmbedDemoApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
691E3587233708A6007FFF84 /* Debug */,
691E3588233708A6007FFF84 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
691E3589233708A6007FFF84 /* Build configuration list for PBXNativeTarget "EmbedDemoApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
691E358A233708A6007FFF84 /* Debug */,
691E358B233708A6007FFF84 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 691E356D233708A5007FFF84 /* Project object */;
}

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

Loading

0 comments on commit 5886ad8

Please sign in to comment.