When installing iOS dependencies, you may encounter the following error:
This error occurs because CocoaPods performs SHA-256 verification on "downloaded local source code archives", and the result doesn't match the value declared in the podspec file, causing the installation to terminate directly.
-
Locate the podspec file
From the log information, you can find the location of the boost podspec file:
example/node_modules/react-native/third-party-podspecs/boost.podspec -
View current configuration
The content of this podspec file is as follows:
-
Modify the download link
Refer to Error installing boost: Verification checksum was incorrect, expected to modify the link in the podspec file.
Original link:
https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2
Change to:
https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2
-
Reinstall dependencies
After modification, save the file and then go to the
example/iosdirectory to execute:pod install
When executing yarn example ios from the root directory to run the example project on iOS simulator (or physical device), you may encounter the following error:
From the logs, the following error is found:
-
Locate the problematic file
Find the file in
example/ios:example/ios/Pods/Headers/Public/Flipper/FlipperTransportTypes.h -
Add header file reference
Add
#include <functional>below#include <string>, as shown in the following image: -
Rerun the project
Then execute from the root directory again:
yarn example ios
This will successfully run the example project on iOS simulator (or physical device).





