mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-06 17:32:55 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user