正如我的问题标题中提到的,我尝试pod install在 React Native 0.66 更新后运行,但不断收到以下错误:
[!] CocoaPods could not find compatible versions for pod "boost":
In Podfile:
RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) was resolved to 2021.06.28.00-v2, which depends on
boost
React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) was resolved to 0.66.0, which depends on
boost (= 1.76.0)
Specs satisfying the `boost (= 1.76.0), boost` dependency were found, but they required a higher minimum deployment target.
Run Code Online (Sandbox Code Playgroud)
我到处搜索了另一个引用“boost”的问题,但我在任何地方都找不到它。我已经安装boost-for-react-native并添加到我的 Podfile 中,但它似乎没有修复任何问题。
如果我将 Podfile 中的部署目标更改为11.0或14.0,我仍然会收到错误。
这完全阻止了我的项目建设,所以如果我能得到任何类型的帮助那就太好了。
完整的 Podfile 如下:
platform :ios, …Run Code Online (Sandbox Code Playgroud) 我正在学习 Udemy 上的这个React 课程,但遇到了一个非常奇怪的错误。
我正在使用 Firebase 通过电子邮件和密码进行身份验证。当用户点击登录时,我会发送一个名为 LOGIN_USER 的操作,它设置加载状态。
当登录成功时,我会调度一个调用LOGIN_USER_SUCCESS来停止加载状态的动作。
出于某种原因,LOGIN_USER_SUCCESS直到我随机点击屏幕上的某个地方才会发生。
如果我删除该行dispatch({ type: LOGIN_USER });以禁用加载状态,则登录在几秒钟后返回成功。
My actions
-----------
export const loginUser = ({ email, password }) => {
return (dispatch) => {
dispatch({ type: LOGIN_USER });
firebase.auth().signInWithEmailAndPassword(email, password)
.then(user => loginUserSuccess(dispatch, user))
.catch((error) => {
console.log(error);
firebase.auth().createUserWithEmailAndPassword(email, password)
.then(user => loginUserSuccess(dispatch, user))
.catch(() => loginUserFail(dispatch));
});
};
};
const loginUserSuccess = (dispatch, user) => {
dispatch({
type: LOGIN_USER_SUCCESS,
payload: user …Run Code Online (Sandbox Code Playgroud)