getting error on ionic emulate? - ios

I am new to Mac and Ionic. Creating my first ionic application is not working for me. Getting this error on ionic emulate ios
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Invalid device state
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Invalid device state
Error: ENOENT: no such file or directory, stat '/Users/{USER}/Library/Logs/CoreSimulator/AD8136DB-9E63-4298-918D-561520165B83/system.log'

Related

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):

Trying to run this project on a MacBook but this error keeps showing. Looked for some solutions but they all failed.
I am working on Flutter project.
The code was built on a different MacBook.
That's the whole error:
Exception: Unable to launch com.projectname.client on 9CE7CA53-67B5-442B-AA2C-35A19A42CEEF:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "com.bringitback.client" failed.
The process did launch, but has since exited or crashed.
Command: xcrun simctl launch 9CE7CA53-67B5-442B-AA2C-35A19A42CEEF com.bringitback.client --enable-dart-profiling --enable-checked-mode --verify-entry-points --start-paused --observatory-port=0
Error launching application on iPhone 14 Pro Max.

Unable to launch on iPhone 12 Pro

I was debugging the app normally but today I wanted to test it then this happened.
Terminal Error:
Exception: Unable to launch com.example.tubitakbiyo on 7700*******-9633-1DBF73524FA6:
ProcessException: Process exited abnormally:
com.example.tubitakbiyo: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "com.example.tubitakbiyo" failed.
The process did launch, but has since exited or crashed.
Command: /usr/bin/arch -arm64e xcrun simctl launch 77F612A*********-633-1DBF73524FA6 com.example.tubitakbiyo --enable-dart-profiling --enable-checked-mode --verify-entry-points --start-paused --observatory-port=0
Error launching application on iPhone 12 Pro.
Exited (sigterm)
Problem Report from MAC:
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/MTBBarcodeScanner.framework/MTBBarcodeScanner' (no such file), '/usr/lib/swift/MTBBarcodeScanner.framework/MTBBarcodeScanner' (no such file), '/Users/cidqu/Library/Developer/CoreSimulator/Devices/77F612AC-5F9C-4E78-9633-1DBF73524FA6/data/Containers/Bundle/Application/F3A022D9-62FF-40B5-994C-B07D54C684E7/Runner.app/Frameworks/MTBBarcodeScanner.framework/MTBBarcodeScanner' (no such file), '/Users/cidqu/Library/Developer/CoreSimulator/Devices/77F612AC-5F9C-4E78-9633-1DBF73524FA6/data/Containers/Bundle/Application/F3A022D9-62FF-40B5-994C-B07D54C684E7
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
I don't have any other errors. How can i solve this?
I fixed the problem by unchecking this option, Run Script: [ ] For install builds only

iOS React Native App/ Build Succeeded but App not getting open in iOS device/ Simulator

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.

The request to open "com.XX.XX" failed The request was denied by service delegate only while using detox

Detox versions tried : 11.0.0, 12.0.0 & 14.5.1
The app runs fine when we run it via Xcode. The Detox build command succeeds as well.
But when I start running detox tests I will get the following error
"/bin/cat /dev/null >/Users/mmoha070/Library/Developer/CoreSimulator/Devices/AC24D39E-8290-4314-90F6-685007DBACA8/data/tmp/detox.last_launch_app_log.out 2>/Users/mmoha070/Library/Developer/CoreSimulator/Devices/AC24D39E-8290-4314-90F6-685007DBACA8/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/mmoha070/Library/Detox/ios/34981937206ec401dcf4fd6235cf1a8a3f71e719/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err AC24D39E-8290-4314-90F6-685007DBACA8 com.7ElevenNow.qa.PhoenixiOS --args -detoxServer ws://localhost:53701 -detoxSessionId 34083615-b6f2-86ea-3b33-84b27024f951" failed with code = 1, stdout and stderr:
detox[75658] ERROR: [exec.js/EXEC_FAIL, #6] com.7ElevenNow.qa.PhoenixiOS: -1
detox[75658] ERROR: [exec.js/EXEC_FAIL, #6] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.7ElevenNow.qa.PhoenixiOS" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.
Underlying error (domain=FBSOpenApplicationErrorDomain, code=1):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)

ERROR: Unable to retrieve device list

I get the following error when I try to user Target IO to run my application. I'm using Windows 7, 64-bit.
[INFO] Installing app on device: is it connected?
[INFO] connect: No error
[INFO] usbmuxd_get_device_list: error opening socket!
[INFO] ERROR: Unable to retrieve device list!
I get the following messages when I try to install my application.
[ERROR] Failed when running C:\...win-ios-install.exe: connect: No error
usbmuxd_get_device_list: error opening socket!
ERROR: Unable to retrieve device list!
Anyone have this error? Any ideas how to resolve it? Thanks.
The problem was that I didn't have iTunes installed. The documentation is here: http://docs.trigger.io/en/v1.4/tools/ios-windows.html#setting-up-forge-to-run-ios-apps
I got the answer from the tigger.io IRC from mib_9fc0ff. Thanks mib_9fc0ff and Amir.

Resources