<?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>207394</bug_id>
          
          <creation_ts>2020-02-07 10:33:40 -0800</creation_ts>
          <short_desc>run-safari Doesn&apos;t work with the latest Xcode version and iOS</short_desc>
          <delta_ts>2020-02-09 23:30:23 -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>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>koivisto</cc>
    
    <cc>niklasmerz</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1616238</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 10:33:40 -0800</bug_when>
    <thetext>At the moment, run-safari doesn&apos;t work with the latest Xcode version and iOS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616257</commentid>
    <comment_count>1</comment_count>
      <attachid>390106</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 10:57:55 -0800</bug_when>
    <thetext>Created attachment 390106
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616261</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 10:59:48 -0800</bug_when>
    <thetext>Not convinced this solution is the for fix Niklas&apos;s bug, but it is definitely one of the problems with the current code.

We really need to replace run-safari with a Python script that actually knows how to interact with the simulator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616295</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-02-07 12:23:40 -0800</bug_when>
    <thetext>Yeah, this seems to be unrelated to his issue. I think his issue that it can’t find NSDictionary Perl package. Maybe some Apple internal package creeped into WebKit repo? Or maybe it got removed from public SDK but not from internal SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616317</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 13:01:15 -0800</bug_when>
    <thetext>(In reply to Ryosuke Niwa from comment #3)
&gt; Yeah, this seems to be unrelated to his issue. I think his issue that it
&gt; can’t find NSDictionary Perl package. Maybe some Apple internal package
&gt; creeped into WebKit repo? Or maybe it got removed from public SDK but not
&gt; from internal SDK.

I have a few customer installs and couldn&apos;t reproduce the issue, the only thing I can think of is fresh install vs update install.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616350</commentid>
    <comment_count>5</comment_count>
      <attachid>390106</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-07 14:00:08 -0800</bug_when>
    <thetext>Comment on attachment 390106
Patch

Clearing flags on attachment: 390106

Committed r256059: &lt;https://trac.webkit.org/changeset/256059&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616351</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-07 14:00:10 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616352</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-07 14:01:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/59272677&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616781</commentid>
    <comment_count>8</comment_count>
    <who name="Niklas Merz">niklasmerz</who>
    <bug_when>2020-02-09 23:30:23 -0800</bug_when>
    <thetext>Yes this did not solve my problem. I did an update and got the same error again: 

❯ Tools/Scripts/run-safari --ios-simulator --debug
Can&apos;t locate object method &quot;dictionaryWithContentsOfFile_&quot; via package &quot;NSDictionary&quot; (perhaps you forgot to load &quot;NSDictionary&quot;?) at /Users/niklasmerz/Documents/WebkitSVN/Tools/Scripts/webkitdirs.pm line 1527.

I have no experience with Perl, but I did one attempt with no success:

❯ cpanm Mac::Tie::PList
--&gt; Working on Mac::Tie::PList
Fetching http://www.cpan.org/authors/id/G/GB/GBROCK/Mac-Tie-PList-0.03.tar.gz ... OK
Configuring Mac-Tie-PList-0.03 ... OK
==&gt; Found dependencies: Foundation
! Finding Foundation on cpanmetadb failed.
! Finding Foundation (1) on metacpan failed.
! Finding Foundation (1) on mirror http://www.cpan.org failed.
! Couldn&apos;t find module or a distribution Foundation (1)
! Installing the dependencies failed: Module &apos;Foundation&apos; is not installed
! Bailing out the installation for Mac-Tie-PList-0.03.

I searched for the Perl module for NSDictionary and found this one https://metacpan.org/pod/Mac::Tie::PList but I cannot install it. 

Can I create more info? Should a create a new bug?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>390106</attachid>
            <date>2020-02-07 10:57:55 -0800</date>
            <delta_ts>2020-02-07 14:00:08 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207394-20200207105748.patch</filename>
            <type>text/plain</type>
            <size>2391</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1NjAzMykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDIwLTAyLTA3ICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBydW4tc2FmYXJpIERvZXNuJ3Qgd29yayB3aXRoIHRoZSBsYXRlc3QgWGNv
ZGUgdmVyc2lvbiBhbmQgaU9TCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0yMDczOTQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICAqIFNjcmlwdHMvd2Via2l0ZGlycy5wbToKKyAgICAgICAgKGlvc1NpbXVsYXRv
clJ1bnRpbWUpOiBEZXRlcm1pbmUgdGhlIHJ1bnRpbWUgZnJvbSB2YWxpZCBydW50aW1lcy4KKyAg
ICAgICAgKGZpbmRPckNyZWF0ZVNpbXVsYXRvckZvcklPU0RldmljZSk6IGlQaG9uZSA1IGlzIHVu
c3VwcG9ydGVkLCByZW1vdmUgY29kZS4KKwogMjAyMC0wMi0wNyAgQWFrYXNoIEphaW4gIDxhYWth
c2hfamFpbkBhcHBsZS5jb20+CiAKICAgICAgICAgW2V3c10gYWRkIGNvbW1pdC1xdWV1ZSBidWls
ZCBzdGVwIHRvIGNsb3NlIHRoZSBidWcKSW5kZXg6IFRvb2xzL1NjcmlwdHMvd2Via2l0ZGlycy5w
bQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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