Changeset 240455 in webkit


Ignore:
Timestamp:
Jan 24, 2019 4:35:19 PM (5 years ago)
Author:
Jonathan Bedard
Message:

[webkitdirs] iosSimulatorApplicationsPath may not have iOS.simruntime in its path
https://bugs.webkit.org/show_bug.cgi?id=193787
<rdar://problem/47497634>

Reviewed by Alexey Proskuryakov.

  • Scripts/webkitdirs.pm:

(iosSimulatorApplicationsPath): Pick from available runtime directories.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r240453 r240455  
     12019-01-24  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webkitdirs] iosSimulatorApplicationsPath may not have iOS.simruntime in its path
     4        https://bugs.webkit.org/show_bug.cgi?id=193787
     5        <rdar://problem/47497634>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Scripts/webkitdirs.pm:
     10        (iosSimulatorApplicationsPath): Pick from available runtime directories.
     11
    1122019-01-24  Truitt Savell  <tsavell@apple.com>
    213
  • trunk/Tools/Scripts/webkitdirs.pm

    r238025 r240455  
    25052505sub iosSimulatorApplicationsPath()
    25062506{
    2507     my $iphoneOSPlatformPath = sdkPlatformDirectory("iphoneos");
    2508     return File::Spec->catdir($iphoneOSPlatformPath, "Developer", "Library", "CoreSimulator", "Profiles", "Runtimes", "iOS.simruntime", "Contents", "Resources", "RuntimeRoot", "Applications");
     2507    # FIXME: We should ask simctl for this information, instead of guessing from available runtimes.
     2508    my $runtimePath = File::Spec->catdir(sdkPlatformDirectory("iphoneos"), "Developer", "Library", "CoreSimulator", "Profiles", "Runtimes");
     2509    opendir(RUNTIMES, $runtimePath);
     2510    my @runtimes = grep {/.*\.simruntime/} readdir(RUNTIMES);
     2511    close(RUNTIMES);
     2512    my $sult = File::Spec->catdir($runtimePath, @runtimes ? $runtimes[0] : "iOS.simruntime", "Contents", "Resources", "RuntimeRoot", "Applications");
     2513    return $sult;
    25092514}
    25102515
Note: See TracChangeset for help on using the changeset viewer.