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
38a8e724
Commit
38a8e724
authored
Oct 30, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify defaults for a XCBuildConfiguration (iOS static library).
parent
14cb718f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
project.rb
lib/cocoapods/xcode/project.rb
+14
-0
project_spec.rb
spec/unit/xcode/project_spec.rb
+13
-5
No files found.
lib/cocoapods/xcode/project.rb
View file @
38a8e724
...
...
@@ -233,7 +233,21 @@ module Pod
end
class
XCBuildConfiguration
<
PBXObject
attribute
:buildSettings
has_one
:baseConfiguration
def
initialize
(
*
)
super
# TODO These are from an iOS static library, need to check if it works for any product type
self
.
buildSettings
=
{
'DSTROOT'
=>
'/tmp/Pods.dst'
,
'GCC_PRECOMPILE_PREFIX_HEADER'
=>
'YES'
,
'GCC_PREFIX_HEADER'
=>
'Pods-Prefix.pch'
,
'GCC_VERSION'
=>
'com.apple.compilers.llvm.clang.1_0'
,
'PRODUCT_NAME'
=>
'$(TARGET_NAME)'
,
'SKIP_INSTALL'
=>
'YES'
,
}.
merge
(
buildSettings
||
{})
end
end
class
XCConfigurationList
<
PBXObject
...
...
spec/unit/xcode/project_spec.rb
View file @
38a8e724
...
...
@@ -137,6 +137,7 @@ describe "Pod::Xcode::Project" do
'productName'
=>
'Pods'
,
'productType'
=>
Pod
::
Xcode
::
Project
::
PBXNativeTarget
::
STATIC_LIBRARY
})
#@target = @project.targets.first
end
it
"returns the product name, which is the name of the binary (minus prefix/suffix)"
do
...
...
@@ -161,11 +162,18 @@ describe "Pod::Xcode::Project" do
it
"returns the buildConfigurationList"
do
list
=
@target
.
buildConfigurationList
list
.
should
.
be
.
instance_of
Pod
::
Xcode
::
Project
::
XCConfigurationList
list
.
buildConfigurations
.
map
(
&
:name
).
sort
.
should
==
%w{ Debug Release }
@target
.
buildConfigurationListReference
=
nil
@target
.
buildConfigurationList
.
should
==
nil
@target
.
buildConfigurationListReference
=
list
.
uuid
@target
.
buildConfigurationList
.
attributes
.
should
==
list
.
attributes
list
.
buildConfigurations
.
each
do
|
configuration
|
configuration
.
buildSettings
.
should
==
{
'DSTROOT'
=>
'/tmp/Pods.dst'
,
'GCC_PRECOMPILE_PREFIX_HEADER'
=>
'YES'
,
'GCC_PREFIX_HEADER'
=>
'Pods-Prefix.pch'
,
# Removed from the default XCBuildConfiguration#buildSettings
#'OTHER_LDFLAGS' => '-ObjC',
'GCC_VERSION'
=>
'com.apple.compilers.llvm.clang.1_0'
,
'PRODUCT_NAME'
=>
'$(TARGET_NAME)'
,
'SKIP_INSTALL'
=>
'YES'
,
}
end
end
it
"returns an empty list of dependencies and buildRules (not sure yet which classes those are yet)"
do
...
...
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