If you want to learn Objective-C, the language for developing apps for macOS and iOS, but you don't have a Mac? Well, there is an out. You can install GCC (GNU Compiler Collection) Compiler for Windows which will let you execute your Objective-C code. To get started quickly all you need to do is download Cygwin: tools which provide a Linux look and feel environment for Windows and also include the compiler for Objective-C and libraries.
Steps to install Cygwin on Windows PC :
Step 1. Download Cygwin setup : 32-bit setup | 64-bit setup
Step 2. Run Cygwin.exe,Click Next.
Step 3. Select "Install from Internet", Click Next.
Step 4. Choose root directory, Click Next.
Step 5. Choose Package installation directory, Click Next.
Step 6. Choose Direct Connection, Click Next
Step 7. Select any mirror site
Step 8. Certain packages will be downloaded from the next, may take a min.
Step 9. Expand Devel and select gcc-objc, gcc-objc++, gdb and make, Click Next
Step 10. Click Next
Step 11. This Step will take some time (needs patience here!)
Step 12. That's it, now you will have the "Cygwin Terminal" icon on your desktop. Let's try running a sample code to see if all is fine. You need to place your "hello world" program under the "home/User/" dir where Cygwin is been installed.
/* Test program */
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello World!!");
return 0;
}
Comments:
- Is this relevant in 2020? I don't think so... why can't you just buy a Macbook and learn to program for macOS or iOS, Swift is the programming language you need to look for.
anon 10 July 2020 11:21:13 GMT
- Further comments disabled!
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. - Docker
- Todays Apple Spring Loaded Event Live Updates - Apple
- How to install Spring CLI using Mac Terminal - HowTos
- Java 8: Predicate negate() default Function Example - Java
- How to Open a New Notebook in Google Colab - Google
- Share Image and Text on Instagram from Android App using Share Dialog - Android
- ls command sort by file size [Linix/UNIX/macOS/bash] - Linux
- Align left align text in Bootstrap - Bootstrap