Any Mac app (osx) I build crashes immediately after opening on another mac - macos

So basically if I build any app (even the most simple hello world app) in xcode on my dev machine, then copy the "myapp.app" file to another mac, when I open it it appears in the dock for a fraction of a second then.. nothing (they all work on the dev machine).
I'm using Xcode 5.0.2 and both machines are running Mavericks (10.9.1) on 64bit.
Any help? I'm relatively new to building apps for the mac (have done some for ios), so not sure what could be wrong!

Fixed!
I found the issue. For some reason if I copied the app to the non dev machine over my network it wouldn't run, if I airdop/usb etc the file it works fine. Weird.

Related

Docker Desktop for Mac Monterey: pop-up about privilege access to install networking components

I had Docker Desktop installed for Mac Catalina last year, but I haven't used it until today, a day after updating to Monterey (from Big Sur) (I'm on a Mac Intel) when I downloaded the latest Docker Desktop dmg file (~500MB), which had me drag the icon to the folder, which I then chose to replace the existing .app file... but when opening the file (in /Applications), I get this new pop-up:
I've tried to search what this is actually going to do, and I can't tell; I use Cisco AnyConnect VPN sometimes for a project, and I'm afraid there'll be a conflict... but ultimately, I don't know what exactly I'm giving access to or if it's actually necessary. I just want to try Docker with Laravel Sail.
I know macOS over the last several years (since Catalina really) has changed filesystem stuff a lot and I end up going down StackOverflow rabbit holes trying to get things to work, so I'm hoping someone else knows how this works or has made it work and can advise.

"Will damage your computer. You should move it to the Trash" by my own app

Today my Mac showed error message above for my own compiled app. This app worked for years. I slightly changed something, but what's the reason for this? How can I avoid it? There is no danger!
I'm using Xcode 10.15 and OSX 10.15.5.
It runs under XCode, but not standalone.
I found the reason/solution.
XCode may had a problem. I copied all files to another folder and restarted XCode with that new location. After compilation everything worked fine (as before).
Seems to be an internal problem of caches of XCode.
Use sign to run locall could fix this issue for me.

Unable to install Xcode 8.1 on my Windows 10 computer

I've been trying to download Xcode but when I open it nothing happens.
Xcode_8.1.xip
Do I need to us using a Mac to be programming for iOS? I am currently using Windows 10.
Simply, yes, you need to have a Mac, or some other macOS running computer to run Xcode. But...
There is a way to run Xcode on Windows, however it's a bit of work. You can follow a tutorial on the internet like this one to get Xcode working on Windows.
Let it be known that even though Xcode will run on Windows using this, it is definitely not good in quality compared to on a Mac, as there will be lag and unnecessary difficulties that wouldn't be there on Mac.

How to debug an electron app packaged with squirrel that won't start on some computers

I've built an Electron app using the Squirrel packager/update manager.
I've had no issues in building the bundle, targeting Windows 64bits only.
I installed it on my Macbook pro (on a windows 7 x64 dual boot) without trouble. I tested it also on a 64 bit Surface pro 3 (Win 10), and another Win 7 PC. Everything works fine.
I published the app and got a few hundred downloads :half the people that downloaded it has it working, and for the other half it just won't start. The process spawns, then dies a second after. I tried starting it in admin, the admin dialog box won't even show. I tried running it from command line
myapp.exe > out.txt
But out is empty. How can I debug this ?
I was having trouble getting the logs for a production build as well.
My solution was to use electron-log to let the production app write logs to disk while debugging the problem.
You can then access the logs on windows at:
%USERPROFILE%\AppData\Roaming\<app name>\log.log.
Add some logs in your app that will give you insights in where the app crashes.
Don't forget to remove electron-log when you're done debugging and don't need to write any logs to disk any more.
I solved it for many users by building directly on a windows 10 fresh install.
The builds I used before were built on a windows 7. Not sure if it was that, I also have been cleaning the node modules a little bit, so maybe one of the modules I removed was the issue. Anyways, I still do not know of to debug the built exe in this kind of situation. There must be a way to get a log or something when the process kills itself

Icenium / Phonegap Build - how do they create IOS ipa?

I'm currious to know how e.g. Telerik Icenium / Phonegap Build creates IOS ipa files?
Do they use physical mac's for this task or how do they come about this?
Or rephrased: Can I in any way create Cordova ipa files on Windows?
You don't need an actual Mac, just Mac OSX. If you don't feel like buying a mac than you can get a hold of the image of Mac OSX and install it onto your PC using Virtual Machine software. I use VMWare to run MacOSX from my Windows 7 x64 machine.
VM's are a great way to go, the driers can take a bit to setup, but once everything is working it's perfect.
VM's even support ethernet so from within the VM you can browse the web, download mac apps.
Install things like XCode or GameSalad. I suggest researching how to use Virtual Machines.
(I'm part of Icenium team). Yes, we're using physical Mac machine to build your app for iOS.

Resources