Bump Xcode to 11.2.1 (#27434)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/27434
Pull Request resolved: https://github.com/facebook/react-native/pull/27295

- Use Xcode version 11.2.1 in both internal and external tests.
- Update snapshot reference images to use iPhone 8 test device.

Xcode 11.3.0 will be available in Sandcastle in the next week or so.

Changelog:

[Internal] - Bump Xcode version used in tests to 11.2.1.
[Internal] - Update iOS Snapshots.

Reviewed By: cs01

Differential Revision: D18849584

fbshipit-source-id: 9e3b92f080a4dc6a15dac0535b7562ff6a5c08a9
This commit is contained in:
Héctor Ramos
2020-01-14 13:30:05 -08:00
committed by Facebook Github Bot
parent 7c066ae952
commit 9fb2ca0b53
10 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ executors:
reactnativeios:
<<: *defaults
macos:
xcode: "10.3.0"
xcode: "11.2.1"
# -------------------------
# COMMANDS
Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

+8 -9
View File
@@ -105,15 +105,14 @@
XCTAssertEqualObjects(json, RCTJSONStringify(obj, NULL));
}
// TODO: This test crashes iOS 13 for bad access, please investigate and re-enable.
// - (void)testNotUTF8Convertible
// {
// //see https://gist.github.com/0xced/56035d2f57254cf518b5
// NSString *string = [[NSString alloc] initWithBytes:"\xd8\x00" length:2 encoding:NSUTF16StringEncoding];
// NSDictionary<NSString *, id> *obj = @{@"foo": string};
// NSString *json = @"{\"foo\":null}";
// XCTAssertEqualObjects(json, RCTJSONStringify(obj, NULL));
// }
- (void)testNotUTF8Convertible
{
//see https://gist.github.com/0xced/56035d2f57254cf518b5
NSString *string = [[NSString alloc] initWithBytes:"\xd8\x00" length:2 encoding:NSUTF16StringEncoding];
NSDictionary<NSString *, id> *obj = @{@"foo": string};
NSString *json = @"{\"foo\":null}";
XCTAssertEqualObjects(json, RCTJSONStringify(obj, NULL));
}
- (void)testErrorPointer
{
+1 -1
View File
@@ -17,7 +17,7 @@ export AVD_NAME="testAVD"
export AVD_ABI=x86
## IOS ##
export IOS_TARGET_OS="13.3"
export IOS_TARGET_OS="13.2.2"
export IOS_DEVICE="iPhone 8"
export TVOS_DEVICE="Apple TV"
+7 -1
View File
@@ -14,6 +14,11 @@
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
ROOT=$(dirname "$SCRIPTS")
SKIPPED_TESTS=()
# TODO: T60408036 This test crashes iOS 13 for bad access, please investigate
# and re-enable. See https://gist.github.com/0xced/56035d2f57254cf518b5.
SKIPPED_TESTS+=("-skip-testing:RNTesterUnitTests/testNotUTF8Convertible")
# Create cleanup handler
cleanup() {
EXIT=$?
@@ -56,7 +61,8 @@ runTests() {
-workspace RNTester/RNTesterPods.xcworkspace \
-scheme RNTester \
-sdk iphonesimulator \
-destination "platform=iOS Simulator,name=$IOS_DEVICE,OS=$IOS_TARGET_OS"
-destination "platform=iOS Simulator,name=$IOS_DEVICE,OS=$IOS_TARGET_OS" \
"${SKIPPED_TESTS[@]}"
}
buildProject() {
+3 -2
View File
@@ -210,14 +210,15 @@ try {
describe('Test: ' + iosTestType + ' end-to-end test');
if (
// TODO: Get target OS and simulator from .tests.env
tryExecNTimes(
() => {
let destination = 'platform=iOS Simulator,name=iPhone 8,OS=13.3';
let destination = 'platform=iOS Simulator,name=iPhone 8,OS=13.2.2';
let sdk = 'iphonesimulator';
let scheme = 'HelloWorld';
if (argv.tvos) {
destination = 'platform=tvOS Simulator,name=Apple TV,OS=13.3';
destination = 'platform=tvOS Simulator,name=Apple TV,OS=13.2.2';
sdk = 'appletvsimulator';
scheme = 'HelloWorld-tvOS';
}