I've created my first relatively simple Swift Mac OS app, it works fine on my development machine when running inside of Xcode and just natively outside as well. However when I run it on any other Mac, it crashes on launch with:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
The other systems I've tried it on are running OS X 10.10, but in my project I've specifically targeted 10.10 for the build. Because the app runs fine on my machine, my initial thoughts are focused on code signing, but I've run the Archive command through Xcode and done the complete bundle validation with no probs. Any thoughts on next steps to try?
I'd recommend that you attach the debugger to the application on your non-dev machine. This can be achieved by running lldb <path to app> and then process launch when the prompt is ready again. This will work as a standard debugger and should help you understand your error more completely and debug your issue.
There is no catch all for this sort of issue as to why it wouldn't run on another machine and so using the debugger to get information on the issue is the best choice in this situation.
Related
Having an issue with my app crashing if a local dependency is missing. I'm building a macOS application -- using Swift 5 in Xcode -- that uses a library, which then wraps a C++ library (librdkafka). If I install librdkafka using homebrew everything works as expected with no issues.
If I uninstall librdkafka however, the application crashes before even opening, and a window is displayed explaining why it crashed: because it cannot find librdkafka (as expected since I purposefully uninstalled librdkafka)
I understand why this is crashing, but what I am trying to figure out is if there is a way to gracefully handle the scenario where librdkafka does not exist on the local machine?
I implemented a function to check the file itself exists and I call it in applicationWillFinishLaunching in the delegate, but the app crashes before that function is called, so thats no good.
My second thought would be to maybe fork the repo and tweak the imports here: https://github.com/IBM-Swift/SwiftKafka/blob/master/Sources/Crdkafka/shim.h -- but I am not 100% sure if this is the best way.
Thanks!
I am supporting a user who is trying to use Canopy. Every time she starts the program the kernel crashes. I installed the program myself and viewed another install which work fine. I believe her issue is that the .ipython and .matplotlib foders are not getting installed in her home directory.
The same issue arises with the 32-bit client after all updates are applied.
I'm trying to deploy my first Windows Phone 8 app to my brand new Lumia 920, after getting everything up and running on the emulator, but I'm running into the following error during deployment:
1>------ Deploy started: Project: AudioFilteringPhone, Configuration: Debug ARM ------
1>Deploying C:\Users\<username>\Documents\Visual Studio 2012\Projects\AudioFiltering\AudioFiltering\Bin\ARM\Debug\AudioFiltering_Debug_ARM.xap...
1>Connecting to Device...
1>Optimizing for device...
1>Installing the application...
1>Deployment of application to device failed.
1>Error writing file '%FOLDERID_SharedData%\PhoneTools\11.0\Install\{29b31259-9af9-47a5-9891-c3098315d3d8}\AudioFiltering_Debug_ARM.xap'. Error 0x80070003: The system cannot find the path specified.
If I manually try to deploy using the Deployment tool, I get the same error. Does anyone know what the cause of this is and how to alleviate it? This happens even if I just start a new WP8 app and immediately try to deploy it, so it's something wrong with my environment, not my application configuration.
I had exactly the same problem, but solved it by simply rebooting the phone. No software updates were required.
It turns out that there were software updates that needed to be installed. If anyone knows a way to find out the names of the updates applied, I will post them here, otherwise all I can say is that I had to update to OS version 8.0.10211.204.
This also can be because of wrong USB cable or port. I have a long cable for charging which works with android devices, but doesn't with WP.
Or maybe using another USB port helped.
I got error when I goes to install my application in iPhone/iPad.
Application running properly in simulator.
Error message
Couldn't register com.spaceo.pushnotificationtest with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger
Okay your device was struck in debug mode on your previous installation due to some error. You need to restart your device and clean the project in xcode to install application in your device
This generally means that another instance of this process was already running or is hung in the debugger This statement clearly states what was the error so restart your device and try again
I also get this error, restarting my device solves the problem.
For debugging purposes, I run the application using xcode and the UI freezes. If I run the app independently, the application works fine.
Could piping of NSLog statements to the console cause my application to hang?
This bug has been fixed with the release of Xcode 4.4.1. See the following bug report for description:
http://openradar.appspot.com/11972490