react-native/scripts/update_podfile_lock.sh
Riccardo Cipolleschi 0f56cee8e1 Update Gemfile to require Cocoapods 1.12.0 (#36321)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36321

This change bumps Cocoapods to 1.12.0. This last release fixes a bug for which cocoapods was not working with Ruby 3.2.0

## Changelog
[iOS][Changed] - Bumbed version of Cocoapods to support Ruby 3.2.0

Reviewed By: blakef

Differential Revision: D43655787

fbshipit-source-id: 6954ac8271daa7894e57f6d6104ed4d549490695
2023-02-28 07:14:02 -08:00

28 lines
738 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.
# This script updates RNTester Podfile.lock after verifying the CocoaPods environment.
# Usage:
# source scripts/update_podfile_lock && update_pods
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RNTESTER_DIR="$THIS_DIR/../packages/rn-tester"
# Keep this separate for FB internal access.
validate_env () {
cd "$RNTESTER_DIR" || exit
bundle check || exit
cd "$THIS_DIR" || exit
}
update_pods () {
cd "$RNTESTER_DIR" || exit
bundle install || exit
bundle check || exit
bundle exec pod install
cd "$THIS_DIR" || exit
}