Commit 81ec79de authored by Boris Bügling's avatar Boris Bügling

Do not pass code-sign arguments for OS X targets.

Fixes #3310
parent dbbfd255
...@@ -4,6 +4,15 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -4,6 +4,15 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
To install release candidates run `[sudo] gem install cocoapods --pre` To install release candidates run `[sudo] gem install cocoapods --pre`
## Master
##### Bug Fixes
* Do not pass code-sign arguments to xcodebuild when linting OS X targets.
[Boris Bügling](https://github.com/neonichu)
[#3310](https://github.com/CocoaPods/CocoaPods/issues/3310)
## 0.36.3 ## 0.36.3
##### Bug Fixes ##### Bug Fixes
......
...@@ -538,8 +538,8 @@ module Pod ...@@ -538,8 +538,8 @@ module Pod
# returns its output (both STDOUT and STDERR). # returns its output (both STDOUT and STDERR).
# #
def xcodebuild def xcodebuild
command = 'xcodebuild clean build -target Pods CODE_SIGN_IDENTITY=-' command = 'xcodebuild clean build -target Pods'
command << ' -sdk iphonesimulator' if consumer.platform_name == :ios command << ' CODE_SIGN_IDENTITY=- -sdk iphonesimulator' if consumer.platform_name == :ios
output, status = _xcodebuild "#{command} 2>&1" output, status = _xcodebuild "#{command} 2>&1"
unless status.success? unless status.success?
......
...@@ -380,9 +380,9 @@ module Pod ...@@ -380,9 +380,9 @@ module Pod
validator.stubs(:check_file_patterns) validator.stubs(:check_file_patterns)
validator.stubs(:validate_url) validator.stubs(:validate_url)
validator.expects(:`).with('which xcodebuild').twice.returns('/usr/bin/xcodebuild') validator.expects(:`).with('which xcodebuild').twice.returns('/usr/bin/xcodebuild')
command = 'xcodebuild clean build -target Pods CODE_SIGN_IDENTITY=-' command = 'xcodebuild clean build -target Pods'
validator.expects(:`).with("#{command} 2>&1").once.returns('') validator.expects(:`).with("#{command} 2>&1").once.returns('')
validator.expects(:`).with("#{command} -sdk iphonesimulator 2>&1").once.returns('') validator.expects(:`).with("#{command} CODE_SIGN_IDENTITY=- -sdk iphonesimulator 2>&1").once.returns('')
validator.validate validator.validate
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment