I'm trying to launch the application on a real device from Xcode, but after building correctly the app doesn't launch.
The error is the following:
Unable to launch bundle.identifier Domain: com.apple.platform.iphoneos
Code: -12
-- Request to launch "bundle.identifier" failed. Domain: com.apple.dt.deviceprocesscontrolservice Code: 2 Failure Reason: The
operation couldn’t be completed. Application info provider
(FBSApplicationLibrary) returned nil for "bundle.identifier" : Failed
to launch process with bundle identifier 'bundle.identifier'.
-- The operation couldn’t be completed. Application info provider (FBSApplicationLibrary) returned nil for "bundle.identifier" Domain:
FBSOpenApplicationErrorDomain Code: 4 Failure Reason: Application info
provider (FBSApplicationLibrary) returned nil for "bundle.identifier"
User Info: {
BSErrorCodeDescription = NotFound; }
It started giving me this error when i changed bundle identifier to the application. I also tried to change the bundle identifier directly from info.plist and not only from project > Targets but the error persists.
Related
I created an ipa file of my application from product-> Archive-> Distribute-> Appstore-> Export. I used this ipa for UITest on the device farm. First I tried with Standard environment which gave me the below error -
Setup Test skipped: Not enough suites found to execute
Then I tried with custom environment with Default TestSpec for iOS XCTest UI and I got issue on launching the application. I got the below error from device farm -
UITests.swift:20: error: -[SomeAppUITests.SomeAppUITests testExample]
: Failed to get launch progress for <XCUIApplicationImpl: 0x280b47bd0
com.developer.SomeApp.Staging at
/private/tmp/scratchPTi3vk.scratch/Productsedbz37/Debug-iphoneos/SomeApp.app>:
Unable to launch com.developer.SomeApp.Staging. (Underlying Error:
Request to launch com.developer.SomeApp.Staging failed. The operation
couldn’t be completed. The process failed to launch. : Failed to
launch process with bundle identifier 'com.developer.SomeApp.Staging'.
(Underlying Error: The operation couldn’t be completed. The process
failed to launch. (Underlying Error: The operation couldn’t be
completed. Launch failed. (Underlying Error: Launchd job spawn failed
with error: 88. Malformed Mach-o file))))
Then I tried the fuzz test, but it gave me a different error. Here's the screenshot -
https://imgur.com/a/AKATt22
iOS App is build successfully but App is not getting open in the Simulator or device.
Getting chmod error for the app path.
Error:
info ** BUILD SUCCEEDED **
info Installing <PATH TO APP>.app
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName> : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName>.app/<AppName> : No such file or directory
info Launching <Package Name>
com.goshopmatic.ShopmaticGoApp: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "App Package name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application <App_Path_Name> is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "App package name" is unknown to FrontBoard.
Application "App package name" is unknown to FrontBoard.
I fixed this by upgrading XCode.
I'm having this exact same issue:
https://github.com/facebook/react-native/issues/26152
This is on react-native 0.60.4
I'm able to have a successful build in Xcode, but I'm not able launch the app on a physical device.
This is the error that I'm given:
This is the readout from the console:
Details
Unable to launch com.news.arg
Domain: com.apple.platform.iphoneos
Code: -12
--
Request to launch com.news.arg failed.
Domain: com.apple.dt.deviceprocesscontrolservice
Code: 2
Failure Reason: The operation couldn’t be completed. Application "com.news.arg" is unknown to FrontBoard. : Failed to launch process with bundle identifier 'com.news.arg'.
--
The operation couldn’t be completed. Application "com.news.arg" is unknown to FrontBoard.
Domain: FBSOpenApplicationErrorDomain
Code: 4
Failure Reason: Application "com.news.arg" is unknown to FrontBoard.
User Info: {
BSErrorCodeDescription = NotFound;
}
--
Someone said on the react native reddit that expo posted a workaround on their twitter, but we were unable to find it when we went back and looked.
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.
When I do UI test with Jenkins,it failed with Error Domain=com.apple.platform.iphoneos Code=-1 "Could not locate installed application".
The detail log is :
Details: Install claimed to have succeeded, but application could not be found on device. bundleId = com.apple.test.iOS-3DTouchUITests-Runner
Object: <DVTiOSDevice: 0x7faafda80610>
Method: -installForMobileInstallWithSession:error:
Thread: <NSThread: 0x7faafd086dd0>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-01-19 19:35:38.382 xcodebuild[59624:934106] Error Domain=com.apple.platform.iphoneos Code=-1 "Could not locate installed application" UserInfo={NSLocalizedDescription=Could not locate installed application, NSLocalizedRecoverySuggestion=Install claimed to have succeeded, but application could not be found on device. bundleId = com.apple.test.iOS-3DTouchUITests-Runner}
2017-01-19 19:35:38.382 xcodebuild[59624:934106] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Testing failed:
Test target iOS-3DTouchUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **
But when I do the ui test directly with Xcode, everything is OK.
Anyone can help me with this ?