What's the recommended XCode to build PPC/Tiger binaries? - xcode

I have an older PowerPC iMac G4 running 10.4 Tiger for which I want to develop an application. I do have a much never Intel Mac Pro currently running 10.8 (and I still have 10.6 and 10.7 installation DVDs) which I could use as the machine to write the code.
I've never done anything with XCode (C# developer by trade), so I'm looking for the path of least resistance/configuration requirement:
Run XCode 2.5 on the PPC Mac running 10.4 - SLOW!
Run XCode 4/5 on my Intel Mac running 10.8 - Can I compile for 10.4/PPC without spending a week setting compiler parameters that I don't understand?
Install 10.6 on my Mac and run XCode 3.2.6 - a lot of extra setup work and an outdated XCode version
Use Xamarin Studio - doesn't do PPC?
The App eventually needs to run on PPC, Intel and iOS, although I'm fine with having separate projects and only a single shared code base.

If this were me, I'd buy an external drive, install a clean copy of MacOS 10.6 on that and then Xcode 3.2.6, which is the last version of Xcode that officially supports PPC development.
You then set your "MINIMUM_DEPLOYMENT_TARGET" for your project to 10.4. You'll also set the supported architectures to i386 & ppc.
The more interesting challenge will be to try to get the same project to build both iOS & Macintosh targets.

Related

How to choose Xcode version, SDK and toolchain to develop for Mac OS X?

Recently I installed mac OS Mojave. Now I starts my way with Xcode. So I have an application for which I use Qt5.5.1, this version was build with deployment 10.7 and sdk 10.10. Also I have another Objective-C application which was build with deployment 10.7 and sdk 10.11. I need to build both apps for minimum Mac OS X 10.7 version with any later versions supported. It is situation. Now questions:
There is a any difference which Xcode use to build?
Which version Xcode is optimal as IDE? AppStore has very negative rating for latest.
There is a any difference which toolchain use? Or I always should use one provided with Xcode?
Should I use the same SDK as SDK used in base library? Or it is free to use latest?
It is ok to use foreign SDK not provided with installed Xcode version?
Now I can build the both applications with latest Xcode and SDK 10.11. Seems no any problem. But I want to be sure that will no any problems to run and use on 10.7. And want to know correct way to decide which Xcode/SDK and when should to use?
P.S. Applications for PC only, no need any iOS support.
You should use the most recent version of Xcode that will run on your Mac and the SDK that ships with that version. Currently the most recent version of Xcode is 10.1, which ships with the macOS 10.14 SDK. By using the 10.14 SDK your app can take advantage of the features introduced in macOS 10.14, such as dark mode. If you build your app with the 10.11 SDK, your app won't be able to take advantage of anything Apple added in 10.12, 10.13, and 10.14. For one thing your app won't look good in dark mode on 10.14.
To support 10.7 in your app, you must set the deployment target for your project to 10.7. The deployment target is the earliest OS version your app supports. You also have to make sure your app doesn't use any technologies or call any functions that were added after 10.7. That means no storyboards, no Swift, and no base internationalization for localizing your app to other spoken languages. Making sure your app uses only things that are available in macOS 10.7 is not easy. That is why many apps support only the most recent version of macOS and 1-2 previous versions.

Qt 4.8.4 - Build machine is 10.8 with Xcode 4.6

Given my build machine is machine is OS X 10.8 with Xcode 4.6 and my Qt version is 4.8.4:
Can I build Qt from source to support 10.6, 10.7 and 10.8? I assume with BASE SDK of 10.6?
or is it possible only under this configuration? 10.6 SDK isn't even in the /Developer tree of the new XCode.
Any advice will be appreciated.
From the docs:
In general, Qt supports building on one Mac OS X version and deploying on all others, both forward and backwards. You can build on 10.4 Tiger and run the same binary on 10.5 and up.
Qt Docs: Developing on Mac.
As a caveat, I've done it before and it does work but you will be best off building and testing on each of the versions of OS X you're deploying on for sanity purposes. In general, it's perfectly fine but there can occasionally be the odd part where it won't work.

How to make a mac application support both 32bit and 64 bit systems

I have created one mac application. It is showing 64bit as system requirement. but the app can run in 32bit systems also.
When I checked the Build Settings of the application. I found:
Valid Architecture : i386 x86_64
and according to my knowledge these are intel based 32/64bit systems. But I want to make my application for all the processor and system 32 and 64bit.
How can I do so?? Should I delete them and resubmit the application?
Mac OS X has run on PowerPC (both 32-bit and 64-bit) and Intel (again, both 32-bit and 64-bit) processors. Mac OS X 10.5 Leopard was the last version of Mac OS X that ran on PowerPC machines. So, if your application targets 10.6 or higher, you can't support PowerPC Macs. For applications supporting 10.5 or lower, it is possible to build a Universal binary that will run on both Intel and PowerPC machines. Xcode 3.2.5 was the last version of Xcode to include support for compiling these Universal binary apps. So, if your really want to target PowerPC machines, you need to install Xcode 3.2.5. The setting you've already found is the correct one. In Xcode 3.2.5 and earlier, it will include the option to build for PowerPC.
(Note: It should be possible to set Xcode 4 up to build for PowerPC too, but installing Xcode 3.2.5 is the easier way to go.)

Build app so it can run on different versions of OS X

I have an app that needs to be run on MAC OS X 10.5,10.6,10.7
I'm using XCode 4.02 and iOS SDK 4.3. My build settings are 10.6 MAC OS X, and Deployment target is 10.5.
Is this the right way to do it, or I should use the Mac OS X 10.5 SDK? I can't find it, I have only 10.6.
Right now my application runs on 10.5, but not properly.
If you are a serious apple developer, you should upgrade to Lion. You should also be using the latest SDK, OSX 10.7 that comes bundled with the latest version of XCode 4.2.X (It's free from the MAC APP Store). If you need to have your app run on previous versions of OSX, the correct way to do this is to set the "Deployment Target" (found in the build settings) to 10.5.
XCode/SDK updates are just like any other software update, they contain bug fixes and more importantly security patches, so you should ALWAYS be using the latest versions.

How to make a Mac app made in 10.6 work in 10.5

I recently made an app on a Mac running OS X 10.6. I now want that app to work on 10.5.x systems. I changed the target build in xcode from 10.6 to 10.5 in the project settings which led to some code changes. But when I try it on 10.5 it just shows a "stop-sign" on the app-icon:
These are my Xcode build settings:
What should I do?
Did you cross-compile your app 32-bit (and ppc if you are supporting PPC 10.5 machines)?

Resources