Skip to content

Commit ab55fd8

Browse files
author
Matthew Benedict
committed
Fix simulator build
1 parent 846b589 commit ab55fd8

7 files changed

Lines changed: 46 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.pbxuser
33
*.perspective*
44
*.pyc
5+
*.resolved
56
.DS_Store
67
.directory
78
/CyberKitBuild/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--- !tapi-tbd-v3
2+
archs: [ x86_64, arm64, arm64e ]
3+
install-name: '/System/Library/PrivateFrameworks/InstallCoordination.framework/InstallCoordination'
4+
platform: ios
5+
exports:
6+
- archs: [ x86_64, arm64, arm64e ]
7+
objc-classes: [ IXAppInstallCoordinator, IXOpaqueDataPromise, IXOwnedDataPromise, IXPlaceholder, IXPlaceholderAttributes, IXPromisedInMemoryDictionary, IXPromisedOutOfBandTransfer, IXRestoringDemotedAppInstallCoordinator ]
8+
...
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- !tapi-tbd-v3
2+
archs: [ x86_64, arm64, arm64e ]
3+
install-name: '/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices'
4+
objc-constraint: none
5+
platform: ios
6+
exports:
7+
- archs: [ x86_64, arm64, arm64e ]
8+
symbols: [ _FBSActivateForEventOptionTypeBackgroundContentFetching, _FBSOpenApplicationOptionKeyActivateForEvent, _FBSOpenApplicationOptionKeyPayloadOptions, _FBSOpenApplicationOptionKeyPayloadURL ]
9+
...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--- !tapi-tbd-v3
2+
archs: [ x86_64, arm64, arm64e ]
3+
install-name: '/System/Library/PrivateFrameworks/InstallCoordination.framework/InstallCoordination'
4+
platform: ios
5+
exports:
6+
- archs: [ x86_64, arm64, arm64e ]
7+
objc-classes: [ IXAppInstallCoordinator, IXOpaqueDataPromise, IXOwnedDataPromise, IXPlaceholder, IXPlaceholderAttributes, IXPromisedInMemoryDictionary, IXPromisedOutOfBandTransfer, IXRestoringDemotedAppInstallCoordinator ]
8+
...
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- !tapi-tbd-v3
2+
archs: [ x86_64, arm64, arm64e ]
3+
install-name: '/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices'
4+
objc-constraint: none
5+
platform: ios
6+
exports:
7+
- archs: [ x86_64, arm64, arm64e ]
8+
symbols: [ _FBSActivateForEventOptionTypeBackgroundContentFetching, _FBSOpenApplicationOptionKeyActivateForEvent, _FBSOpenApplicationOptionKeyPayloadOptions, _FBSOpenApplicationOptionKeyPayloadURL ]
9+
...

Tools/Scripts/webkitdirs.pm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,13 +3045,14 @@ sub iosSimulatorRuntime()
30453045
{
30463046
my $xcodeSDKVersion = xcodeSDKVersion();
30473047
$xcodeSDKVersion =~ s/\./-/;
3048-
my $runtime = "com.apple.CoreSimulator.SimRuntime.iOS-$xcodeSDKVersion";
3049-
3048+
my $runtime = "com.apple.CoreSimulator.SimRuntime.iOS-14-0";
3049+
=for comment
30503050
open(TEST, "-|", "xcrun --sdk iphonesimulator simctl list 2>&1") or die "Failed to run find simulator runtime";
30513051
while ( my $line = <TEST> ) {
30523052
$runtime = $1 if ($line =~ m/.+ - (com.apple.CoreSimulator.SimRuntime.iOS-\S+)/);
30533053
}
30543054
close(TEST);
3055+
=cut
30553056
return $runtime;
30563057
}
30573058

@@ -3062,11 +3063,11 @@ sub findOrCreateSimulatorForIOSDevice($)
30623063
my $simulatorDeviceType;
30633064

30643065
if ($simulatorIdiom eq "iPad") {
3065-
$simulatorName = "iPad Pro " . $simulatorNameSuffix;
3066-
$simulatorDeviceType = "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-";
3066+
$simulatorName = "iPad Air 2 " . $simulatorNameSuffix;
3067+
$simulatorDeviceType = "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2";
30673068
} else {
3068-
$simulatorName = "iPhone 12 " . $simulatorNameSuffix;
3069-
$simulatorDeviceType = "com.apple.CoreSimulator.SimDeviceType.iPhone-12";
3069+
$simulatorName = "iPhone 7 " . $simulatorNameSuffix;
3070+
$simulatorDeviceType = "com.apple.CoreSimulator.SimDeviceType.iPhone-7";
30703071
}
30713072

30723073
my $simulatedDevice = iosSimulatorDeviceByName($simulatorName);

Tools/Scripts/webkitpy/port/ios_simulator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ class IOSSimulatorPort(IOSPort):
4444
DEVICE_MANAGER = SimulatedDeviceManager
4545

4646
DEFAULT_DEVICE_TYPES = [
47+
DeviceType(hardware_family='iPhone', hardware_type='12'),
48+
DeviceType(hardware_family='iPad', hardware_type='(9th generation)'),
4749
DeviceType(hardware_family='iPhone', hardware_type='7'),
48-
DeviceType(hardware_family='iPad', hardware_type='Air 2'),
4950
]
5051
SDK = apple_additions().get_sdk('iphonesimulator') if apple_additions() else 'iphonesimulator'
5152

@@ -112,6 +113,7 @@ class IPhoneSimulatorPort(IOSSimulatorPort):
112113

113114
DEVICE_TYPE = DeviceType(hardware_family='iPhone')
114115
DEFAULT_DEVICE_TYPES = [
116+
DeviceType(hardware_family='iPhone', hardware_type='12'),
115117
DeviceType(hardware_family='iPhone', hardware_type='7'),
116118
]
117119

@@ -124,7 +126,7 @@ class IPadSimulatorPort(IOSSimulatorPort):
124126
port_name = 'ipad-simulator'
125127

126128
DEVICE_TYPE = DeviceType(hardware_family='iPad')
127-
DEFAULT_DEVICE_TYPES = [DeviceType(hardware_family='iPad', hardware_type='Air 2')]
129+
DEFAULT_DEVICE_TYPES = [DeviceType(hardware_family='iPad', hardware_type='(9th generation)')]
128130

129131
def __init__(self, *args, **kwargs):
130132
super(IPadSimulatorPort, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)