免责声明:我没有使用Expo。
react: 16.8.3
react-native: 0.59.9
react-native-cli: 2.0.1
iOS 12.2 (16E227)
我的React Native iOS应用出现了一个奇怪的问题,已经发生了一段时间。 乍一看,所有内容都可以正常使用,包括开发和发布。我可以将其安装在我的设备中,并在不运行Metro服务器的情况下使用它。
但是过了一段时间,就像几天后手机中的应用无法启动一样,它在启动屏幕上崩溃了,该屏幕上显示“ Powered by React Native ...”控制台中显示以下错误:
Process: assertiond
Failed to start job with error <NSError: 0x103e56f70; domain: NSPOSIXErrorDomain; code: 3; reason: "No such process"> {
description = "Unable to get pid for label UIKitApplication:org.josemigallas.RealmsCounter[0x953c][62]";
failureReason = "No such process";
userInfo = {
BKLaunchdJobLabel = UIKitApplication:org.josemigallas.RealmsCounter[0x953c][62];
BKLaunchdOperation = launch_get_running_pid_4SB;
}
}
Process: SpringBoard
[org.josemigallas.RealmsCounter] Bootstrap failed with error: <NSError: 0x2830c26a0; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
Process: SpringBoard
Bootstrapping failed for <FBApplicationProcess: 0x1371b5470; org.josemigallas.RealmsCounter; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID org.josemigallas.RealmsCounter" UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID org.josemigallas.RealmsCounter, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x2830c0210 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={BKLaunchdOperation=launch_get_running_pid_4SB, NSLocalizedDescription=Unable to get pid for label UIKitApplication:org.josemigallas.RealmsCounter[0x953c][62], BKLaunchdJobLabel=UIKitApplication:org.josemigallas.RealmsCounter[0x953c][62], NSLocalizedFailureReason=No such process}}, BKSProcessJobLabel=UIKitApplication:org.josemigallas.RealmsCounter[0x953c][62], BSErrorCodeDescription=bootstrap-failed}
这是一个错误吗?还是我对Xcode配置做错了什么? React Native文档在Xcode方面毫无用处,在iOS方面也无济于事,因为这是介于两者之间的。
有什么想法吗?
答案 0 :(得分:0)
好,原来如此简单,因为配置文件仅在没有付费的Apple Developer帐户的情况下有效期为6天...该应用将在开始的几天内运行,然后不可避免地将不再启动,并且必须再次重建。