[英]Build failed for IOS when rebuilding React Native project
I am rebuilding my React Native 0.67.4 project by yarn add
module one by one with Xcode 13/cocoapods 1.15.我正在通过 Xcode 13/cocoapods 1.15 逐个
yarn add
模块来重建我的 React Native 0.67.4 项目。 After a few modules added, run pod install
and npx react-native run-ins
to test with IOS 15 emulator.添加几个模块后,运行
pod install
和npx react-native run-ins
以使用 IOS 15 模拟器进行测试。 The following error occurs after a few module added and pod install
successfully.添加几个模块并成功
pod install
后出现以下错误。 I sense that the error is pod related but don't know how to fix it.我感觉到该错误与 pod 相关,但不知道如何解决。 Here is the error
这是错误
/Users/macair/Documents/code/js/xyz_app6/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm:98:35: error: no member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
[RCTConvert UIColor:options.cancelButtonTintColor() ? @(*options.cancelButtonTintColor()) : nil];
~~~~~~~ ^
/Users/macair/Documents/code/js/xyz_app6/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm:98:72: error: no member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
[RCTConvert UIColor:options.cancelButtonTintColor() ? @(*options.cancelButtonTintColor()) : nil];
~~~~~~~ ^
2 errors generated.
......
** BUILD FAILED **
The following build commands failed:
CompileC /Users/macair/Library/Developer/Xcode/DerivedData/xyz_app6-drkombcrczieyyfirepznaljzqwr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-CoreModules.build/Objects-normal/x86_64/RCTActionSheetManager.o /Users/macair/Documents/code/js/xyz_app6/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-CoreModules' from project 'Pods')
(1 failure)
Perform the below steps:执行以下步骤:
node_modules
foldernode_modules
文件夹npm install
or yarn install
npm install
或yarn install
pods
folder and Podfile.lock
filepods
文件夹和Podfile.lock
文件cd ios && pod install
npx react-native run-ios
npx react-native run-ios
Hope it works!希望它有效!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.