App error on iOS simulator - ios

I was debugging my application earlier today from Visual Studio Cordova to iOS simulator running on a mac just fine.
After minimal changes, it would no longer run and seemed to crash instantly, giving the following errors in the system log:
Feb 22 14:59:28 Derricks-Air com.apple.CoreSimulator.SimDevice.FD118263-FDD1-4B7F-ADDB-0B5BA5811F88.launchd_sim[1946] (UIKitApplication:com.packagename.mail[0x8540][2832]): Program specified by service does not contain one of the requested architectures: ï
Feb 22 14:59:28 Derricks-Air SpringBoard[1962]: Unable to get pid for 'UIKitApplication:com.packagename.mail[0x8540]': No such process (err 3)
Feb 22 14:59:28 Derricks-Air SpringBoard[1962]: Bootstrapping failed for <FBApplicationProcess: 0x7d890cd0; com.packagename.mail; pid: -1>
Feb 22 14:59:28 Derricks-Air SpringBoard[1962]: Application 'UIKitApplication:com.packagename.mail[0x8540]' exited voluntarily.
I have since reverted any code changes and am still having this issue.
Any ideas?

Related

react-native app fail to start after a few days

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.

iOS Simulator won't work with Xcode 7.3.1 after install macOS and Xcode 8

After install macOS Sierra + Xcode 8 beta
My Xcode 7.3.1 can't run iOS simulator anymore,
How can i fixed this?
here is system logs.
Jun 15 07:46:11 Siams-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.CoreSimulator.CoreSimulatorService[2246]): Service exited due to signal: Killed: 9 sent by com.apple.CoreSimulator.CoreSimu[2246]
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: com.apple.CoreSimulator.CoreSimulatorService 209.19 starting.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device D340C405-CF9F-482C-82CE-ADE8A2399529 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device C3CBAFAD-D139-49CE-9EF1-E2437A2349A7 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 0916CCBC-1DAA-4CA4-8DCA-FFD87C8941E0 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 9CC780B5-3034-4083-B52F-2354FB0A8252 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Another log
Jun 15 10:03:26 Siams-MacBook-Pro DTServiceHub[11482]: DTServiceHub[11482]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: Xcode[10188]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Short term solution:
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
This isn't recommended since you have to do it every time you want to run your app.
Long term solution (recommended):
Reinstall Xcode from the Developer Center. Doing so will clear this error, and the app will run smoothly.
This should work.
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
I fixed the problem by deleting both XCode 7.3.1 and 8 Beta and reinstalling just XCode 7.3.1 from DMG.

Installed app is crashing everytime on launching

I have installed my app last week on device. I used it for 2 days and after that I haven't used it for 3-4 days. Now I am trying to launch but it is not launching and crashing immediately.
I found logs as follows:
Feb 1 17:17:53 M_iPhone amfid[183] :
/private/var/mobile/Containers/Bundle/Application/CB42BC38-71E7-4BA5-AD99-3703C2153DAF/test.app/test
not valid: 0xe8008018: The identity used to sign the executable is no
longer valid. Feb 1 17:17:53 M-iPhone kernel[0] : AMFI:
hook..execve() killing pid 984: no code signature Feb 1 17:17:53
M-iPhone kernel[0] : Sandbox: hook..execve() killing pid 984:
application requires container but none set Feb 1 17:17:53 M-iPhone
com.apple.xpc.launchd[1] (UIKitApplication:com.test.test[0xb771][984])
: Service exited due to signal: Killed: 9
When I uninstalled and reinstall app then it is working fine.
Can anyone please help me?
Trying to remove and re-add your apple id, it works for me for months.
xcode: Preferences...
Accounts
Select your apple account
Remove that (-)
Add again your apple account (+)
Re install your app!

What does the installation errror "The packet is unknown" mean?

I am trying to use Xcode 6.2 to install a development build of an iOS app onto my iPod touch (running iOS 8.2).
The installation keeps failing with the message
App instalation failed
The packet is unknown.
The console reports the following details:
Mar 27 12:53:52 iPod-touch com.apple.StreamingUnzipService[164] <Warning>: -[StreamingUnzipState finishStream]:476: Finishing an incomplete stream! This stream will not be resumable.
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: __dispatch_source_read_socket_block_invoke_2:171: Failed to finish extraction: Error Domain=SZExtractorErrorDomain Code=3 "Finishing an incomplete stream! This stream will not be resumable." UserInfo=0x17e33b50 {SZExtractorFunctionNameErrorKey=-[StreamingUnzipState finishStream], SZExtractorSourceFileLineErrorKey=476, NSLocalizedDescription=Finishing an incomplete stream! This stream will not be resumable.}
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_message:105: Got error 1 from lockdown_send_message
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_error:137: Could not send error response to host
These messages seem to imply that the IPA file is somehow corrupted, and can't be extracted, but I had no problem unziping the IPA with Archive Utility on my Mac.
I also already ran codesign -dvvv on Payload/<my-app-name>.app and don't see any obvious problems with the certificate used to sign the app.
What does this error message indicate, and how can the issue be resolved?
note:
I already found this similar question but the only current answer does not help me. Since I have some, possibly relevant, details that may not apply to the previous question, I am asking a new question.
So I was getting this exact error and I tried switching USB ports (from the device plugged into the USB port on my keyboard to the USB port on my laptop) and now it works.

iOS app Crashes on Start Up

I developed an application with Xamarin studio. It runs completely fine with the iPhoneSimulator. I was able to run Ad-Hoc | Iphone and it compiles and actually saves the IPA directly to my phone. When I click the app it launches the load screen and crashes within 1 second.
I've tried to install command line tools for my OSX which is 10.9.
I'm all out of ideas, any help would be great.
Warning MT5303: Native linking warning: warning: can't parse dwarf compilation unit info in /Users/test/Google Drive/FernSoftware Mobile App/Hello/obj/iPhone/Debug/mtouch-cache/Hello.exe.armv7.o (MT5303)
Warning MT5303: Native linking warning: warning: can't parse dwarf compilation unit info in /Users/test/Google Drive/FernSoftware Mobile App/Hello/obj/iPhone/Debug/mtouch-cache/System.Data.dll.armv7.o (MT5303)
no errors but many warnings similar to that.
Jun 20 15:25:59 com.apple.debugserver-199[2466] <Warning>: 1 +0.000000 sec [09a2/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x09a3, tid = 0x2503, signal = -1) err = Invalid argument (0x00000016)
Jun 20 15:25:59 com.apple.debugserver-199[2466] <Warning>: 2 +0.036680 sec [09a2/1303]: error: ::read ( 5, 0x2fe809fc, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jun 20 15:25:59 com.apple.debugserver-199[2463] <Warning>: 1 +0.000000 sec [099f/0303]: error: ::read ( 5, 0x2fd7cebc, 1024 ) => 0 err = Bad file descriptor (0x00000009)
Jun 20 15:25:59 mobile_installation_proxy[2461] <Error>: main: Could not receive request from host.
Jun 20 15:25:59 mobile_installation_proxy[2464] <Error>: main: Could not receive request from host.
Jun 20 15:25:59 kernel[0] <Debug>: launchd[2467] Builtin profile: container (sandbox)
Jun 20 15:25:59 kernel[0] <Debug>: launchd[2467] Container: /private/var/mobile/Applications/6C7A90BA-B71E-41F5-BAA1-85B0202BA07F (sandbox)
Jun 20 15:25:59 FaaSBank[2467] <Notice>: MS:Notice: Installing: com.FaaSBank.FernSoftware [FaaSBank] (793.00)
Jun 20 15:26:00 com.apple.launchd[1] <Error>: (UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]) Exited with code: 1
Jun 20 15:26:00 com.apple.launchd[1] <Notice>: (UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]) Throttling respawn: Will start in 2147483647 seconds
Jun 20 15:26:00 backboardd[53] <Warning>: Application 'UIKitApplication:com.FaaSBank.FernSoftware[0x1e67]' exited abnormally with exit status 1
The device log is huge but i think these are the important pars
iOS device log
http://pastebin.com/PDjj0aHJ
Go through this, It' would be help you :
Architecture settings (armv6, armv7, armv7s) and also check your deployment version setting.
Set your Code Signing properly (Build Settings --> Code Signing)
Set/Check proper Deployment Target
Set/Check your Search Paths, if any. Check your other linker flags.
I think, might be possible your application run perfectly.

Resources