Lazarus

Programming => Operating Systems => iPhone/iPad => Topic started by: simonsayz on September 20, 2015, 01:57:16 pm

Title: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simonsayz on September 20, 2015, 01:57:16 pm
Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]

Basic Tutorial for Clean Installation

Ref. http://blog.naver.com/simonsayz/220485321971

Tested : iOS 9.0,9.1, XCode 6.4, 7.0, 7.1, OS X 10.10.5, 10.11.1
             Simulator / Devices - iPhone 5 (32bit) , iPad Air2 (64bit)

Warning : Building FPC on XCode 6.4 (and update XCode 7.0 or 7.1)

Always Thanks.

Simon,Choi
Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: johnya on September 22, 2015, 07:40:25 pm
When I compile my project to iOS (ARM) with Xcode 7.0 and official release of FPC 3.0.1, I get the exactly same type of errors as in the above blog post.

Code: [Select]
error: instruction 'fcmpe' can not set flags, but 's' suffix specified
        fcmpes  s0,s2

Compilation gets no errors for ARM64, iPhoneSim and iPhoneSimX64 architectures. Is there any solution to silence that error, other then (possibly) downgrading to Xcode 6? Thanks!
Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simonsayz on September 23, 2015, 03:19:58 am
Hello, johnya

This issue is under discussion.

Please Ref.
Free Pascal Mailing List - MacPascal

Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simonsayz on September 29, 2015, 03:32:07 pm
Now It works. ( svn r31875 ~ )

Thanks to Jonas Maebe.

Ref. http://blog.naver.com/simonsayz/220485321971

Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simon on January 25, 2016, 06:27:11 pm
Hi -

Has anyone managed to get FPC working with iOS 9.2? I'm trying but am unable to compile the generated iPhoneAll.pas. I get the following error:

Free Pascal Compiler version 3.1.1 [2016/01/25] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Darwin for ARM
Compiling iPhoneAll.pas
Compiling DefinedClassesCoreFoundation.pas
Assembling (pipe) DefinedClassesCoreFoundation.s
Compiling DefinedClassesSecurity.pas
Assembling (pipe) DefinedClassesSecurity.s
Compiling DefinedClassesFoundation.pas
DefinedClassesFoundation.pas(193,25) Fatal: Syntax error, ">" expected but "=" found

regards

Simon
Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: skalogryz on January 25, 2016, 08:44:07 pm
works perfectly fine.

You probably want to give more information, such as - where did you get the headers from.
Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simon on January 25, 2016, 09:10:46 pm
Some additional info:

Mac OS X : 10.11.3
Xcode : Version 7.2 (7C68)
iPhoneOS : 9.2

Has this combination worked for anyone?

I have been following the instructions given by simonsayz : http://blog.naver.com/simonsayz/220485321971

regards

Simon
Title: Re: Test on [FPC 3.1.1 , OS X 10.10.5 , iOS 9.0 , XCode 7.0]
Post by: simon on May 25, 2016, 09:26:52 am

I generated the headers. Does anyone have headers which work for iOS 9.2 or greater?

Simon