[iOS8] fix where Instruments does not launch

http://hipbyte.myjetbrains.com/youtrack/issue/RM-563

Since iOS 8, simulator UUID will be required to launch.
This commit is contained in:
Watson
2014-08-18 12:16:58 +09:00
parent d06a688299
commit ec3e808e3d
2 changed files with 25 additions and 1 deletions

View File

@@ -336,6 +336,19 @@ EOS
}
end
def profiler_config_device_identifier(device_name, target)
if xcode_version[0] >= '6.0'
re = /#{device_name} \(#{target} Simulator\) \[(.+)\]/
`/usr/bin/xcrun instruments -s 2>&1`.strip.split("\n").each { |line|
if m = re.match(line)
return m[1]
end
}
else
App.config.sdk('iPhoneSimulator')
end
end
def pkginfo_data
"AAPL#{@bundle_signature}"
end