Rea*_*der 12 ios firebase react-native react-native-firebase
react-native-firebase/app@15.3.0使用react-native-0.68.1using进行安装后,在项目的 podfile 中use_frameworks!删除,但当我运行时,构建失败flippernpx react-native run-ios
以下构建命令失败: Ld /Users/userName/Library/Developer/Xcode/DerivedData/-gvnovwrlbjvxedcquaumtvgvdgmn/Build/Products/Debug-iphonesimulator/react-native-razorpay/react_native_razorpay.framework/react_native_razorpay 正常(在目标“react-native”中) -razorpay'来自项目'Pods')(1次失败),该项目还包含react-native-razorpay之前添加的..现在如何删除错误并且构建将成功而不会发生任何崩溃,请帮助我是反应本机我的podfile的新手看起来像``#use_modular_headers!
require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
平台:ios,“12.0”安装!'cocoapods', :确定性_uuids => false
目标“DussriShadi”做
配置= use_native_modules!
标志 = get_default_flags()
use_react_native!( :path => config[:reactNativePath], # 要在 iOS 上启用 Hermes,请更改false为true然后安装 pods :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], # 绝对路径到您的应用程序根目录。:app_path => "#{Pod::Config.instance.installation_root}/.." )
目标“DussriShadiTests”继承!:complete # Pods 为
结尾
#use_flipper!()
post_install 执行|安装程序| react_native_post_install(安装程序) __apply_Xcode_12_5_M1_post_install_workaround(安装程序) end end
小智 14
这对我有用
"@react-native-firebase/app": "^15.6.0",
"@react-native-firebase/messaging": "^15.6.0",
"react": "18.1.0",
"react-native": "0.70.1"
Run Code Online (Sandbox Code Playgroud)
首先将其添加到 podfile 中:
pod 'Firebase', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
Run Code Online (Sandbox Code Playgroud)
之间
flags = get_default_flags()
Run Code Online (Sandbox Code Playgroud)
和
use_react_native!(
Run Code Online (Sandbox Code Playgroud)
然后删除podfile.lock。
然后做:
cd ios
pod deintegrate
pod cache clean --all
npm cache verify
yarn cache clean
pod install --repo-update
Run Code Online (Sandbox Code Playgroud)
然后清理 XCode -> 产品 -> 清理构建文件夹下的构建文件夹。
然后从 XCode 中运行。
| 归档时间: |
|
| 查看次数: |
7122 次 |
| 最近记录: |