<?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>199852</bug_id>
          
          <creation_ts>2019-07-17 03:17:43 -0700</creation_ts>
          <short_desc>run-safari --ios-simulator is no longer working with Xcode 11</short_desc>
          <delta_ts>2019-09-26 14:54:39 -0700</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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=177595</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=178203</see_also>
          <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>
          
          <blocked>202263</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Frédéric Wang Nélar">fred.wang</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>jbedard</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1553472</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-07-17 03:17:43 -0700</bug_when>
    <thetext>XCode relase and beta use different paths for MobileSafari.app:

$ find Xcode.app -name MobileSafari.app
Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app

$ find Xcode-beta.app -name MobileSafari.app
Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app

(note that &quot;Developer&quot; and &quot;Library&quot; have been switched)

A trivial patch to make things work again is:

diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm
index 1374b4b3f2..c011655669 100755
--- a/Tools/Scripts/webkitdirs.pm
+++ b/Tools/Scripts/webkitdirs.pm
@@ -2503,7 +2503,7 @@ sub setupIOSWebKitEnvironment($)
 sub iosSimulatorApplicationsPath()
 {
     # FIXME: We should ask simctl for this information, instead of guessing from available runtimes.
-    my $runtimePath = File::Spec-&gt;catdir(sdkPlatformDirectory(&quot;iphoneos&quot;), &quot;Developer&quot;, &quot;Library&quot;, &quot;CoreSimulator&quot;, &quot;Profiles&quot;, &quot;Runtimes&quot;);
+    my $runtimePath = File::Spec-&gt;catdir(sdkPlatformDirectory(&quot;iphoneos&quot;), &quot;Library&quot;, &quot;Developer&quot;, &quot;CoreSimulator&quot;, &quot;Profiles&quot;, &quot;Runtimes&quot;);
     opendir(RUNTIMES, $runtimePath);
     my @runtimes = grep {/.*\.simruntime/} readdir(RUNTIMES);
     close(RUNTIMES);

but of course that will break backward compatibility...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574413</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-26 03:26:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/55738122&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574424</commentid>
    <comment_count>2</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-09-26 05:27:03 -0700</bug_when>
    <thetext>This bug now happens on Mojave with the recent XCode 11 release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574436</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-09-26 07:22:13 -0700</bug_when>
    <thetext>We can totally break iOS 12 at this point, so the &apos;trivial patch&apos; is probably the way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574615</commentid>
    <comment_count>4</comment_count>
      <attachid>379676</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-09-26 13:54:22 -0700</bug_when>
    <thetext>Created attachment 379676
Patch

OK let&apos;s do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574642</commentid>
    <comment_count>5</comment_count>
      <attachid>379676</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-26 14:54:37 -0700</bug_when>
    <thetext>Comment on attachment 379676
Patch

Clearing flags on attachment: 379676

Committed r250400: &lt;https://trac.webkit.org/changeset/250400&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574643</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-26 14:54:39 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>379676</attachid>
            <date>2019-09-26 13:54:22 -0700</date>
            <delta_ts>2019-09-26 14:54:37 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>199852.patch</filename>
            <type>text/plain</type>
            <size>1648</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAzMjM0
ODU2NDExNi4uMTdlMjllNjM1YzcgMTAwNjQ0Ci0tLSBhL1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