Cannot compile for iOS

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
jens.mertelmeyer
Newbie
Newbie
Posts: 8
Joined: Fri Nov 13, 2015 12:00 am

Cannot compile for iOS

Post by jens.mertelmeyer » Thu Oct 13, 2016 9:10 am

Hi there.

I have "RAD Studio 10.1 Berlin with Update 1" installed. And, of course, "TeeChart 2016.18.160504 Pro" for VCL/FMX.

I cannot deploy to iOS. I guess this is because "Update 1" for RAD Studio came out after TeeChart has been updated for the last time:

Windows 32
WORKS

Windows 64
WORKS

Mac OSX
WORKS

Android
WORKS

ios Simulator
WORKS

iOS Device (32 or 64 Bit) =>
[DCC Fatal Error] Unit1.pas(7): F2051:
Unit FMXTee.Canvas was compiled with a different version
of System.Rtti.TRttiContext


Is there any workaround I could try?


I also have the sources for TeeChart Pro, but I don't really feel comfortable with recompining myself. I'd like to avoid this and I'm not sure if that's going to help at all or if the problem is elsewhere. Please advise

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot compile for iOS

Post by Yeray » Thu Oct 13, 2016 10:41 am

Hello,

I've just tried to build and deploy a new application with a simple TChart to iOS Simulator and it worked for me without problems with TeeChart Pro v2016.18.
I've tried it both with the binary and the source code versions.

I've also recompiled TeeChart Pro v2016.18 SourceCode version for RAD 10.1 Berlin Update 1 using TeeRecompile tool included and found no errors:
TeeRecompile_2016-10-13_12-09-33.png
TeeRecompile_2016-10-13_12-09-33.png (50.14 KiB) Viewed 33507 times
jens.mertelmeyer wrote:Unit FMXTee.Canvas was compiled with a different version
of System.Rtti.TRttiContext
Check the paths in your IDE for the iOS simulator platform and test it in a new simple project.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jens.mertelmeyer
Newbie
Newbie
Posts: 8
Joined: Fri Nov 13, 2015 12:00 am

Re: Cannot compile for iOS

Post by jens.mertelmeyer » Thu Oct 13, 2016 10:46 am

First of all, thank you very much for your quick reply.

I have copied some "PrivateFrameworks" folder from the "SDKs\iOS Simulator" folder to the "SDKs\iOS 10.0" folder and it seems to be working fine on iOS 32 Bit now. I even got past a sample project and now have my "real" application with TeeChart Pro on an iOS device :mrgreen:

The error only persists for iOS 64 bit. iOS Simulator has always worked flawlessly.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot compile for iOS

Post by Yeray » Fri Oct 14, 2016 2:00 pm

Hello,
jens.mertelmeyer wrote:The error only persists for iOS 64 bit. iOS Simulator has always worked flawlessly.
I've done some extra tests and it seems to work fine for me in a 32bit iOS device.
I'll try to get access to a 64bit iOS device to do the remaining tests here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot compile for iOS

Post by Yeray » Mon Oct 24, 2016 7:46 am

Hello,
Yeray wrote:I'll try to get access to a 64bit iOS device to do the remaining tests here.
We did a test in an iOS 64 bit device here, an iPhone 6, and the latest sources seem to work fine for us here.
We are preparing installers for the v2016.19 and we hope to publish it in a couple of days.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jens.mertelmeyer
Newbie
Newbie
Posts: 8
Joined: Fri Nov 13, 2015 12:00 am

Re: Cannot compile for iOS

Post by jens.mertelmeyer » Mon Oct 24, 2016 9:20 am

Cool, that's good to hear. Many thanks.

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Thu Oct 27, 2016 8:31 pm

Hi
I have the same problem, even with the latest update installed
Berlin with update 1
error is
F2051 Unit FMXTee.Canvas was compiled with a different version of System.Rtti.TRttiContext

when you highlight to compile iOS64 bit iphone 6.1
(the 64 bit I would presume you be needed to compile succesfully for the universal app requirements)
thanks
Brian

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Thu Oct 27, 2016 11:57 pm

just to note that I do have the source version (i,e no treerecompile etc

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Fri Oct 28, 2016 2:10 am

another key that might help is I went straight from Seatle to Berlin 10.1 update 1 (for the .iso installer, i.e with update 1 included for Belin, i.e I did not previously have Berln )

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot compile for iOS

Post by Yeray » Fri Oct 28, 2016 9:21 am

Hello Brian,
weatherdisplay wrote:Berlin with update 1
error is
F2051 Unit FMXTee.Canvas was compiled with a different version of System.Rtti.TRttiContext
Please check the Library path in your "iOS Device - 64 bit" is correct and has no references to previous installations. By default:

Code: Select all

C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX 2016.19\Delphi24\Delphi24.iOSDevice64\Lib
bds_2016-10-28_11-17-56.png
bds_2016-10-28_11-17-56.png (37.55 KiB) Viewed 33388 times
Note "TeeInstalls" is an Envioronment Variable defined in my IDE pointing to where I have the TeeChart VCL installations, because I have many.

Remove any "tee" entry in "Browsing path" and "Debug DCU path":
bds_2016-10-28_11-18-22.png
bds_2016-10-28_11-18-22.png (49.01 KiB) Viewed 33391 times
bds_2016-10-28_11-18-44.png
bds_2016-10-28_11-18-44.png (39.31 KiB) Viewed 33386 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Fri Oct 28, 2016 6:42 pm

Hi
there was no problem with the paths (and no $tee etc)
howerver, did get past the error, by after updating to version 19, I then removed the path to version 18 for the ios64 paths

now though Berlin is giving me another error (and even for a simple project compile to iOS64):
[DCC Error] E2597 ld: file was built for armv7 which is not the architecture being linked (arm64): C:\Users\Brian\Documents\Embarcadero\Studio\SDKs\iPhoneOS6.1.sdk/usr/lib/libiconv.dylib for architecture arm64

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Fri Oct 28, 2016 6:57 pm

I suspect I need to install a later version of iOS SDK
doing that now

weatherdisplay
Newbie
Newbie
Posts: 36
Joined: Mon Oct 24, 2016 12:00 am

Re: Cannot compile for iOS

Post by weatherdisplay » Fri Oct 28, 2016 8:02 pm

OK, that fixed it, using SDK 10.1
but I get a new compiler error
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
(but not with a new project, so I think I will need to start a new project and add my existing iOS project to that, to past that error)

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot compile for iOS

Post by Yeray » Mon Oct 31, 2016 8:18 am

Hello,
weatherdisplay wrote:howerver, did get past the error, by after updating to version 19, I then removed the path to version 18 for the ios64 paths
Good!
weatherdisplay wrote:but I get a new compiler error
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
(but not with a new project, so I think I will need to start a new project and add my existing iOS project to that, to past that error)
I'm not sure if it will make any difference, but have you tried to "clean" the project?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply