App crash while app launch in Xcode 11.2.1 - xcode11.2.1

Getting me error and crash while app launch. I'm using Websocket.swift ('Starscream') and connection establish in app-delegate. Is there issue due to socket connection?
Error:-
[DYGLInitPlatform] connection to host has failed: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"

The reasons of this crash, for sure, might be very different, but try cleaning your Build directory with ⌘ +⇧+K.
It's like rebooting your Mac — would never hurt.

Related

having issues with "dfx start" and "dfx deploy" code

Does anyone know the solution to this? I am new to this and learning. I am on Macbook Air m1.
This is the end code while running dfx start in the terminal:
thread 'replica-actor' panicked at 'called Result::unwrap() on an Err value: Cannot start the replica: Timeout', src/dfx/src/actors/replica.rs:279:78
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
This is what happens while running dfx deploy in terminal:
Error: An error happened during communication with the replica: error sending request for url (http://127.0.0.1:8000/api/v2/status): error trying to connect: tcp connect error: Connection refused (os error 61)
Does anyone know anything about this?
Found the solution to the problem. I was running the code while it was stored in an external drive. When I created the same folder on my desktop and ran everything the same way, the problem got solved and I no longer have those errors in my terminal. I don't know how it is happening, but I just discovered it right now.
Try "dfx start --emulator"

Exception: ideviceinfo returned an error: ERROR: Could not connect to lockdownd, error code -17

I tried install flutter on my mac but these error always show up :
⢿Unhandled exception:
Exception: ideviceinfo returned an error:
ERROR: Could not connect to lockdownd, error code -17
can anyone help me?
I've tried many ways but the error always show up.
I think it is caused by having an iOS device plugged in to your computer. I had the same issue and it went away after unplugging my phone. You won't get this message if the device is plugged in and the computer is marked as a trusted device.

Trying to send an email through an iphone app and getting an error using MFMailComposeViewController in iOS 8

I imported the MessageUI.h class and implemented the function in MFMailComposeViewControllerDelegate.
I was following the tutorial on : http://www.appcoda.com/ios-programming-101-send-email-iphone-app/
I am currently using Xcode 6.0.1 and iOS SDK 8.0 to build and run the app on the simulator. The issue is:
On running the app in the simulator, I get the following error
2014-09-26 03:39:07.687 SendMessage[44465:2674263] Mail cancelled
2014-09-26 03:39:07.743 SendMessage[44465:2673753] viewServiceDidTerminateWithError: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" UserInfo=0x7fe873e01d30 {Message=Service Connection Interrupted}
2014-09-26 03:39:25.172 SendMessage[44465:2674263] <MFMailComposeRemoteViewController: 0x7fe873c389e0> timed out waiting for fence barrier from com.apple.MailCompositionService
Any suggestions on what should be done to get this working?
This is a known error in the simulator. It does not appear when you run on a device. So, try it on a device and if it runs normally, then you should be ok.

Couldn't register com.xxx.appname with the bootstrap server. Error: unknown error code.Program received signal: “SIGABRT”

I am getting this error while running in device.
Couldn't register com.xxxx.appname with the bootstrap server.
Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.
Now i rectified this problem .I have posted answer also if anyone got this error follow my post..
Try this,
Deleteing the app, restarting Xcode, clean build, didn't do anything
--> restart your computer
--> restart the phone

request error Error Domain=SKErrorDomain Code=0 "Operation could not be completed. (SKErrorDomain error 0.)"

I am working on IN App purchase, storekit.
I am getting this error:
request error Error Domain=SKErrorDomain Code=0 "Operation could not be completed. (SKErrorDomain error 0.)"
What does this means?
Sometimes when you have bad internet connection, it returns that error because the app cannot communicate with the apple server. Just try to retry or if you have another internet connection source, try connecting there then do what you want again.
use device for testing not simulator
Restarting the device worked for me
This was happening on the Simulator and just closing the simulator and re-opening seemed to fixed it