我已将我的应用程序提交给Appstore connect进行审核.虽然该应用程序仍在审核中,但我收到一封电子邮件通知我,我必须修复错误.这是消息的内容:
__PRE__
我的应用程序完全使用expo构建,我不知道如何访问和修改Info.plist.
任何的想法 ?
当安装'react-native init AwesomeProject'时,我在运行'react-native run-android'时遇到上述错误
Could not determine java version from '11.0.1'.
Run Code Online (Sandbox Code Playgroud)
一个快速的谷歌建议我需要更新Gradle-wrapper中的distributionUrl.这样做后,我面临一个新的错误
Cannot add task 'wrapper' as a task with that name already exists.
Run Code Online (Sandbox Code Playgroud)
它表明问题出在文件中:
/AwesomeProject/android/build.gradle' line: 36
Run Code Online (Sandbox Code Playgroud)
看起来像这样
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
Run Code Online (Sandbox Code Playgroud)
我一直在试图弄清楚这是做什么的.奇怪的是,某些东西不能直接开箱即用.是否有人面临类似的问题?
npm ci
这是我在 GitHub Action 文件中运行命令安装依赖项时遇到的问题。
我正在开发一个博览会管理的应用程序,并用作GitHub Actions
CI 来触发构建,每当我将代码推送到developmemt
分支时。
这是我的构建脚本:
name: EAS PIPELINE
on:
push:
branches:
- development
workflow_dispatch:
jobs:
build:
name: Install and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Setup Expo
uses: expo/expo-github-action@v6
with:
expo-version: 4.x
token: ${{ secrets.EXPO_TOKEN }}
expo-cache: true
- name: Install dependencies
run: npm ci
- name: Build on EAS
run: EAS_BUILD_AUTOCOMMIT=${{1}} npx eas-cli …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用堆栈和标签导航器切换屏幕.
const MainNavigation = StackNavigator({
otp: { screen: OTPlogin },
otpverify: { screen: OTPverification},
userVerified: {
screen: TabNavigator({
List: { screen: List },
Settings: { screen: Settings }
}),
},
});
Run Code Online (Sandbox Code Playgroud)
在这种情况下,首先使用stacknavigator,然后使用tabnavigator.我想隐藏堆栈导航器的标题.当我使用像:::的导航选项时,它无法正常工作
navigationOptions: { header: { visible: false } }
Run Code Online (Sandbox Code Playgroud)
我正在使用stacknavigator中使用的前两个组件上尝试此代码.如果我使用这一行然后得到一些错误,如::
screen/HomeScreen.js:使用 process(css).then(cb) 来使用异步插件
这是我的 HomeScreen.js
import { View, Text } from 'react-native'
import React from 'react'
export default function HomeScreen() {
return (
<View>
<Text className="text-red">HomeScreen</Text>
</View>
)
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试在 React Native 中使用 tailwindcss 和Nativewind。这是我正在关注的链接。
有问题的错误消息:
在尝试idb
从文件解析模块时,成功找到了C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\@firebase\app\dist\esm\index.esm2017.js
包。C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\idb\package.json
然而,这个包本身指定了一个main
无法解析的模块字段(C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\idb\build\index.cjs
。事实上,这些文件都不存在:
该错误的令人困惑的部分是文件index.esm2017实际上确实存在于该目录中。'`C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\idb\build\index.cjs'
我已经卸载并重新安装了 firebase。我已经安装并卸载了“idb”。我已经清除了yarn缓存、expo缓存、删除了node_modules并重新安装以及清除了watchman缓存,但都无济于事。我还进行了三次检查,确保文件目录实际上不在错误消息所示的位置。
当博览会安装lottie-react-native时出现错误,但似乎无关,并且在删除lottie-react-native后问题仍然存在。我已经使用 git 将代码恢复到行为开始之前,现在问题仍然存在。
看起来整个项目现在都被毁了,我该如何继续前进。
我能够使用 Xcode 14 正常运行 iOS 模拟器,而我的 Mac 最近更新了最新版本的 Xcode(15),然后我无法再从新模拟器启动设备。
我确实尝试了从许多来源收集的许多不同方法,但都无济于事。以下是我已经尝试过的几件事,但没有一个对我有用:
顺便说一句,这是我通过 cli 运行时收集的完整日志:
xcrun simctl boot 39C3D624-968A-49F7-A155-AC9AC1A81B52
Run Code Online (Sandbox Code Playgroud)
Unable to boot the Simulator.
Domain: NSPOSIXErrorDomain
Code: 60
Failure Reason: launchd failed to respond.
User Info: {
DVTErrorCreationDateKey = "2023-09-26 04:06:49 +0000";
IDERunOperationFailingWorker = "_IDEInstalliPhoneSimulatorWorker";
Session = "com.apple.CoreSimulator.SimDevice.AC5CB945-2257-4E8C-AA61-ABC5AC147D84";
}
--
Failed to start …
Run Code Online (Sandbox Code Playgroud) 使用反应导航时存在类型问题,当使用Stack.Navigation
或Stack.Group
来自createNativeStackNavigator
该问题表示JSX.element
消息末尾的类型不匹配更具体: Type '{}' is not assignable to type 'ReactNode'
整个消息:
'Stack.Navigator' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<Omit<DefaultRouterOptions<string> & { id?: string | undefined; children: ReactNode; screenListeners?: Partial<...> | ... 1 more ... | undefined; screenOptions?: NativeStackNavigationOptions | ... 1 more ... | undefined; defaultScreenOptions?: NativeStackNavigationOptions | ... 1 mo...' is not a valid JSX element.
Type 'Component<Omit<DefaultRouterOptions<string> & { id?: string | undefined; children: …
Run Code Online (Sandbox Code Playgroud) typescript react-native react-navigation expo react-navigation-v6
我正在使用 EAS 构建我的 Expo 应用程序,今天在尝试在本地或 EAS 服务器上运行 iOS 构建时开始收到此错误。我认为这是苹果服务器的问题,所以我希望它能尽快得到解决。
\n构建命令的输出:
\n\xe2\x9c\x94 Select platform \xe2\x80\xba iOS\n\xe2\x9c\x94 Using remote iOS credentials (Expo server)\n\nIf you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.\nThis is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.\n\xe2\x9c\x94 Do you want to log in to your Apple account? \xe2\x80\xa6 …
Run Code Online (Sandbox Code Playgroud) expo ×10
react-native ×7
ios ×3
reactjs ×2
android ×1
app-store ×1
eas ×1
exponentjs ×1
firebase ×1
indexeddb ×1
info.plist ×1
javascript ×1
nativewind ×1
npm ×1
tailwind-css ×1
typescript ×1
wrapper ×1
xcode ×1