mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Fixes some shellcheck warnings that arose in D36295406 (https://github.com/facebook/react-native/commit/ae28880fbc6b5c03c324be7dc0eeb80827ad2299) when the Hermes build scripts were copied over. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D36321074 fbshipit-source-id: 0eae36a4f793daa0e12786ba7989d4eac6b2e256
21 lines
821 B
Bash
Executable File
21 lines
821 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.
|
|
|
|
# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
|
|
. ./utils/build-apple-framework.sh
|
|
|
|
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
|
|
ios_deployment_target=$(get_ios_deployment_target)
|
|
|
|
build_apple_framework "iphoneos" "arm64" "$ios_deployment_target"
|
|
build_apple_framework "iphonesimulator" "x86_64;arm64" "$ios_deployment_target"
|
|
build_apple_framework "catalyst" "x86_64;arm64" "$ios_deployment_target"
|
|
|
|
create_universal_framework "iphoneos" "iphonesimulator" "catalyst"
|
|
else
|
|
echo "Skipping; Clean \"destroot\" to rebuild".
|
|
fi
|