MAUI Android apk will not run if downloaded from webste - maui

I know the normal rule is to include source code, but I know that's not the problem, because the Welcome to Maui app that gets generated on Create New Project doesn't even work.
Tell me what you want to see, and I'll gladly add it.
I have a MAUI app that works fine when I deploy it to my Android 12 phone from Visual Studio 2022, but when I build the apk and put it on my company's internal website for the QA department to download, it crashes on launch immediately after the splash screen appears.
I have generated keystore files over and over, searched git and stackoverflow and just about every other corner of the web that I can think of, but the apk simply won't run if it's downloaded and installed. It downloads and installs just fine, but it crashes on launch.
I have even tried starting fresh with a new project that only has the initial code generated by Visual Studio. It also downloads and installs, but crashes on launch, and my phone says "MauiApp1 closed because this app has a bug."
I can make Xamarin apps all day and they work just fine.
Does anybody have any ideas?
I since found a logcat viewer extension:
02-07 06:47:14.897 E/pageboostd( 2845): alp start : app commyappmobile
02-07 06:47:14.898 E/pageboostd( 2845): commyappmobile, amt 0 scnt 0 fcnt 0
02-07 06:47:14.898 E/pageboostd( 2845): commyappmobile, amt 0 scnt 0 fcnt 0
02-07 06:47:14.898 E/pageboostd( 2845): alp end : app comjettyappmobiledist data_amount 0
02-07 06:47:14.899 E/ActivityTaskManager( 1423): TouchDown intent received, starting ActiveLaunch
02-07 06:47:14.906 E/libprocessgroup( 1423): Failed to write '6-7' to /dev/cpuset/system-background/cpus: Permission denied
02-07 06:47:14.954 E/libprocessgroup( 1423): Failed to write '0-5' to /dev/cpuset/system-background/cpus: Permission denied
02-07 06:47:14.956 E/USNET (12431): USNET: appName: com.myapp.mobile
02-07 06:47:14.960 E/libprocessgroup( 1423): Failed to write '0-5' to /dev/cpuset/system-background/cpus: Permission denied
02-07 06:47:14.977 E/BufferQueueDebug( 905): [Splash Screen com.myapp.mobile$_1814#0](this:0xe9d3fda4,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Splash Screen com.jettyapp.mobile.dist$_1814#0'
02-07 06:47:14.995 E/pageboostd( 2845): Received HALT command code 2

Related

Flow server and vscode flow extension breaking after updating to catlina and mojave

Does anyone encounter this issue?
Connection to server got closed. Server will not be restarted.
This I am getting when I am checking out to old commit and in locus-dashboard (there we do have an old version of flow) and then switching back to current. Then it starts throwing an error Connection to server got closed. Server will not be restarted..
This are the logs of flow.
[Info - 12:03:15 PM - locus-dashboard-v2/.flowconfig] Found flow using option `useNPMPackagedFlow`
[Info - 12:03:16 PM - locus-dashboard-v2/.flowconfig] Using flow '/Users/shubanusharma/workspace/locus-dashboard-v2/node_modules/flow-bin/flow-osx-v0.111.3/flow' (v0.111.3)
Unhandled exception: (Sys_error "/tmp/daemon_param688afa.bin: Permission denied")
Raised by primitive operation at file "stdlib.ml", line 316, characters 29-55
Called from file "filename.ml", line 259, characters 7-73
Re-raised at file "filename.ml", line 261, characters 30-37
Called from file "hack/utils/sys/daemon.ml", line 267, characters 2-53
Called from file "hack/utils/jsonrpc/jsonrpc.ml", line 215, characters 4-357
Called from file "src/lsp/flowLsp.ml", line 1555, characters 15-36
Called from file "src/commands/commandUtils.ml", line 13, characters 4-32
[Error - 12:03:16 PM] Connection to server got closed. Server will not be restarted.
I've tried cleaning up node_modules, Clearing yarn and npm cache, reinstalling extension.
This seems to be a Catalina permissions issue running flow with sudo works for flow but vscode extension have same issue still.
Not a permanent solution but changing tmp folder permissions to 777 fixing this.
Go to your repo dir and stop server yarn flow stop
Change /tmp dir permissions sudo chmod 777 /tmp
Start flow server yarn flow start
Restart vscode flow client by cmd+shift+p(windows ctrl+shift+p) type restart client press enter
[EDIT 15-jun-2021]
In most cases just giving permission is enough no need of stopping the server
Also, this not only happens in Catalina happens Catalina onwards
Mac OS Catlina
Mac OS Mojave
I've found both contains the issue

macOS high sierra 10.13 AD Mobile acount issue

I am try to login to AD account in macOS high sierra 10.13 and getting error:-
You are unable to log in to user account "skull" at this time
Login in the account failed because an error occurred
System logs :
Oct 6 08:24:49 MyMac kcm[399]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?
Oct 6 08:24:50 MyMac authorizationhost[344]: ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=smb://IMASFRG-KS0099/skull%%98, homedir=/home/skull, name=skull ) returned 2
Try to uncheck "Use UNC path from Active Directory to derive network home location". Here is a screenshot for your reference. Then you can map the drive via Enterprise Connect if your company had it.
Screenshot

What password is the browser asking with the message ' This site says : Spring '?

I have few Spring Boot projects (developed by other team members). Suddenly after downloading the latest changes (by other developers) from the repository, i started getting the following problem when submitting the form in the application. The browser keeps showing a prompt with the following message and asking for a username and password.
The site says: "Spring"
Rest of the developers are saying they don't get this error, i tried creating a new workspace from the latest code in repo and still getting the same error. What User Name and Password is the browser asking for ? Surely this is not my proxy server credentials, because i've tried it but still the prompt keeps coming.
I can see the following error in my Eclipse Console:
2015-06-03 04:17:18.736 INFO 5760 --- [ XNIO-1 task-2] o.s.b.a.audit.listener.AuditListener : AuditEvent [timestamp=Wed Jun 03 04:17:18 EDT 2015, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]

App is crashing after Update Release to App store

I have released two versions of my App successfully
But after third version of app is released in App Store,when i downloaded from Appstore The App is getting Crashed :
When i try to launch app it is getting crashed immediately, and no crash reports were generated in Xcode Organizer.
The Same app is Working fine in IPAD/IPHONE SIMULATORS 5.0 and 4.1 versions
and also working fine when tested in IPHONE and IPAD devices with IOS 5.1.1 installed(run through XCODE).
No Major changes are given other than some image changes and Animation changes which are working fine when locally tested.
Please find below logs, please help to resolve this issue.
Jul 5 12:16:01 unknown fairplayd.N90[41] : libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0 Jul 5
12:16:01 unknown SpringBoard[52] : Unable to obtain a task
name port right for pid 225: (os/kern) failure Jul 5 12:16:01 unknown
com.apple.launchd[1] :
(UIKitApplication:com.myCompany.myApp[0xdaa7]) Exited: Killed: 9 Jul
5 12:16:01 unknown com.apple.launchd[1] :
(UIKitApplication:com.myCompany.myApp[0xdaa7]) Throttling respawn:
Will start in 2147483647 seconds Jul 5 12:16:01 unknown
SpringBoard[52] : Application 'myApp' exited abnormally with
signal 9: Killed: 9 Jul 5 12:16:02 unknown kernel[0] :
AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42110
Actually, this is not your fault. The App Store(s) has been having trouble as of late because it is serving corrupted binaries to consumers. Contact apple through iTunes connect for resolution, or wait a few days and release an update. To all developers reading this with pending application updates:
Wait, please wait!
Other symptoms of this include:
The app crashes immediately on launch (not even a splash screen shows, just black->crash).
Affected consumers are spread across many regions (not localized), but some are unaffected.
Your app/update has been approved fairly recently.
Mac apps will show "[App] is damaged and can't be opened. Delete [App] and download it again from the App Store."
The console will print: AppleFairplayTextCrypterSession::fairplayOopen() failed, error -42110
The only fix is to delete the app and reinstall (and basically pray for a working copy). Be assured, you are not the only one! Many major apps from huge companies are being affected by this issue (Angry Birds, NOOOOO).
Corroborated by:
http://www.marco.org/2012/07/04/app-store-corrupt-binaries
http://www.appleinsider.com/articles/12/07/04/developers_suspect_app_store_mix_up_led_to_corrupt_binaries.html
http://www.imore.com/2012/07/04/newly-installed-updated-apps-reportedly-crashing-launch-due-corrupt-app-store-binary-bug/
http://www.forbes.com/sites/anthonykosner/2012/07/05/apple-app-store-encryption-glitch-causes-many-new-app-updates-to-crash-see-list/
In your Locally tested Application Please Remove it in your Device
.After u update or download your updated app in App store

Instruments, Target Failed to run : Remote exception encountered : 'Failed to get task for pid'

I have no control over the builds. I dont have an apple dev account either. I can use a debug/checked/release build. When running test automation I continue to run into this error: Target failed to run : Remote exception encountered : 'Failed to get task for pid 506'
The automation starts, the application opens and then promptly closes. here is some console output
Oct 25 09:46:48 iphone com.apple.launchd[1] (UIKitApplication:com.something.dogfood[0xd456][504]) : (UIKitApplication:com.something.dogfood[0xd456]) Exited: Killed: 9
Oct 25 09:46:48 iphone SpringBoard[29] : Application 'MyApplicaton' exited abnormally with signal 9: Killed: 9
Any suggestions?
Instruments basically does its work by becoming the debugger for the app. Sometimes after using XCode to debug apps, I find I can't use Instruments until I reboot the device.
Unlike XCode, Instruments can be confused between two apps with the same name, but different bundle IDs. (Or perhaps same name and similar bundle IDs.) When I have multiple versions of an app on a device, I often have to delete the extra to get Instruments to connect to the correct app.
So, delete any duplicates of your app and restart the device.