Ionic app won't log in Xcode - ios

Running an Ionic app that works fine on browser and used to work on Xcode simulator and iPhones. I'm watching the log file and something strange is happening.
Once I hit 'Login' on my app, it freezes and here is the output:
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Weekly asset update check did fire (force=NO)
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Beginning check for asset updates (force: 0
Mar 12 15:03:21 C02QJA6VG8WP SpringBoard[37882]: Did not complete check for asset updates (force: 0, isVoiceOverRunning: 0
Mar 12 15:03:22 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:23 --- last message repeated 3 times ---
Mar 12 15:03:23 C02QJA6VG8WP kbd[37935]: table drop: 101
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:31 --- last message repeated 4 times ---
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: Could not create or rename power assertion for <BKNewProcess: 0x7fd0bac01930; com.ionicframework.sameboat491544; pid: 37934; hostpid: -1>: 0xe00002c9
Mar 12 15:03:31 C02QJA6VG8WP assertiond[37886]: assertion failed: 14F1605 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
Mar 12 15:03:40 C02QJA6VG8WP lsd[37908]: LaunchServices: Currently 0 installed placeholders: (
)
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Note ) PS: Media stream daemon stopping.
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7f9c42f07b20>: Shared Streams daemon has shut down.
Mar 12 15:03:53 C02QJA6VG8WP mstreamd[37871]: (Warn ) mstreamd: mstreamd shutting down.
Mar 12 15:04:11 C02QJA6VG8WP ids_simd[37874]: (Error) IDSSimulatorSupport: <IDSSimSupportLocalServer.m __68-[IDSSimSupportLocalServer setNetworkSimulation:enabled:completion:]_block_invoke:561> message send of data {
ControlCmd = SetNetSimulationEnabledCmd;
Enabled = 0;
ServiceName = "com.apple.private.alloy.sockpuppet.classd";
} failed with error Error Domain=com.apple.idssimualtorsupport.errors Code=2 "(null)" UserInfo={NSUnderlyingError=0x7fc34e2027e0 {Error Domain=NSMachErrorDomain Code=268435459 "(ipc/send) invalid destination port"}}
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPTransport.m __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke:430> __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke identifier (B67A5D73-36B1-4B1C-B7EF-952300B137C6), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:900> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7fd5722058e0 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Mar 12 15:04:11 C02QJA6VG8WP sharingd[37884]: 15:04:11.601 : Failed to send SDURLSessionProxy startup message, error Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7feb4c913460 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPTransport.m __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke:430> __67-[SPTransport service:account:identifier:didSendWithSuccess:error:]_block_invoke identifier (E24D19D0-9B54-4A4A-8261-0E12C329B3D9), serviceName ((null)), success: 0 error, domain: com.apple.identityservices.error, code: 23
Mar 12 15:04:11 C02QJA6VG8WP companionappd[37879]: (Error) WatchKit: <SPCompanionAppServer.m __75-[SPCompanionAppServer sendProtobuf:sender:timeOut:allowInsecureTransport:]_block_invoke:900> sendProtobuf failed, error : Error Domain=com.apple.identityservices.error Code=23 "Timed out" UserInfo={NSLocalizedDescription=Timed out, NSUnderlyingError=0x7fd572205490 {Error Domain=com.apple.ids.idssenderrordomain Code=12 "(null)"}}
Any help would be greatly appreciated.

Turns out the Cordova plugin I was using is not compatible with the latest version of cordova-ios. I had to manually remove my platforms/ios directory and recreate it.
ionic platform add ios#3.9.2
ionic build ios
The plugin I was using was https://github.com/Telerik-Verified-Plugins/NativePageTransitions

Related

HW kbd failed to set (null) as keyboard focus iOS Xamarin.iOS 10.2.1.5

I have looked at other thread on same topic but couldn't get any answers there and hence created a new thread.
I am running into subjected error. It started when I upgraded my iPad to iOS 9.3.5 and it happens only on UITextField field. Here are logs but not able to find the root cause. This is occurring in Xamarin.iOS 10.2.1.5 which is latest and greatest.
Nov 26 13:16:09 rb-iPad SpringBoard[46] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Nov 26 13:16:09 rb-iPad SpringBoard[46] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Application 'UIKitApplication:com.safetytracker.app[0xbad8]' exited voluntarily.
Nov 26 13:16:10 rb-iPad UserEventAgent[23] <Warning>: 89823664133: id=com.safetytracker.app pid=219, state=0
Nov 26 13:16:10 rb-iPad mobile_installation_proxy[194] <Error>: 0x1f197000 handle_connection: Could not receive request from host.
Nov 26 13:16:10 rb-iPad com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124[218] <Warning>: 1 +0.000000 sec [00da/0a0b]: error: ::read ( 6, 0x64dd7c, 1024 ) => 0 err = No such file or directory (0x00000002)
Nov 26 13:16:10 rb-iPad com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124 [218] <Warning>: Exiting.
Has anyone faced the same issue? Not sure what am I going wrong.
This turned out to be an issue with code. But surprisingly code was working fine until I upgraded to latest build.
Lesson learnt, debug the code as you never know what part of code will start failing after you upgrade the Xamarin.

What do these Xcode simulator system errors mean?

The Xcode simulator disconnects from Xcode which will no longer show information in the console of Xcode. Xcode then provided the following error: "DTAssetProviderService could not start DTXConnection with Simulator 'iPhone 6'. Check the system log for errors."
I've tried quitting and restarting both the simulator and Xcode but still no luck. Here are the system log errors:
Jun 25 15:49:34 --- last message repeated 1 time ---
Jun 25 15:49:34 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:49:48 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:49:53 --- last message repeated 1 time ---
Jun 25 15:49:53 Laurences-MBP cloudd[10528]: notify name "com.apple.cloudkit.pcs.flushCaches" has been registered 20 times - this may be a leak
Jun 25 15:50:05 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:05 Laurences-MBP syslogd[47]: ASL Sender Statistics
Jun 25 15:50:08 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:11 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:50:44 Laurences-MBP sandboxd[10550] ([10647]): lsd(10647) System Policy: deny system-privilege 1013
Jun 25 15:51:00 --- last message repeated 1 time ---
Jun 25 15:51:00 Laurences-MBP DTServiceHub[10677]: DTServiceHub[10677]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
You're using Xcode 7.3.1 on macOS Sierra Beta which is not supported. This question has been discussed in more detail in XCode "DTAssetProviderService could not start.." error, How fix this?
Use Xcode 8 beta or Xcode 7.3.1 the .dmg image downloaded from the Developer Portal https://developer.apple.com/download/more/ which doesn't exhibit this problem like the Mac App Store version.

iOS APP Crash For Unknown Log

The following is the crash log I get.But,I don't konw what caused this crash.I'm using 7.2.1 version of Xcode and iOS 9.2.1,device is a iPod touch.I call a third SDK's init method,then the app crashed.Thanks
The init method:
[m_SoHaSDKClass initWithGameDelegate:self application:application];
The device log:
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: BSXPCMessage received error for message: Connection invalid
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: BSXPCMessage received error for message: Connection invalid
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Mar 10 11:51:27 ceshi-9 com.apple.xpc.launchd[1] (UIKitApplication:vn.sohagame.sg69[0x1782][11313]) <Warning>: Service exited with abnormal code: 1
Mar 10 11:51:27 ceshi-9 com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.51.1
[11312] <Warning>: 1 +0.000000 sec [2c30/0f07]: error: ::read ( -1, 0x1f2189ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Mar 10 11:51:27 ceshi-9 com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.3.51.1
[11312] <Warning>: Exiting.
Mar 10 11:51:27 ceshi-9 gputoolsd[11309] <Notice>: schedule invalidation <DYTransport 0x176862b0, error: explicit invalidation (6)>
Mar 10 11:51:27 ceshi-9 gputoolsd[11309] <Notice>: schedule invalidation <DYTransport 0x17617560, error: lost transport connection (31)>
Mar 10 11:51:27 ceshi-9 gputoolsd[11309] <Notice>: terminating daemon 0x17524f20
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Unable to get short BSD proc info for 11313: No such process
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Unable to get short BSD proc info for 11313: No such process
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Unable to get short BSD proc info for 11313: No such process
Mar 10 11:51:27 ceshi-9 com.apple.xpc.launchd[1] (UIKitApplication:vn.sohagame.sg69[0x581f]) <Error>: The DisableASLR key is no longer respected. Please remove it.
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Application 'UIKitApplication:vn.sohagame.sg69[0x1782]' exited voluntarily.
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Unable to get pid for 'UIKitApplication:vn.sohagame.sg69[0x581f]': No such process (err 3)
Mar 10 11:51:27 ceshi-9 SpringBoard[48] <Warning>: Bootstrapping failed for <FBApplicationProcess: 0x1d380bc0; vn.sohagame.sg69; pid: -1>
Mar 10 11:51:28 ceshi-9 UserEventAgent[23] <Warning>: 45831112213045: id=vn.sohagame.sg69 pid=11313, state=0
Mar 10 11:51:28 ceshi-9 SpringBoard[48] <Warning>: Application 'UIKitApplication:vn.sohagame.sg69[0x581f]' exited voluntarily.

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.

Issue with iOS low memory crash but using very low memory - checked with instruments

I have a sample App that works fine on the simulator, but crashes on the device. I get the following output on the console from Organizer. It crashes within a short time.
Using instruments, memory leak, I see that the memory usage is about 2-3 mb. Using memory allocations, I see around 8-9mb for memory allocations and nothing in VM tracker.
The console output is given below. Can anyone kindly suggest what to do?
pr 26 11:46:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:46:44 unknown SpringBoard[15] <Warning>: No valid 'aps-environment' entitlement string found for application 'SampleApp': (null). Notifications will not be delivered.
Apr 26 11:46:44 unknown SampleApp[14834] <Warning>: unique id: //someID
Apr 26 11:46:45 unknown SampleApp[14834] <Warning>: Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x2322ae {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
Apr 26 11:46:46 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 26 11:46:46 unknown com.apple.debugserver-64[14833] <Warning>: 1 [39f1/1303]: error: ::read ( 4, 0x2ff389d4, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.atc) Exited: Killed: 9
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Bug: launchd_core_logic.c:3730 (25147):3
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Assuming job exited: <rdar://problem/5020256>: 10: No child processes
Apr 26 11:46:46 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.fun.SampleApp.ios[0x2344]) Job appears to have crashed: Segmentation fault: 11
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.mediaserverd) Exited: Killed: 9
Apr 26 11:46:46 unknown com.apple.launchd[1] <Notice>: (com.apple.ubd) Exited: Killed: 9
Apr 26 11:46:47 unknown kernel[0] <Debug>: launchd[14836] Builtin profile: mediaserverd (sandbox)
Apr 26 11:46:48 unknown lockdownd[21] <Error>: 2ffd4000 _receive_message: walk away - non-SSL 1
Apr 26 11:46:48 unknown com.apple.mobile.lockdown[21] <Notice>: receive secure message timeout!
Apr 26 11:46:48 unknown ReportCrash[14838] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-26-114648.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Apr 26 11:46:49 unknown mediaserverd[14836] <Error>: 11:46:49.618590 com.apple.AVConference: /SourceCache/GameKitServices/GameKitServices-344.3/AVConference.subproj/Sources/AVConferenceServer.m:1862: AVConferenceServerStart aborting - device doesn't support conferencing
Apr 26 11:46:49 unknown SpringBoard[15] <Warning>: Application 'SampleApp' exited abnormally with signal 11: Segmentation fault: 11
Apr 26 11:46:52 unknown atc[14835] <Warning>: Error: Connection invalid
Apr 26 11:46:53 unknown wifid[27] <Error>: WiFi:[357158813.1212122]: Client itunesstored is background application
Apr 26 11:47:07 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:47:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:07 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:37 unknown SpringBoard[15] <Warning>: Memory level is not normal (2). Delaying auto-relaunch of 'com.apple.mobilemail' for 30 seconds.
Apr 26 11:48:49 unknown SpringBoard[15] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
ok, so it seems like everything was fine, I just needed to delete the app from the iPad and reinstall it... pretty weird... !!!

Resources