Skip to content

Commit 04caaa4

Browse files
Allow passing a device destination to xcode commands
1 parent 4ab11ac commit 04caaa4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/lime/tools/IOSHelper.hx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ class IOSHelper
123123
"-derivedDataPath",
124124
"DerivedData"
125125
];
126-
127-
if (project.targetFlags.exists("simulator"))
126+
127+
//destination implies architecture, architecture must not also be specified
128+
if(project.targetFlags.exists("destination"))
129+
{
130+
commands.push("-destination");
131+
commands.push("id=" + project.targetFlags.get("destination"));
132+
}
133+
else if (project.targetFlags.exists("simulator"))
128134
{
129135
if (project.targetFlags.exists("i386") || project.targetFlags.exists("32") || project.targetFlags.exists("x86_32"))
130136
{

0 commit comments

Comments
 (0)