I am indie app developer and poor. therefore I only have one Mac.
I am a pretty newbie regarding to programming.
I need to debug my Cocoa app on different versions of OS X. I use macOS sierra(10.12) on my iMac, and I have installed El cap(10.11) on Vmware. Also i am going to install 10.10 as well
Xcode 8.1 is running on Sierra and I have no idea to target the El Cap on vmware. How can i let Xcode connect with the one on virtual machine so that the app launches on El Cap on vmware?
I am doing this because I really need to debug without copying the code to El cap, Yosemite and the ones in the future.
My app was written in Swift 3 and Xcode 8 and I cannot use any of them on Yosemite. After my app was crashed at start in testing, I had to install Xcode 7.2 and convert all my code to Swift 1.x (Or 2.x whatever) for debugging on Yosemite. (the crash occurred on Yosemite because I did not override the nibName variable by the way). And at some point I had to switch back to Swift 3. I did this via multi-booting over and over.
macOS, Swift and Xcode will be upgraded again in the future so I need a solution before going further.
I hoped there's a way to debug like we do in iOS programming. but maybe not in virtual machines.
The only way I found was using a standalone LLDB to get logs in Terminal in VM by copying and paste and launching the product file from the build folder.
I still don't know how to use a standalone LLDB that's something I have to learn new.
That might be enough to debug by printing lots of text lines in terminal.
but I am not familiar with those kinds of things.
Is there anyway to let Xcode targeting the one in VM?
I Also failed to get an LLDB remote server in VM. I found some articles for jailbroken iOS devices or kernel(I don't know what kernel is) but not for Cocoa apps.
Does anyone have a solution for this?
I am a pretty newbie regarding to programming.
I need to debug my Cocoa app on different versions of OS X. I use macOS sierra(10.12) on my iMac, and I have installed El cap(10.11) on Vmware. Also i am going to install 10.10 as well
Xcode 8.1 is running on Sierra and I have no idea to target the El Cap on vmware. How can i let Xcode connect with the one on virtual machine so that the app launches on El Cap on vmware?
I am doing this because I really need to debug without copying the code to El cap, Yosemite and the ones in the future.
My app was written in Swift 3 and Xcode 8 and I cannot use any of them on Yosemite. After my app was crashed at start in testing, I had to install Xcode 7.2 and convert all my code to Swift 1.x (Or 2.x whatever) for debugging on Yosemite. (the crash occurred on Yosemite because I did not override the nibName variable by the way). And at some point I had to switch back to Swift 3. I did this via multi-booting over and over.
macOS, Swift and Xcode will be upgraded again in the future so I need a solution before going further.
I hoped there's a way to debug like we do in iOS programming. but maybe not in virtual machines.
The only way I found was using a standalone LLDB to get logs in Terminal in VM by copying and paste and launching the product file from the build folder.
I still don't know how to use a standalone LLDB that's something I have to learn new.
That might be enough to debug by printing lots of text lines in terminal.
but I am not familiar with those kinds of things.
Is there anyway to let Xcode targeting the one in VM?
I Also failed to get an LLDB remote server in VM. I found some articles for jailbroken iOS devices or kernel(I don't know what kernel is) but not for Cocoa apps.
Does anyone have a solution for this?