Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
145e6ba9
Commit
145e6ba9
authored
Sep 11, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import a fresh cocoa touch static library xcode project.
parent
08b71052
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
298 additions
and
4 deletions
+298
-4
cocoa_pods.rb
lib/cocoa_pods.rb
+1
-0
specification.rb
lib/cocoa_pods/specification.rb
+4
-4
xcode_project.rb
lib/cocoa_pods/xcode_project.rb
+22
-0
project.pbxproj
...cocoa-touch-static-library/Pods.xcodeproj/project.pbxproj
+228
-0
Pods-Prefix.pch
...templates/cocoa-touch-static-library/Pods/Pods-Prefix.pch
+7
-0
Pods.h
...-project-templates/cocoa-touch-static-library/Pods/Pods.h
+13
-0
Pods.m
...-project-templates/cocoa-touch-static-library/Pods/Pods.m
+23
-0
No files found.
lib/cocoa_pods.rb
View file @
145e6ba9
...
...
@@ -8,4 +8,5 @@ module Pod
autoload
:Spec
,
'cocoa_pods/specification'
autoload
:Specification
,
'cocoa_pods/specification'
autoload
:Version
,
'cocoa_pods/version'
autoload
:XcodeProject
,
'cocoa_pods/xcode_project'
end
lib/cocoa_pods/specification.rb
View file @
145e6ba9
...
...
@@ -126,9 +126,9 @@ module Pod
source_files
.
concat
(
Dir
.
glob
(
pattern
.
to_s
))
end
end
#p source_files
load_paths
=
source_files
.
map
{
|
file
|
File
.
dirname
(
file
)
}.
uniq
#p load_path
s
project
=
XcodeProject
.
static_library
project
.
source_files
=
source_file
s
end
include
Config
::
Mixin
...
...
@@ -150,7 +150,7 @@ module Pod
# In case this spec is part of another pod's source, we need to dowload
# the other pod's source.
(
s
part_of_specification
||
self
).
download_if_necessary!
(
part_of_specification
||
self
).
download_if_necessary!
end
def
download_if_necessary!
...
...
lib/cocoa_pods/xcode_project.rb
0 → 100644
View file @
145e6ba9
framework
'Foundation'
module
Pod
class
XcodeProject
TEMPLATES_DIR
=
Pathname
.
new
(
File
.
expand_path
(
'../../../xcode-project-templates'
,
__FILE__
))
# TODO see if we really need different templates for iOS and OS X
def
self
.
static_library
new
TEMPLATES_DIR
+
'cocoa-touch-static-library.pbxproj'
end
def
initialize
(
template
)
@template
=
NSDictionary
.
dictionaryWithContentsOfFile
(
template
.
to_s
)
p
@template
end
def
source_files
=
(
files
)
@source_files
=
files
@load_paths
=
files
.
map
{
|
file
|
File
.
dirname
(
file
)
}.
uniq
end
end
end
xcode-project-templates/cocoa-touch-static-library/Pods.xcodeproj/project.pbxproj
0 → 100644
View file @
145e6ba9
// !$*UTF8*$!
{
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objects
=
{
/* Begin PBXBuildFile section */
515B0F8E141D3E3A001DC3E6
/* Foundation.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
515B0F8D141D3E3A001DC3E6
/* Foundation.framework */
;
};
515B0F94141D3E3A001DC3E6
/* Pods.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
515B0F93141D3E3A001DC3E6
/* Pods.m */
;
};
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
515B0F8A141D3E3A001DC3E6
/* libPods.a */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
archive.ar
;
includeInIndex
=
0
;
path
=
libPods.a
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
515B0F8D141D3E3A001DC3E6
/* Foundation.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
Foundation.framework
;
path
=
System/Library/Frameworks/Foundation.framework
;
sourceTree
=
SDKROOT
;
};
515B0F91141D3E3A001DC3E6
/* Pods-Prefix.pch */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"Pods-Prefix.pch"
;
sourceTree
=
"<group>"
;
};
515B0F92141D3E3A001DC3E6
/* Pods.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
Pods.h
;
sourceTree
=
"<group>"
;
};
515B0F93141D3E3A001DC3E6
/* Pods.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
Pods.m
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
515B0F87141D3E3A001DC3E6
/* Frameworks */
=
{
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
515B0F8E141D3E3A001DC3E6
/* Foundation.framework in Frameworks */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
515B0F7F141D3E3A001DC3E6
=
{
isa
=
PBXGroup
;
children
=
(
515B0F8F141D3E3A001DC3E6
/* Pods */
,
515B0F8C141D3E3A001DC3E6
/* Frameworks */
,
515B0F8B141D3E3A001DC3E6
/* Products */
,
);
sourceTree
=
"<group>"
;
};
515B0F8B141D3E3A001DC3E6
/* Products */
=
{
isa
=
PBXGroup
;
children
=
(
515B0F8A141D3E3A001DC3E6
/* libPods.a */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
};
515B0F8C141D3E3A001DC3E6
/* Frameworks */
=
{
isa
=
PBXGroup
;
children
=
(
515B0F8D141D3E3A001DC3E6
/* Foundation.framework */
,
);
name
=
Frameworks
;
sourceTree
=
"<group>"
;
};
515B0F8F141D3E3A001DC3E6
/* Pods */
=
{
isa
=
PBXGroup
;
children
=
(
515B0F92141D3E3A001DC3E6
/* Pods.h */
,
515B0F93141D3E3A001DC3E6
/* Pods.m */
,
515B0F90141D3E3A001DC3E6
/* Supporting Files */
,
);
path
=
Pods
;
sourceTree
=
"<group>"
;
};
515B0F90141D3E3A001DC3E6
/* Supporting Files */
=
{
isa
=
PBXGroup
;
children
=
(
515B0F91141D3E3A001DC3E6
/* Pods-Prefix.pch */
,
);
name
=
"Supporting Files"
;
sourceTree
=
"<group>"
;
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
515B0F88141D3E3A001DC3E6
/* Headers */
=
{
isa
=
PBXHeadersBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
515B0F89141D3E3A001DC3E6
/* Pods */
=
{
isa
=
PBXNativeTarget
;
buildConfigurationList
=
515B0F97141D3E3A001DC3E6
/* Build configuration list for PBXNativeTarget "Pods" */
;
buildPhases
=
(
515B0F86141D3E3A001DC3E6
/* Sources */
,
515B0F87141D3E3A001DC3E6
/* Frameworks */
,
515B0F88141D3E3A001DC3E6
/* Headers */
,
);
buildRules
=
(
);
dependencies
=
(
);
name
=
Pods
;
productName
=
Pods
;
productReference
=
515B0F8A141D3E3A001DC3E6
/* libPods.a */
;
productType
=
"com.apple.product-type.library.static"
;
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
515B0F81141D3E3A001DC3E6
/* Project object */
=
{
isa
=
PBXProject
;
buildConfigurationList
=
515B0F84141D3E3A001DC3E6
/* Build configuration list for PBXProject "Pods" */
;
compatibilityVersion
=
"Xcode 3.2"
;
developmentRegion
=
English
;
hasScannedForEncodings
=
0
;
knownRegions
=
(
en
,
);
mainGroup
=
515B0F7F141D3E3A001DC3E6
;
productRefGroup
=
515B0F8B141D3E3A001DC3E6
/* Products */
;
projectDirPath
=
""
;
projectRoot
=
""
;
targets
=
(
515B0F89141D3E3A001DC3E6
/* Pods */
,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
515B0F86141D3E3A001DC3E6
/* Sources */
=
{
isa
=
PBXSourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
515B0F94141D3E3A001DC3E6
/* Pods.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
515B0F95141D3E3A001DC3E6
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
ARCHS
=
"$(ARCHS_STANDARD_32_BIT)"
;
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_VERSION
=
com.apple.compilers.llvmgcc42
;
GCC_WARN_ABOUT_MISSING_PROTOTYPES
=
YES
;
GCC_WARN_ABOUT_RETURN_TYPE
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
4.3
;
SDKROOT
=
iphoneos
;
};
name
=
Debug
;
};
515B0F96141D3E3A001DC3E6
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
ARCHS
=
"$(ARCHS_STANDARD_32_BIT)"
;
COPY_PHASE_STRIP
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
GCC_VERSION
=
com.apple.compilers.llvmgcc42
;
GCC_WARN_ABOUT_MISSING_PROTOTYPES
=
YES
;
GCC_WARN_ABOUT_RETURN_TYPE
=
YES
;
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
4.3
;
SDKROOT
=
iphoneos
;
VALIDATE_PRODUCT
=
YES
;
};
name
=
Release
;
};
515B0F98141D3E3A001DC3E6
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
DSTROOT
=
/tmp/Pods.dst
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"Pods/Pods-Prefix.pch"
;
OTHER_LDFLAGS
=
"-ObjC"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
SKIP_INSTALL
=
YES
;
};
name
=
Debug
;
};
515B0F99141D3E3A001DC3E6
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
DSTROOT
=
/tmp/Pods.dst
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"Pods/Pods-Prefix.pch"
;
OTHER_LDFLAGS
=
"-ObjC"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
SKIP_INSTALL
=
YES
;
};
name
=
Release
;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
515B0F84141D3E3A001DC3E6
/* Build configuration list for PBXProject "Pods" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
515B0F95141D3E3A001DC3E6
/* Debug */
,
515B0F96141D3E3A001DC3E6
/* Release */
,
);
defaultConfigurationIsVisible
=
0
;
defaultConfigurationName
=
Release
;
};
515B0F97141D3E3A001DC3E6
/* Build configuration list for PBXNativeTarget "Pods" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
515B0F98141D3E3A001DC3E6
/* Debug */
,
515B0F99141D3E3A001DC3E6
/* Release */
,
);
defaultConfigurationIsVisible
=
0
;
};
/* End XCConfigurationList section */
};
rootObject
=
515B0F81141D3E3A001DC3E6
/* Project object */
;
}
xcode-project-templates/cocoa-touch-static-library/Pods/Pods-Prefix.pch
0 → 100644
View file @
145e6ba9
//
// Prefix header for all source files of the 'Pods' target in the 'Pods' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
xcode-project-templates/cocoa-touch-static-library/Pods/Pods.h
0 → 100644
View file @
145e6ba9
//
// Pods.h
// Pods
//
// Created by Eloy Duran on 11-09-11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
Pods
:
NSObject
@end
xcode-project-templates/cocoa-touch-static-library/Pods/Pods.m
0 → 100644
View file @
145e6ba9
//
// Pods.m
// Pods
//
// Created by Eloy Duran on 11-09-11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "Pods.h"
@implementation
Pods
-
(
id
)
init
{
self
=
[
super
init
];
if
(
self
)
{
// Initialization code here.
}
return
self
;
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment