<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>193787</bug_id>
          
          <creation_ts>2019-01-24 15:14:33 -0800</creation_ts>
          <short_desc>[webkitdirs] iosSimulatorApplicationsPath may not have iOS.simruntime in its path</short_desc>
          <delta_ts>2019-01-24 16:36:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1497982</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-24 15:14:33 -0800</bug_when>
    <thetext>Make iosSimulatorApplicationsPath more flexible to accommodate different runtime directories.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497983</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-24 15:14:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/47497634&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497987</commentid>
    <comment_count>2</comment_count>
      <attachid>360042</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-24 15:22:03 -0800</bug_when>
    <thetext>Created attachment 360042
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1498009</commentid>
    <comment_count>3</comment_count>
      <attachid>360042</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2019-01-24 16:01:29 -0800</bug_when>
    <thetext>Comment on attachment 360042
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=360042&amp;action=review

&gt; Tools/ChangeLog:3
&gt; +        [webkitdirs] iosSimulatorApplicationsPath may not have iOS.simruntime in it&apos;s path

s/it&apos;s/its/

&gt; Tools/Scripts/webkitdirs.pm:2509
&gt; +    my @runtimes = grep {!/^\./} readdir(RUNTIMES);

Maybe check for &quot;.simruntime&quot; in the name?

&gt; Tools/Scripts/webkitdirs.pm:2511
&gt; +    return File::Spec-&gt;catdir($runtimePath, @runtimes ? $runtimes[0] : &quot;iOS.simruntime&quot;, &quot;Contents&quot;, &quot;Resources&quot;, &quot;RuntimeRoot&quot;, &quot;Applications&quot;);

I suggest adding a FIXME here. Building the path manually is fragile, and randomly picking a single runtime path is just weird. We need to find a way to determine which runtime corresponds to a simulator that we&apos;re about to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1498025</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-24 16:35:21 -0800</bug_when>
    <thetext>Committed r240455: &lt;https://trac.webkit.org/changeset/240455&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1498027</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-24 16:36:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/47533806&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>360042</attachid>
            <date>2019-01-24 15:22:03 -0800</date>
            <delta_ts>2019-01-24 16:01:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-193787-20190124152203.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI0MDQ1MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE5LTAxLTI0ICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBbd2Via2l0ZGlyc10gaW9zU2ltdWxhdG9yQXBwbGljYXRpb25zUGF0aCBt
YXkgbm90IGhhdmUgaU9TLnNpbXJ1bnRpbWUgaW4gaXQncyBwYXRoCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTM3ODcKKyAgICAgICAgPHJkYXI6Ly9w
cm9ibGVtLzQ3NDk3NjM0PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgICogU2NyaXB0cy93ZWJraXRkaXJzLnBtOgorICAgICAgICAoaW9zU2ltdWxhdG9y
QXBwbGljYXRpb25zUGF0aCk6IFBpY2sgZnJvbSBhdmFpbGFibGUgcnVudGltZSBkaXJlY3Rvcmll
cy4KKwogMjAxOS0wMS0yNCAgWmFsYW4gQnVqdGFzICA8emFsYW5AYXBwbGUuY29tPgogCiAgICAg
ICAgIERpZEZpcnN0VmlzdWFsbHlOb25FbXB0eUxheW91dCBtaWxlc3RvbmUg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UlVOVElNRVMpOworICAgIGNsb3NlKFJVTlRJTUVTKTsKKyAgICByZXR1cm4gRmlsZTo6U3Bl
Yy0+Y2F0ZGlyKCRydW50aW1lUGF0aCwgQHJ1bnRpbWVzID8gJHJ1bnRpbWVzWzBdIDogImlPUy5z
aW1ydW50aW1lIiwgIkNvbnRlbnRzIiwgIlJlc291cmNlcyIsICJSdW50aW1lUm9vdCIsICJBcHBs
aWNhdGlvbnMiKTsKIH0KIAogc3ViIGluc3RhbGxlZE1vYmlsZVNhZmFyaUJ1bmRsZSgpCg==
</data>
<flag name="review"
          id="376781"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>