Delphi uses FPC 2.6.0 to do the iOS compilation.
I have Xcode 4.3.1 installed (no idea why the version is not displayed in the list).
FPC 2.6.0 doesn’t recognize it. Apparently it only works with Xcode up to 4.2.
Apple only offers XCode 4.3.1 for Lion.
So I’m asking you – can I really use Lion to compile FireMonkey iOS applications? Doesn’t seem so.
I left XCode 4.2 on my dev machine and did not do any upgrade, but I m hardly imagen how EMRO can push FMX development for iOS without using latest Apple's dev chain!
ReplyDeleteI couldn't do it as I have a brand new Mac Mini that came with OS X 10.7 preinstalled :(
ReplyDeleteOn developer.apple.com i ve found a section with XCode 4.2.1 and 4.2 for Lion.
DeleteIt requires dev account, but you can register for free Safari dev program to get access! Then go to XCode4 section and look for "Addition downloads" link - then browse for 4.2.1 and 4.2!
Proof: _http://pix.am/ubWe/
Got to the Mac dev center and then head down for Additional downloads. In the list of all downloads you can find the older builds of Xcode like 4.2.1 for Lion. This should provide you with the correct tools.
ReplyDeleteThanks! I was looking in iOS dev center and there are no additional downloads, just Xcode 4.3.1. Never crossed my mind to check the Mac dev center too :(
ReplyDeleteBob figured it out in his blog entry:
ReplyDeletehttp://www.bobswart.nl/Weblog/Blog.aspx?RootId=5:5267
But of course! Now I remember reading that when Dr. Bob published it! Thanks!
DeleteTry to go to connect.apple.com. There you can download XCode 4.3.x full, not as App. In this file all dev tools included.
ReplyDeleteThat works perfectly, thanks!
DeleteGabr,
ReplyDeleteIs your interest in IOS development a sign of OTL becoming multiplatform? Does FPC 2.6 support all the language elements OTL requires?
No, OTL will definitely not run on FPC. Maybe it will support iOS when we get the native compiler, but it's too early to tell.
ReplyDeleteOk, thanks.
ReplyDeleteFirst, flush your XCode:
ReplyDeletesudo /Developer/Library/uninstall-devtools –mode=all
Then backtrack and install the version supported.
I've managed to install FPC 2.6.0 on OS X Lion 10.7.3 and XCode 4.3.2. The missing component was XCode Command Line Tools. Isn't that the component which ambiguously mentioned in http://17slon.com/blogs/gabr/files/How-do-you-build-Firemonkey-iOS-applicat_7824/image_4.png ?
ReplyDeleteI presume so, yes.
DeletePlease post a picture of the Xcode components preferences of yours.
DeleteI believe I don't have iOS 4.3/5.1 SDK installed http://i47.tinypic.com/vz8tnc.png as FireMonkey-iOS-XE2.pkg installer says http://i46.tinypic.com/fxgjlg.png
Even more, xcode_432_lion.dmg bundle does contain iOS 5.1 SDK:
DeletePosted Date: March 21, 2012
Build: 4E2002
Included iOS SDK: iOS 5.1
Included Mac SDK: Mac OS X 10.7
(see https://developer.apple.com/devcenter/ios/index.action)
but FireMonkey-iOS-XE2.pkg doesn't recognize it. It might happen because Xcode 4.3.2 is now bundled into Xcode.app and its installation is a mere copying under Applications folder.
So the only straightforward solution is to install Xcode 4.3.1 under Developer folder and iOS SDK 5.1 separately, right?