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
e4e9fabc
Commit
e4e9fabc
authored
Oct 09, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Configure ARC on all build configurations of the Pods proj.
Closes #1454
parent
a62645d9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
16 deletions
+6
-16
CHANGELOG.md
CHANGELOG.md
+5
-0
installer.rb
lib/cocoapods/installer.rb
+1
-0
project.rb
lib/cocoapods/project.rb
+0
-10
project_spec.rb
spec/unit/project_spec.rb
+0
-6
No files found.
CHANGELOG.md
View file @
e4e9fabc
...
...
@@ -12,6 +12,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Kyle Fuller
](
https://github.com/kylef
)
[
#1456
](
https://github.com/CocoaPods/CocoaPods/issues/1456
)
*
The Pods project now properly configures ARC on all build configurations.
[
Fabio Pelosin
](
https://github.com/irrationalfab
)
[
#1454
](
https://github.com/CocoaPods/CocoaPods/issues/1454
)
## 0.26.1
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.25.0...0.26.0
)
•
[
cocoapods-core
](
https://github.com/CocoaPods/Core/compare/0.25.0...0.26.0
)
...
...
lib/cocoapods/installer.rb
View file @
e4e9fabc
...
...
@@ -310,6 +310,7 @@ module Pod
build_configuration
.
build_settings
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
osx_deployment_target
.
to_s
if
osx_deployment_target
build_configuration
.
build_settings
[
'IPHONEOS_DEPLOYMENT_TARGET'
]
=
ios_deployment_target
.
to_s
if
ios_deployment_target
build_configuration
.
build_settings
[
'STRIP_INSTALLED_PRODUCT'
]
=
'NO'
build_configuration
.
build_settings
[
'CLANG_ENABLE_OBJC_ARC'
]
=
'NO'
end
end
end
...
...
lib/cocoapods/project.rb
View file @
e4e9fabc
...
...
@@ -19,16 +19,6 @@ module Pod
@refs_by_absolute_path
=
{}
@pods
=
new_group
(
'Pods'
)
@development_pods
=
new_group
(
'Development Pods'
)
set_cocoapods_defaults
end
# @return [void] Prepares the project with the build settings used by
# CocoaPods.
#
def
set_cocoapods_defaults
build_configurations
.
each
do
|
configuration
|
configuration
.
build_settings
[
'CLANG_ENABLE_OBJC_ARC'
]
=
'NO'
end
end
# @return [PBXGroup] The group for the support files of the aggregate
...
...
spec/unit/project_spec.rb
View file @
e4e9fabc
...
...
@@ -23,12 +23,6 @@ module Pod
@project
.
development_pods
.
name
.
should
==
'Development Pods'
end
it
"sets the default build settings of CocoaPods"
do
@project
.
build_configurations
.
each
do
|
configuration
|
configuration
.
build_settings
[
'CLANG_ENABLE_OBJC_ARC'
].
should
==
'NO'
end
end
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