From 7f86f9656e3ecb2fc79eba26b3519fc7defa45eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Fri, 2 Nov 2012 22:30:55 +0100 Subject: [PATCH] [Fixture] Add simple static lib xcode project. --- .../Sample Lib.xcodeproj/project.pbxproj | 242 ++++++++++++++++++ .../Sample Lib/Sample Lib-Prefix.pch | 7 + .../Sample Lib/Sample Lib/Sample_Lib.h | 13 + .../Sample Lib/Sample Lib/Sample_Lib.m | 13 + 4 files changed, 275 insertions(+) create mode 100644 spec/fixtures/SampleProject/Sample Lib/Sample Lib.xcodeproj/project.pbxproj create mode 100644 spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample Lib-Prefix.pch create mode 100644 spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.h create mode 100644 spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.m diff --git a/spec/fixtures/SampleProject/Sample Lib/Sample Lib.xcodeproj/project.pbxproj b/spec/fixtures/SampleProject/Sample Lib/Sample Lib.xcodeproj/project.pbxproj new file mode 100644 index 0000000..18cdf02 --- /dev/null +++ b/spec/fixtures/SampleProject/Sample Lib/Sample Lib.xcodeproj/project.pbxproj @@ -0,0 +1,242 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 51E94E13164472080035348C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E94E12164472080035348C /* Foundation.framework */; }; + 51E94E18164472090035348C /* Sample_Lib.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 51E94E17164472090035348C /* Sample_Lib.h */; }; + 51E94E1A164472090035348C /* Sample_Lib.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E94E19164472090035348C /* Sample_Lib.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 51E94E0D164472080035348C /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/${PRODUCT_NAME}"; + dstSubfolderSpec = 16; + files = ( + 51E94E18164472090035348C /* Sample_Lib.h in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 51E94E0F164472080035348C /* libSample Lib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libSample Lib.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 51E94E12164472080035348C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 51E94E16164472090035348C /* Sample Lib-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Sample Lib-Prefix.pch"; sourceTree = ""; }; + 51E94E17164472090035348C /* Sample_Lib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Sample_Lib.h; sourceTree = ""; }; + 51E94E19164472090035348C /* Sample_Lib.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Sample_Lib.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 51E94E0C164472080035348C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 51E94E13164472080035348C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 51E94E04164472080035348C = { + isa = PBXGroup; + children = ( + 51E94E14164472090035348C /* Sample Lib */, + 51E94E11164472080035348C /* Frameworks */, + 51E94E10164472080035348C /* Products */, + ); + sourceTree = ""; + }; + 51E94E10164472080035348C /* Products */ = { + isa = PBXGroup; + children = ( + 51E94E0F164472080035348C /* libSample Lib.a */, + ); + name = Products; + sourceTree = ""; + }; + 51E94E11164472080035348C /* Frameworks */ = { + isa = PBXGroup; + children = ( + 51E94E12164472080035348C /* Foundation.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 51E94E14164472090035348C /* Sample Lib */ = { + isa = PBXGroup; + children = ( + 51E94E17164472090035348C /* Sample_Lib.h */, + 51E94E19164472090035348C /* Sample_Lib.m */, + 51E94E15164472090035348C /* Supporting Files */, + ); + path = "Sample Lib"; + sourceTree = ""; + }; + 51E94E15164472090035348C /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 51E94E16164472090035348C /* Sample Lib-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 51E94E0E164472080035348C /* Sample Lib */ = { + isa = PBXNativeTarget; + buildConfigurationList = 51E94E1D164472090035348C /* Build configuration list for PBXNativeTarget "Sample Lib" */; + buildPhases = ( + 51E94E0B164472080035348C /* Sources */, + 51E94E0C164472080035348C /* Frameworks */, + 51E94E0D164472080035348C /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Sample Lib"; + productName = "Sample Lib"; + productReference = 51E94E0F164472080035348C /* libSample Lib.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 51E94E06164472080035348C /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0450; + ORGANIZATIONNAME = CocoaPods; + }; + buildConfigurationList = 51E94E09164472080035348C /* Build configuration list for PBXProject "Sample Lib" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 51E94E04164472080035348C; + productRefGroup = 51E94E10164472080035348C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 51E94E0E164472080035348C /* Sample Lib */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 51E94E0B164472080035348C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51E94E1A164472090035348C /* Sample_Lib.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 51E94E1B164472090035348C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 51E94E1C164472090035348C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 51E94E1E164472090035348C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/Sample_Lib.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Sample Lib/Sample Lib-Prefix.pch"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 51E94E1F164472090035348C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/Sample_Lib.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Sample Lib/Sample Lib-Prefix.pch"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 51E94E09164472080035348C /* Build configuration list for PBXProject "Sample Lib" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51E94E1B164472090035348C /* Debug */, + 51E94E1C164472090035348C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 51E94E1D164472090035348C /* Build configuration list for PBXNativeTarget "Sample Lib" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51E94E1E164472090035348C /* Debug */, + 51E94E1F164472090035348C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 51E94E06164472080035348C /* Project object */; +} diff --git a/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample Lib-Prefix.pch b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample Lib-Prefix.pch new file mode 100644 index 0000000..f930708 --- /dev/null +++ b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample Lib-Prefix.pch @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'Sample Lib' target in the 'Sample Lib' project +// + +#ifdef __OBJC__ + #import +#endif diff --git a/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.h b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.h new file mode 100644 index 0000000..3c49203 --- /dev/null +++ b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.h @@ -0,0 +1,13 @@ +// +// Sample_Lib.h +// Sample Lib +// +// Created by Eloy Durán on 11/2/12. +// Copyright (c) 2012 CocoaPods. All rights reserved. +// + +#import + +@interface Sample_Lib : NSObject + +@end diff --git a/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.m b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.m new file mode 100644 index 0000000..51187d5 --- /dev/null +++ b/spec/fixtures/SampleProject/Sample Lib/Sample Lib/Sample_Lib.m @@ -0,0 +1,13 @@ +// +// Sample_Lib.m +// Sample Lib +// +// Created by Eloy Durán on 11/2/12. +// Copyright (c) 2012 CocoaPods. All rights reserved. +// + +#import "Sample_Lib.h" + +@implementation Sample_Lib + +@end