Launching exported .app (from archive) does nothing OSX - macos

I've followed the directions from: https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html
I am able to run and archive the application, but when I attempt to open the application (double clicking and control clicking -> open) Nothing happens. The app doesn't seem to run and I get no error messages.
Any direction on to what to do would be great, even if I could get an error message that would be useful.
Thanks.

Related

App only fails when running from finder - How to find error?

I've got a MacOS app, written in Python, using Tkinter, and built into a MyAppName.app bundle with pyinstaller.
When I run open -a MyAppName in terminal, everything works, great.
When I run /path/to/app/dist/MyAppName.app/Contents/MacOS/main, it works and I see terminal output. Great!
However, when I double-click on MyAppName.app, it bounces around in the icon tray a bit then disappears. If I change the app to just open a message box, it works, so I know it's something about the app itself that's wrong.
How can I debug this? Is there some way I can see the logs from the app after opening it in finder, so I can find out what is crashing?

How do I access Xcode crash logs when attempting to "Validate App" or "Distribute App"?

I'm trying to submit a build to TestFlight. I created an archive by choosing "Generic iOS Device" Product > Archive. It then opened up the Window > Organizer.
There I'm presented with two options:
Distribute App
Validate App
If I choose Validate App, Xcode crashes immediately, and I can't see any error message. If I choose Distribute App > iOS App Store > Upload, it says "analyzing signature" and crashes immediately again (no error message).
If I try to Validate a different app, it succeeds. Thus there is something wrong with the set up of this project. However, because it instantly crashes and doesn't show an error message, I can't know what that is in order to resolve it.
Is there a way to view crash logs anywhere so I have a better understanding as to how to fix this problem?
I tried running on Xcode 10.1 and Xcode 10.2 beta 4. Both have the same behavior.
Method #1:
You can check all crash logs from the Console app
Applications > Utilities > Console
or
Spotlight Search > Console
Click on User Reports in the sidebar and open the crash logs starting with the Xcode
Method #2:
The actual files are located here:
~/Library/Logs/DiagnosticReports/
Paste this in Finder > Go > Go to Folder

An error occured while attempting to download the container from application Xcode

While running my app on iPhone, I needed to view the database contents. So I selected Devices in Xcode and chose my device. Thereafter, I selected my app and clicked on the Settings button which shows 3 options: Show container, Download container and Remove container. On clicking the Download container option, I was asked where I want to store the container. After selecting the location, I am getting the following error: An error occured while attempting to download the container from application "MyApp".....
On selecting Show container option, a list opens up but there is no file inside it.
The same problem occurs with other apps too that I run using Xcode.
Any ideas as to why this happens and how to fix it?
Restarting the device in question worked for me. Hope it helps!

Why iPad app build fails in xcode with a error creating temporary directory?

I'm using Xcode 4.6, and trying to run a simple app in iPad 6.1 Simulator, build fails with error message
mkdir: /Users/chakradar.r/Library/Developer/Xcode/DerivedData/dino-eddkhtnsnrlgwjgqnaceabrxcjsh/Build/Products/Debug-iphonesimulator/dino.app/wwwof: File exists
that is a temporary directory, i even tried building it after removing the directory, it again fails with a similar message.
Once my Xcode went unresponsive so I force quit Xcode while this application was running, I suspect that could be the reason for the failure. Error message is not helping, how can I fix this situation?
While I don't know the exact reason you're getting this error. Here are some generic steps that you can try in these situations:
In the simulator app go to 'iOS Simulator' (in the top menu), choose 'Reset Content and Settings...'
In Xcode go to 'Product' then 'Clean'
In Xcode go to 'Window' then 'Organizer', click on the 'Projects' icon on the top, find your project in the list on the left and click 'Delete...' beside the 'Derived Data'
Restart your Mac (Yes, sometimes this really resolves some issues)
You can try any of these options individually or all of them.
I too even don't know the exact root cause but
Killed both Xcode and Simulator and ran the app again and it started working for me.

Replaced Finder kiosk

I am trying to make a kiosk, I actually wanted to lauch my app before the Finder got launched, I wrote the following command:
defaults write com.apple.loginwindow Finder ~/Desktop/myapp.app
and it worked, but now I have a huge issue, my Finder wont get launched at all, instead everytime my application is launched when I press the Finder, Before I was getting erroR -10810 but I fixed that. I tried reversing the process but it isnt working. My mac is useless and I cant get to my files.
Target is to reverse the process and make my finder works again as normal

Resources