iOS: Today Widget "unable to load" after reboot device - ios8-today-widget

After reboot device, if I directly visit today widgets, my app's today widget will show with "unable to load" (But if - after reboot device, firstly, I open my app, and then visit today widgets, everything works fine)
I tried my ways, but there is no way to debug this issue. I try to use "iOS Console", and get following error logs:
key error logs:
Sep 19 18:37:37 My-iPhone SpringBoard(Widgets)[58] <Notice>: <com.***.***: 0x109008200; container: WGWidgetListItemViewController> Remove snapshots at file:///private/var/mobile/Containers/Data/PluginKitPlugin/3E4710C0-9E8F-4F87-B6DA-D7072057B92D/Library/Caches/com.apple.notificationcenter/Snapshots/com.***.***-PhoneTall-359-zh_CN-UICTContentSizeCategoryL-NCWidgetDisplayModeCompact.ca/ due to error: Error Domain=CAARFileLoadingDomain Code=950000 "(null)" UserInfo={NSUnderlyingError=0x1cc448f40 {Error Domain=CoreAnimationErrorDomain Code=2 "Unable to load CAPackage from URL: index.xml
Sep 19 18:37:39 My-iPhone SpringBoard(PlugInKit)[58] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.***.***" UserInfo={NSDebugDescription=connection to service named com.***.***}
Sep 19 13:36:16 My-iPhone backboardd(BaseBoard)[659] <Error>: Unable to bootstrap_look_up port with name com.xxxx.Extension.gsEvents: unknown error code (1102)
Sep 19 13:36:17 My-iPhone xxxxExtension(CoreFoundation)[996] <Error>: Couldn't read values in CFPrefsPlistSource<0x1d411a940> (Domain: group.com.xxxx.extension-df, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

Related

Opensuse Tumbleweed black screen with blinking cursor

My system is openSUSE Tumbleweed 20210408. After the update, I couldn't open KDE and also I can't see any login area just a black screen with a blinking cursor.
When I wrote
journalctl -b 0 -p 4
I saw output.
Apr 13 16:49:04 localhost gnome-session-binary[1364]: Unrecoverable failure in required component org.gnome.Shell.desktop
Apr 13 16:49:04 localhost /usr/libexec/gdm/gdm-wayland-session[1363]: dbus-daemon[1363]: [session uid=456 pid=1363] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=456 pid=1364 comm="/usr/libexec/gnome-session-binary --autostart /usr")
Apr 13 16:49:04 localhost /usr/libexec/gdm/gdm-wayland-session[1363]: dbus-daemon[1363]: [session uid=456 pid=1363] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Apr 13 16:49:04 localhost gdm[1283]: Gdm: gdm_session_handle_secret_info_query: assertion 'self->user_verifier_interface != NULL' failed
Apr 13 16:49:04 localhost gdm-autologin][1395]: gkr-pam: couldn't get the password from user: Conversation error
How can I solve this problem?

Xamarin.iOS application failed to run on simulator(Probably after last Xamarin.iOS update)

iOS apps are not starting in iPhone simulator(iPhone 5 - iOS 10.0 used ).
There are errors from logs
CoreSimulator.log:
mlaunch[1482] <Error>: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.xamarin.acquaint-native" failed." UserInfo={NSLocalizedDescription=The request to open "com.xamarin.acquaint-native" failed., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fe15ceb7540 {Error Domain=FBSOpenApplicationErrorDomain Code=1 "(null)" UserInfo={BSErrorCodeDescription=Unspecified}}, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.}
System.log(Debug mode from Xamarin Studio or VS 2015):
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: Requesting launch of com.companyname.FasterNotesMobile.iOS with options: {
arguments = (
"-monodevelop-port",
51746
);
environment = {
"DYLD_INSERT_LIBRARIES" = "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/monotouch-fixes.dylib";
};
}
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: [Common] [FBSSystemService][0xe350] Sending request to open "com.companyname.FasterNotesMobile.iOS"
Nov 10 00:00:01 macmini com.apple.CoreSimulator.SimDevice.3D2EDEEE-4261-4B99-9B31-971D08B0124E.launchd_sim[5110] (UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xe451][5510]): Program specified by service does not contain one of the requested architectures:
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Unable to get pid for 'UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xe451]': No such process (err 3)
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Bootstrapping failed for <FBApplicationProcess: 0x7a79b830; com.companyname.FasterNotesMobile.iOS; pid: -1>
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: [Common] [FBSSystemService][0xe350] Error handling open request for com.companyname.FasterNotesMobile.iOS: <NSError: 0x7b871a30; domain: FBSOpenApplicationServiceErrorDomain; code: 1 (RequestDenied); reason: "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified."> {
description = "The request to open "com.companyname.FasterNotesMobile.iOS" failed.";
failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.";
underlyingError = <NSError: 0x7b871c10; domain: FBSOpenApplicationErrorDomain; code: 1 (Unspecified)> {
description = "The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)";
};
}
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.companyname.FasterNotesMobile.iOS" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified., NSLocalizedDescription=The request to open "com.companyname.FasterNotesMobile.iOS" failed., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7b871c10 {Error Domain=FBSOpenApplicationErrorDomain Code=1 "(null)" UserInfo={BSErrorCodeDescription=Unspecified}}}
Nov 10 00:00:01 macmini com.apple.CoreSimulator.SimDevice.3D2EDEEE-4261-4B99-9B31-971D08B0124E.launchd_sim[5110] (UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xea1e][5511]): Program specified by service does not contain one of the requested architectures:
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Unable to get pid for 'UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xea1e]': No such process (err 3)
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Bootstrapping failed for <FBApplicationProcess: 0x80a24f00; com.companyname.FasterNotesMobile.iOS; pid: -1>
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: Beginning CalScheduledTaskCacheTrimAndExtendAndUpdateOverdue
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: ScheduledTaskCache last saved 499237200
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: today is EKCalendarDate <0x7c17e740> { date = Thursday, November 10, 2016 at 12:00:00 AM CST }, comparisonResult is -1
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: Updating overdue with today 500450400.000000
The log above are for acquaint pre build application. I tried several other application, the same story.
It used to work fine.
I am using latest Xamarin iOS SDK update(that maybe the issue)
Got same problem with a new project and the latest Xamarin.
To fix it I had to change "Supported architectures" to "i386" in the project options. The default was "x86_64".
Do you have the latest version of Xcode?
You won't be able to simulate on IOs 10 unless you have Xcode 8.2 (or 8.1, not sure) installed on your Mac station.

Xcode 7 cannot install to device

Throws unknown error. I tried to install on my phone, factory reset phone, and a third phone, all give the same error:
It's difficult to understand what is actually the problem. Several other stack overflow questions had the same error message, but different output in the device log not related to mine.
Any ideas? It has been building and installing fine for months and all of a sudden..
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Corpsboard.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 2245)
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.justin.corpboard; Version=0.4, ShortVersion=0.4>
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Provisioning profiles changed
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Updating MIS trust...
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: MIS: unrecognized status -67049 from codesigning library
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: MIS: Could not copy code signature (error 0xe8008001).
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Verification stage failed
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Error>: 0x16e2d3000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)" UserInfo={LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Warning>: __dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/Corpsboard.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone iaptransportd[81] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x146e2e280> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone UserEventAgent[26] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x135f165f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone bulletindistributord[65] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14c5870f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone BTServer[1014] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd59780> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone apsd[107] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14fdca7b0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone homed[149] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd9be80> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone atc[43] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x15e741cf0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone SpringBoard[63] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1286a1740> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone nsurlsessiond[131] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x160009c40> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone itunesstored[116] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x12e83f560> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone profiled[1852] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13f55a2f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone passd[1782] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13cd69d60> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: SOSPeerCoderSendMessageIfNeeded 0mz5ovmoZQmcqr98JnIrTea6dT getCoder: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: __SOSCCProcessSyncWithAllPeers_Server_block_invoke sync with all peers failed: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone CloudKeychainProxy[197] <Error>: __39-[UbiqitousKVSProxy doSyncWithAllPeers]_block_invoke_2 <UBK-s-pCS--> syncWithAllPeers (null), rescheduling timerre
This ended up being Cocoapod related, though I don't understand why.
In the device output log, I found a mention of 'AFDateHelper', which is a pod I use. After removing the pod, then reinstalling the pod, it started building to the device.
The pod hadn't been updated or changed since initially being installed, so not sure why it stopped.
Maybe this will help someone else.
I had problems with RealmSwift in XCode 8 / iOS9/10
"Unknown Error" "An unknown error has occurred"
Open Console
Click on iOS device
Searched for
"An unknown error has
occurred" or "Failed to install application"
Found errors
"LaunchServices"
"Apps Failed be installed" //should be 'to be'
"Not found in database"
Scroll up
- found error related to a
cocoapods framework
__dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/app_p.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.qjw4QY/extracted/app_p.app/Frameworks/RealmSwift.framework : 0xe8008001 (An unknown error has occurred.)}
Related to RealmSwift.framework
Found old issue which recommended cleaning cache for just those pods:
https://github.com/realm/realm-cocoa/issues/3473
so I ran this:
pod cache clean Realm
pod cache clean RealmSwift
pod install --verbose
I also erased project from DerivedData
I deleted the app of the iOS device if already on it to force clean install rather than upgrade.
App installed ok from XCode 8 to 2 devices one running iOS 10 and other iOS 9.
Note the Realm forum said to also remove all Pods and re-add
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
but I did this before and it messed up my git repo.
When I opened the folder with the project in SourceTree Git client the url to the repo was pointing to cocoapods spec project not the repo for my project.
But I fixed the error without pod deintegrate so I cant confirm if this is still and issue.

Unable to download application, Application could not be Installed

I've seen this issue posted several times but my exact situation doesn't seem to apply. Hopefully someone can help!
I'm deploying a app to the iPad. I develop it using a Development Provisioning Profile and can deploy it without issue to the device assigned. All well and good.
So I'm ready to distribute it. We are using Enterprise Ad-Hoc distribution, and are part of the Apple Enterprise Developer program. I created a Distribution Profile for the application, downloaded the profile and loaded it into Xcode, got the appropriate certificate so it is cleanly signed. I built the distribution explicitly using the Distribution Profile for the application. However, when I try to install, we get the infamous "Unable to load application, application could not be installed at this time." The device console has the following errors:
Aug 9 10:50:43 unknown installd[12695] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Aug 9 10:50:43 unknown installd[12695] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 verify_signer_identity: Could not copy validate signature: -402620394
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.xU9kDU/foo_extracted/Payload/APP.app
Aug 9 10:50:43 unknown com.apple.itunesstored[12694] <Notice>: MobileInstallationInstall: failed with -1
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 install_application: Could not preflight application install
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 handle_install: API failed
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 send_message: failed to send mach message of 71 bytes: 10000003
Aug 9 10:50:43 unknown installd[12695] <Error>: 2ffba000 send_error: Could not send error response to client
Aug 9 10:50:54 unknown lockdownd[26] <Notice>: 00381000 lockssl_handshake: SSLHandshake returned -9806
Aug 9 10:50:54 unknown lockdownd[26] <Notice>: 00381000 handle_start_session: Could not enable SSL. Closing connection.
Aug 9 10:50:54 unknown notification_proxy[12630] <Error>: Could not receive size of message: 0 Invalid argument
Aug 9 10:50:54 unknown notification_proxy[12630] <Error>: Could not receive message
Aug 9 10:50:54 unknown notification_proxy[12626] <Error>: Could not receive size of message: 0 Invalid argument
Aug 9 10:50:54 unknown notification_proxy[12626] <Error>: Could not receive message
Aug 9 10:51:03 unknown kernel[0] <Debug>: lockbot[12696] Builtin profile: gputoolsd (sandbox)
Any ideas of what I'm doing wrong? It seems to imply that the provisioning profile is incorrect, but I am definitely using the Distribution Profile that includes the application. It also hints at an SSL problem; the site hosting the distributable is not SSL-enabled, but that didn't seem to need to be a requirement.
Thanks in advance.
Apparently, when you upgrade the iOS developer program subcription, you need to create new distribution certificate (and that certificate should be created by Team Agent).
See this article:
https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW1

Error when closing window (cocoa application)

this's a log which I get when close window in my application:
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Error>: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Error>: kCGErrorFailure: Set a breakpoint # CGErrorBreakpoint() to catch errors as they are logged.
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Warning>: _CGSReferenceWindowByID: Window id 0xffffffff not found (locally or shared)
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Error>: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Error>: Failed to create window context device
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] <Error>: CGWindowContextCreate: failed to create window context delegate.
2011-11-21 20:58:17.307 FirstGUIapp[3255:403] _initWithWindowNumber: error creating graphics ctxt object for ctxt:0xefef, window:0xffffffff
Everything works fine until I close application: when it enters into applicationWillTerminate method these messages appear in log and app crashes.
I just open and close application, no code executes after launching
I don't know if it matter, but I have also Clipped Content warning in MainMenu.xib (at push button)
Thanks
It seems your windows ptr is equal 0xFFFFFFFF which is most probaly a bad sign, do you have the source of applicationWillTerminate? Are you trying to access to the windows in any way ?

Resources