I've begun testing my iOS app on my iPhone. Everything works great for a week or so and then my app starts to crash immediately when I try to open it. When I check the logs for my phone (Window-Devices-Select my iPhone), I see the following log messages.
<Notice>: Submitted job with label: UIKitApplication:com.app.App-Name[0x9fed][63]
<Notice>: /private/var/containers/Bundle/Application/64152E86-B292-47E5-A12D-27E5E23CACFF/App-Name.app/App-Name not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
<Error>: Unable to obtain a task name port right for pid 14847: (os/kern) failure (0x5)
May 29 08:46:13 iPhone assertiond[63] <Notice>: Failed to start job
with error Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
UserInfo={NSLocalizedRecoverySuggestion=Consult
/var/log/com.apple.xpc.launchd/launchd.log for more information,
NSLocalizedDescription=Unable to get valid task name port right for pid
14847, NSLocalizedFailureReason=The process failed to exec}
<Notice>: Deleted job with label: UIKitApplication:com.app.App-
Name[0x9fed][63]
<Notice>: [app.App-Name] Bootstrap failed with error: <NSError:
0x115657730; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed);
reason: "Failed to start job">
<Error>: Bootstrapping failed for <FBApplicationProcess: 0x11d2702a0;
com.app.App-Name; pid: -1> with error: Error
Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with
bundleID com.app.App-Name" UserInfo={BKSProcessExitReason=0,
NSLocalizedFailureReason=Failed to start job,
NSUnderlyingError=0x11fa53590 {Error Domain=NSPOSIXErrorDomain Code=3
"No such process" UserInfo={NSLocalizedFailureReason=The process failed
to exec, NSLocalizedRecoverySuggestion=Consult
/var/log/com.apple.xpc.launchd/launchd.log for more information,
NSLocalizedDescription=Unable to get valid task name port right for pid
14847}}, BSErrorCodeDescription=bootstrap-failed,
NSLocalizedDescription=Unable to bootstrap process with bundleID
com.app.App-Name}
<Notice>: <FBApplicationProcess: 0x11d2702a0; com.app.App-Name; pid: -1> exited.
<Notice>: SystemUI unknown identifier: 'com.app.App-Name'
<Notice>: Process exited: <FBApplicationProcess: 0x11d2702a0; com.app.App-Name; pid: -1> -> <FBApplicationProcessExitContext: 0x176235aa0; exitReason: (none); terminationReason: (none)>
I've googled for these error logs to try and find a solution, but no luck.
Any help would be much appreciated.
I had the same situation with an app which Bundle Identifier has been moved to another Apple Developer Team.
After Bundle Identifier was moved, a previous build was containing a provisioning profile which was no longer valid, and I got this error message in logs.
I guess the same happens if you delete the Provisioning Profile or if it is invalidated for whatever reason.
Related
After I executed 'xattr -cr path/to/your.app' command ,app got installed in simulator. but its crashing in the real device.
crash report:
error: Error Domain=BKSProcessErrorDomain Code=1
"Unable to bootstrap process with bundleID com.aq.FOGVERSION2"
UserInfo={
NSLocalizedDescription=Unable to bootstrap process with bundleID com.aq.FOGVERSION2,
BKSProcessExitReason=0,
NSLocalizedFailureReason=Failed to start job,
NSUnderlyingError=0x282299320
{Error Domain=NSPOSIXErrorDomain Code=3
"No such process"
UserInfo={NSLocalizedFailureReason=The process failed to exec, NSLocalizedRecoverySuggestion=Consult /var/log/com.apple.xpc.launchd/launchd.log
for more information, NSLocalizedDescription=Unable to get valid task name port right for pid 2019}},
`BSErrorCodeDescription`=bootstrap-failed}
can you help me to fix it?
Disclaimer: I am not using Expo.
react: 16.8.3
react-native: 0.59.9
react-native-cli: 2.0.1
iOS 12.2 (16E227)
I have this weird problem with my React Native iOS app that has been happening for a while. At a first glance everything works as excepted, both Development and Release. I am able to install it in my device and use it without the metro server running.
However after some time, like couple of days the app in my phone won't launch, it crashes at the launch screen, the one that says "Powered by React Native ..." with the following errors showing up in the console:
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}
Is this a bug? Or did I do something wrong with the Xcode configuration? The React Native documentation is of no use Xcode wise and so is iOS's because this is something in between of both.
Any ideas?
OK, turned out it as simple as the provisioning profile is only valid for 6 days without a paid Apple Developer account... The app will work during the first days then inevitably it won't start anymore and it has to be rebuild again.
I've got a Xamarin app, which runs as expected for a while and then, after a couple of days just crashes immediately after trying to start it. Here's the output from the XCode Console filtered by the app's package name.
default 12:54:58.536319 +0200 SpringBoard Bootstrapping foo.bar.MyApp with intent foreground-interactive
default 12:54:58.539833 +0200 assertiond Submitting new job for "foo.bar.MyApp" on behalf of <BKProcess: 0x102877f50; SpringBoard; com.apple.springboard; pid: 15264; agency: SystemShell; visibility: foreground; task: running>
default 12:54:58.540033 +0200 assertiond Submitted job with label: UIKitApplication:foo.bar.MyApp[0x44cf][62]
default 12:54:58.580322 +0200 assertiond Unable to get pid for 'UIKitApplication:foo.bar.MyApp[0x44cf][62]': No such process (3)
error 12:54:58.580490 +0200 assertiond Failed to start job with error <NSError: 0x10288ff30; domain: NSPOSIXErrorDomain; code: 3; reason: "No such process"> {
description = "Unable to get pid for label UIKitApplication:foo.bar.MyApp[0x44cf][62]";
failureReason = "No such process";
userInfo = {
BKLaunchdJobLabel = UIKitApplication:foo.bar.MyApp[0x44cf][62];
BKLaunchdOperation = launch_get_running_pid_4SB;
}
}
default 12:54:58.580757 +0200 assertiond Deleted job with label: UIKitApplication:foo.bar.MyApp[0x44cf][62]
error 12:54:58.582916 +0200 SpringBoard [foo.bar.MyApp] Bootstrap failed with error: <NSError: 0x283076850; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
error 12:54:58.583057 +0200 SpringBoard Bootstrapping failed for <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID foo.bar.MyApp" UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID foo.bar.MyApp, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x2832f7e10 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={BKLaunchdOperation=launch_get_running_pid_4SB, NSLocalizedDescription=Unable to get pid for label UIKitApplication:foo.bar.MyApp[0x44cf][62], BKLaunchdJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62], NSLocalizedFailureReason=No such process}}, BKSProcessJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62], BSErrorCodeDescription=bootstrap-failed}
default 12:54:58.583151 +0200 SpringBoard Adding: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1>
default 12:54:58.583303 +0200 SpringBoard <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> exited.
default 12:54:58.584241 +0200 SpringBoard Removing: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1>
default 12:54:58.591967 +0200 SpringBoard Application process state changed for foo.bar.MyApp: <SBApplicationProcessState: 0x283c6a420; pid: -1; taskState: Not Running; visibility: Unknown>
default 12:54:58.592169 +0200 SpringBoard Process exited: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> -> <FBApplicationProcessExitContext: 0x2832cbe10; exitReason: (none); terminationReason: (none)> {
stateAtExit = <FBProcessState: 0x283c38060; pid: -1; taskState: Unknown; visibility: Unknown>;
}
default 12:54:58.592395 +0200 SpringBoard Application process state changed for foo.bar.MyApp: (null)
default 12:54:58.838065 +0200 SpringBoard Front display did change: <SBApplication: 0x2803522b0; foo.bar.MyApp>
I observed that this phenomenon always happens after a certain amount of days, which keeps me thinking that there's some certificate or something similar, which expired in the meanwhile.
Q: Is there such a thing and how can I ensure that it's longer valid?
Are you testing your application on a real device and using free provisioning profile? If so, it could be a certificate issue.
There're some limitations when you are using free provisioning profile. One of them is:
Provisioning profiles created with free provisioning will expire after
one week, and signing identities will expire after one year.
Refer to this documentation for more details: https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning?tabs=windows#limitations.
When it has been expired, you have to use Visual Studio to generate a new ipa for deploying your app on a real device.
command used to build .ipa exp build:ios
expo handled the certificates (distribution and push notification)
device tested on AWS Device farm: iPhone 5, iOS: 10.3.2
Syslog from the device farm
Jan 16 12:34:15 9902472814 SpringBoard(FrontBoard)[57] : Unable
to register for exec notifications: No such process Jan 16 12:34:15
9902472814 SpringBoard(BaseBoard)[57] : Unable to get short BSD
proc info for 344: No such process Jan 16 12:34:15 9902472814
SpringBoard(BaseBoard)[57] : Unable to get proc info for 344:
No such process Jan 16 12:34:15 9902472814 SpringBoard(BaseBoard)[57]
: Unable to obtain a task name port right for pid 344:
(os/kern) failure (0x5) Jan 16 12:34:15 9902472814
SpringBoard(BaseBoard)[57] : Unable to get short BSD proc info
for 344: No such process Jan 16 12:34:15 9902472814
SpringBoard(FrontBoard)[57] : Unable to obtain a process handle
for
Aborting with
error: Error Domain=BSTransactionError Code=3 "Transaction aborted.
(parent transaction)"
UserInfo={transaction=, precipitating-error=Error Domain=BSTransactionError
Code=1 "Transaction failed. Child transaction failed:
(child transaction)"
UserInfo={transaction=, precipitating-error=Error Domain=BSTransactionError
Code=1 "Transaction failed. no client provider for client with
bundleID com.xxxxxxx.mobileapp (scene update failed)"
UserInfo={transaction=,
error-reason=scene update failed, error-description=no client provider
for client with bundleID com.xxxxxxx.mobileapp,
NSLocalizedDescription=Transaction failed. no client provider for
client with bundleID com.xxxxxxx.mobileapp (scene update failed)},
error-reason=child transaction, error-description=Child transaction
failed: : numberOfClients
GyroOnly:, 3AxisDynamicGyro:, 6Axis:,
6AxisThrottledGyro:, 9Axis:,
9AxisWithNorthReference:
App gets installed but doesn’t open. Any leads would be helpful. Thank you.
I'm gonna try to explain the problem as clearly as possible, here are the steps:
I compile the app on the device (width bundled file on disk - Options 2)
The app starts, and work
After a few days, when i click on the app's icon, it open the 'powered by react-native' screen, then it crash
I had the same problem over multiple devices, and multiple times
I'm pretty sure it is not a JS error, since nothings change between the day it work, and the day it doesnt
here's the app logs on app start:
$ cat crachReport|grep MyApp
Aug 29 14:26:47 Abels-iPhone amfid[1524] <Notice>: /private/var/containers/Bundle/Application/BDC567B0-B341-4B9A-8329-90B5CEC26440/MyApp.app/MyApp not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
Aug 29 14:26:47 Abels-iPhone SpringBoard(BaseBoard)[1682] <Error>: Unable to get pid for 'UIKitApplication:org.reactjs.native.example.MyApp[0x9347]': No such process (err 3)
Aug 29 14:26:47 Abels-iPhone SpringBoard(FrontBoard)[1682] <Error>: Bootstrapping failed for <FBApplicationProcess: 0x1705f9500; org.reactjs.native.example.MyApp; pid: -1>
Aug 29 14:26:47 Abels-iPhone sharingd[62] <Notice>: SystemUI unknown identifier: 'org.reactjs.native.example.MyApp'
the unfound provisionning profile error does not appear on the logs when the app work, so i think it may come from here.
However i'm not sure since i'm new to ios developpement,
Thanks in advance
After compilation with a valid provisionning profile, this problem does not appear.
The default provisionning profile was valid for 7 days, so the error was coming from there.