Skip to content

Commit

Permalink
[Analyzer] Fix non integrating architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Oct 7, 2013
1 parent 841407c commit 0d327a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -11,8 +11,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Fabio Pelosin](https://github.com/irrationalfab)
[#1185](https://github.com/CocoaPods/CocoaPods/pull/1185)

* Non integrating installations now set the architecture of the Pod targets to
the `$(ARCHS_STANDARD)` value.
* Non integrating installations for OS X targets now set the architecture of
* the Pod targets to `$(ARCHS_STANDARD_64_BIT)`.
[Fabio Pelosin](https://github.com/irrationalfab)
[#1185](https://github.com/CocoaPods/CocoaPods/pull/1185)

Expand Down
4 changes: 3 additions & 1 deletion lib/cocoapods/installer/analyzer.rb
Expand Up @@ -182,7 +182,9 @@ def generate_targets
target.client_root = config.installation_root
target.user_target_uuids = []
target.user_build_configurations = {}
target.archs = '$(ARCHS_STANDARD)'
if target_definition.platform.name == :osx
target.archs = '$(ARCHS_STANDARD_64_BIT)'
end
end

grouped_specs = specs.map do |spec|
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/installer/target_installer.rb
Expand Up @@ -45,7 +45,7 @@ def add_target

settings = {}
if library.archs
settings['ARCHS'] = library.archs
settings['ARCHS'] = library.archs
else
settings.delete('ARCHS')
end
Expand Down

0 comments on commit 0d327a0

Please sign in to comment.