Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #11 from tconkling/master

Add an iOS library target to the Xcode project
  • Loading branch information...
commit 750d4e8ded732dda422cbf0d2edc5a9a21d01a34 2 parents 2b71fab + c85e20f
@mikeash authored
View
5 Test_iOS.h
@@ -0,0 +1,5 @@
+#import <SenTestingKit/SenTestingKit.h>
+
+@interface Test_iOS : SenTestCase
+
+@end
View
11 Test_iOS.h.m
@@ -0,0 +1,11 @@
+#import "Test_iOS.h"
+#include "main.m"
+
+@implementation Test_iOS
+
+- (void)testAll
+{
+ main(0, nil);
+}
+
+@end
View
285 xcode/MAObjCRuntime.xcodeproj/project.pbxproj
@@ -7,6 +7,18 @@
objects = {
/* Begin PBXBuildFile section */
+ 22A07AE515241A3B008A2A36 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A07AE415241A3B008A2A36 /* Foundation.framework */; };
+ 22A07AF315241A3B008A2A36 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A07AF215241A3B008A2A36 /* SenTestingKit.framework */; };
+ 22A07AF515241A3B008A2A36 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A07AF415241A3B008A2A36 /* UIKit.framework */; };
+ 22A07AF615241A3B008A2A36 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A07AE415241A3B008A2A36 /* Foundation.framework */; };
+ 22A07AF915241A3B008A2A36 /* libMAObjCRuntime_iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A07AE215241A3B008A2A36 /* libMAObjCRuntime_iOS.a */; };
+ 22A07B0A15241A7A008A2A36 /* MARTNSObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569E91481810F006AD2EB /* MARTNSObject.m */; };
+ 22A07B0B15241A7A008A2A36 /* RTIvar.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569EB1481810F006AD2EB /* RTIvar.m */; };
+ 22A07B0C15241A7A008A2A36 /* RTMethod.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569ED1481810F006AD2EB /* RTMethod.m */; };
+ 22A07B0D15241A7A008A2A36 /* RTProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569EF1481810F006AD2EB /* RTProperty.m */; };
+ 22A07B0E15241A7A008A2A36 /* RTProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569F11481810F006AD2EB /* RTProtocol.m */; };
+ 22A07B0F15241A7A008A2A36 /* RTUnregisteredClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569F31481810F006AD2EB /* RTUnregisteredClass.m */; };
+ 22A07B1215241B00008A2A36 /* Test_iOS.h.m in Sources */ = {isa = PBXBuildFile; fileRef = 22A07B1115241B00008A2A36 /* Test_iOS.h.m */; };
794569F41481810F006AD2EB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569E71481810F006AD2EB /* main.m */; };
794569F51481810F006AD2EB /* MARTNSObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569E91481810F006AD2EB /* MARTNSObject.m */; };
794569F61481810F006AD2EB /* RTIvar.m in Sources */ = {isa = PBXBuildFile; fileRef = 794569EB1481810F006AD2EB /* RTIvar.m */; };
@@ -17,8 +29,25 @@
8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08FB779EFE84155DC02AAC07 /* Foundation.framework */; };
/* End PBXBuildFile section */
+/* Begin PBXContainerItemProxy section */
+ 22A07AF715241A3B008A2A36 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 08FB7793FE84155DC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 22A07AE115241A3B008A2A36;
+ remoteInfo = MAObjCRuntime_iOS;
+ };
+/* End PBXContainerItemProxy section */
+
/* Begin PBXFileReference section */
08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
+ 22A07AE215241A3B008A2A36 /* libMAObjCRuntime_iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMAObjCRuntime_iOS.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 22A07AE415241A3B008A2A36 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 22A07AF115241A3B008A2A36 /* MAObjCRuntime_iOSTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MAObjCRuntime_iOSTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 22A07AF215241A3B008A2A36 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
+ 22A07AF415241A3B008A2A36 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
+ 22A07B1015241B00008A2A36 /* Test_iOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Test_iOS.h; path = ../Test_iOS.h; sourceTree = "<group>"; };
+ 22A07B1115241B00008A2A36 /* Test_iOS.h.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Test_iOS.h.m; path = ../Test_iOS.h.m; sourceTree = "<group>"; };
32A70AAB03705E1F00C91783 /* MAObjCRuntime_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MAObjCRuntime_Prefix.pch; sourceTree = "<group>"; };
794569E71481810F006AD2EB /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ../main.m; sourceTree = "<group>"; };
794569E81481810F006AD2EB /* MARTNSObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MARTNSObject.h; path = ../MARTNSObject.h; sourceTree = "<group>"; };
@@ -37,6 +66,25 @@
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
+ 22A07ADF15241A3B008A2A36 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22A07AE515241A3B008A2A36 /* Foundation.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 22A07AED15241A3B008A2A36 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22A07AF315241A3B008A2A36 /* SenTestingKit.framework in Frameworks */,
+ 22A07AF515241A3B008A2A36 /* UIKit.framework in Frameworks */,
+ 22A07AF615241A3B008A2A36 /* Foundation.framework in Frameworks */,
+ 22A07AF915241A3B008A2A36 /* libMAObjCRuntime_iOS.a in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
8DD76F9B0486AA7600D96B5E /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -64,8 +112,11 @@
794569F11481810F006AD2EB /* RTProtocol.m */,
794569F21481810F006AD2EB /* RTUnregisteredClass.h */,
794569F31481810F006AD2EB /* RTUnregisteredClass.m */,
+ 22A07B1015241B00008A2A36 /* Test_iOS.h */,
+ 22A07B1115241B00008A2A36 /* Test_iOS.h.m */,
32A70AAB03705E1F00C91783 /* MAObjCRuntime_Prefix.pch */,
08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */,
+ 22A07AE315241A3B008A2A36 /* Frameworks */,
1AB674ADFE9D54B511CA2CBB /* Products */,
);
name = MAObjCRuntime;
@@ -83,13 +134,71 @@
isa = PBXGroup;
children = (
8DD76FA10486AA7600D96B5E /* MAObjCRuntime */,
+ 22A07AE215241A3B008A2A36 /* libMAObjCRuntime_iOS.a */,
+ 22A07AF115241A3B008A2A36 /* MAObjCRuntime_iOSTests.octest */,
);
name = Products;
sourceTree = "<group>";
};
+ 22A07AE315241A3B008A2A36 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 22A07AE415241A3B008A2A36 /* Foundation.framework */,
+ 22A07AF215241A3B008A2A36 /* SenTestingKit.framework */,
+ 22A07AF415241A3B008A2A36 /* UIKit.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
+/* Begin PBXHeadersBuildPhase section */
+ 22A07AE015241A3B008A2A36 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
/* Begin PBXNativeTarget section */
+ 22A07AE115241A3B008A2A36 /* MAObjCRuntime_iOS */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 22A07B0715241A3B008A2A36 /* Build configuration list for PBXNativeTarget "MAObjCRuntime_iOS" */;
+ buildPhases = (
+ 22A07ADE15241A3B008A2A36 /* Sources */,
+ 22A07ADF15241A3B008A2A36 /* Frameworks */,
+ 22A07AE015241A3B008A2A36 /* Headers */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = MAObjCRuntime_iOS;
+ productName = MAObjCRuntime_iOS;
+ productReference = 22A07AE215241A3B008A2A36 /* libMAObjCRuntime_iOS.a */;
+ productType = "com.apple.product-type.library.static";
+ };
+ 22A07AF015241A3B008A2A36 /* MAObjCRuntime_iOSTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 22A07B0815241A3B008A2A36 /* Build configuration list for PBXNativeTarget "MAObjCRuntime_iOSTests" */;
+ buildPhases = (
+ 22A07AEC15241A3B008A2A36 /* Sources */,
+ 22A07AED15241A3B008A2A36 /* Frameworks */,
+ 22A07AEE15241A3B008A2A36 /* Resources */,
+ 22A07AEF15241A3B008A2A36 /* ShellScript */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 22A07AF815241A3B008A2A36 /* PBXTargetDependency */,
+ );
+ name = MAObjCRuntime_iOSTests;
+ productName = MAObjCRuntime_iOSTests;
+ productReference = 22A07AF115241A3B008A2A36 /* MAObjCRuntime_iOSTests.octest */;
+ productType = "com.apple.product-type.bundle";
+ };
8DD76F960486AA7600D96B5E /* MAObjCRuntime */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "MAObjCRuntime" */;
@@ -121,17 +230,67 @@
Japanese,
French,
German,
+ en,
);
mainGroup = 08FB7794FE84155DC02AAC07 /* MAObjCRuntime */;
projectDirPath = "";
projectRoot = "";
targets = (
8DD76F960486AA7600D96B5E /* MAObjCRuntime */,
+ 22A07AE115241A3B008A2A36 /* MAObjCRuntime_iOS */,
+ 22A07AF015241A3B008A2A36 /* MAObjCRuntime_iOSTests */,
);
};
/* End PBXProject section */
+/* Begin PBXResourcesBuildPhase section */
+ 22A07AEE15241A3B008A2A36 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 22A07AEF15241A3B008A2A36 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
+ 22A07ADE15241A3B008A2A36 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22A07B0A15241A7A008A2A36 /* MARTNSObject.m in Sources */,
+ 22A07B0B15241A7A008A2A36 /* RTIvar.m in Sources */,
+ 22A07B0C15241A7A008A2A36 /* RTMethod.m in Sources */,
+ 22A07B0D15241A7A008A2A36 /* RTProperty.m in Sources */,
+ 22A07B0E15241A7A008A2A36 /* RTProtocol.m in Sources */,
+ 22A07B0F15241A7A008A2A36 /* RTUnregisteredClass.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 22A07AEC15241A3B008A2A36 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22A07B1215241B00008A2A36 /* Test_iOS.h.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
8DD76F990486AA7600D96B5E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -148,6 +307,14 @@
};
/* End PBXSourcesBuildPhase section */
+/* Begin PBXTargetDependency section */
+ 22A07AF815241A3B008A2A36 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 22A07AE115241A3B008A2A36 /* MAObjCRuntime_iOS */;
+ targetProxy = 22A07AF715241A3B008A2A36 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
/* Begin XCBuildConfiguration section */
1DEB927508733DD40010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
@@ -204,6 +371,108 @@
};
name = Release;
};
+ 22A07B0315241A3B008A2A36 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ COPY_PHASE_STRIP = NO;
+ DSTROOT = /tmp/MAObjCRuntime_iOS.dst;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = MAObjCRuntime_Prefix.pch;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ SKIP_INSTALL = YES;
+ };
+ name = Debug;
+ };
+ 22A07B0415241A3B008A2A36 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ COPY_PHASE_STRIP = YES;
+ DSTROOT = /tmp/MAObjCRuntime_iOS.dst;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = MAObjCRuntime_Prefix.pch;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ SKIP_INSTALL = YES;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 22A07B0515241A3B008A2A36 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ COPY_PHASE_STRIP = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = MAObjCRuntime_Prefix.pch;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-all_load",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Debug;
+ };
+ 22A07B0615241A3B008A2A36 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ COPY_PHASE_STRIP = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = MAObjCRuntime_Prefix.pch;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-all_load",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -225,6 +494,22 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 22A07B0715241A3B008A2A36 /* Build configuration list for PBXNativeTarget "MAObjCRuntime_iOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 22A07B0315241A3B008A2A36 /* Debug */,
+ 22A07B0415241A3B008A2A36 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+ 22A07B0815241A3B008A2A36 /* Build configuration list for PBXNativeTarget "MAObjCRuntime_iOSTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 22A07B0515241A3B008A2A36 /* Debug */,
+ 22A07B0615241A3B008A2A36 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
/* End XCConfigurationList section */
};
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
Please sign in to comment.
Something went wrong with that request. Please try again.