mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d3c94b42f4
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36759 On Thursday the 30th, Apple Released Xcode 14.3.0. This Version of Xcode enforce some version checks for which React-Codegen, which supported iOS 11 as minimum supported version, could not be build anymore. This change ensue that React-Codegen is always aligned to the min version supported by React Native. Plus, it moves CircleCI's Xcode to 14.3.0, to keep this problem in Check. While working on this, I figured that, with the monorepo, Ruby tests stopped working because they were in the wrong folder: I moved them in the right one. ## Changelog: [iOS][Fixed] - Make React Native build with Xcode 14.3.0 and fix tests Reviewed By: blakef Differential Revision: D44605617 fbshipit-source-id: 3ec1f5b36858ef07d9f713d74eb411a1edcccd45
30 lines
659 B
Bash
Executable File
30 lines
659 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
set -f
|
|
|
|
basepath=$(dirname "${0}")
|
|
|
|
# shellcheck disable=SC2207
|
|
files=( $(find . -name '*-test.rb') )
|
|
|
|
test_suite="${basepath}/all_tests.rb"
|
|
touch "${test_suite}"
|
|
|
|
echo "require \"test/unit\"" > "${test_suite}"
|
|
echo "discovered the following files:"
|
|
for i in "${files[@]}"
|
|
do
|
|
filename="${i#"${basepath}/"}"
|
|
echo "${filename}"
|
|
echo "require_relative \"${filename}\"" >> "${test_suite}"
|
|
done
|
|
|
|
ruby -Itest "${test_suite}"
|
|
RES=$?
|
|
rm "${test_suite}"
|
|
exit $RES
|