'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print $2}\')',
},
'conditions': [
- ['xcode_version=="6.0"', {
+ ['xcode_version>="6.0"', {
'variables': {
'iphone_sim_path': '<(developer_dir)/../SharedFrameworks',
},
'defines': [
'IOSSIM_USE_XCODE_6',
],
+ 'xcode_settings': {
+ # The CoreSimulator.h file generated by class-dump defines a
+ # property of type |NSString*| and a setter for the property
+ # that takes a parameter of type |id|. This type mismatch causes
+ # a compiler warning, so turn off -Werror.
+ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
+ },
'actions': [
{
'action_name': 'generate_dvt_foundation_header',
'message': 'Generating CoreSimulator.h',
},
], # actions
- }, { # else: xcode_version!="6"
+ }, { # else: xcode_version<"6.0"
'variables': {
'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks',
},