mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
[profiler] Pass arguments to app on launch.
This commit is contained in:
@@ -278,14 +278,14 @@ EOS
|
||||
end
|
||||
|
||||
# TODO
|
||||
# * add launch args and env vars from user
|
||||
# * add env vars from user
|
||||
# * add optional Instruments template to use?
|
||||
def profiler_config_plist(platform)
|
||||
def profiler_config_plist(platform, args)
|
||||
working_dir = File.expand_path(versionized_build_dir(platform))
|
||||
{
|
||||
'CFBundleIdentifier' => identifier,
|
||||
'absolutePathOfLaunchable' => File.expand_path(app_bundle_executable(platform)),
|
||||
'argumentEntries' => '',
|
||||
'argumentEntries' => (args or ''),
|
||||
'workingDirectory' => working_dir,
|
||||
'workspacePath' => '', # Normally: /path/to/Project.xcodeproj/project.xcworkspace
|
||||
'environmentEntries' => {
|
||||
|
||||
Reference in New Issue
Block a user