UniDac components are grayed out for iOS devel

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jamft
Posts: 5
Joined: Sat 30 Jun 2012 06:24

UniDac components are grayed out for iOS devel

Post by jamft » Sat 30 Jun 2012 06:34

I previously had the trial version of UniDac 4.2 installed on Embarcadero RAD Studio XE2, and did not have access to the UniDAC components as they were grayed out in the tool Palette. So I upgraded to the source version, thinking this would resolve the problem, but the components are still grayed out. I have deinstalled and re-installed the product several times. No success. Windows and OS X development works fine, just iOS does not. I installed the pre-compiled version, not manually from source. I tried to install from source as well, but the instructions are ... a little vague.

josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

Re: UniDac components are grayed out for iOS devel

Post by josecarlos » Sat 30 Jun 2012 14:53

This is not a UniDac installation problem, but all third party components will be grayed out due an Delphi XE2 FMX issue.

I found a way to fix this on the Quality Central,( QC Report #:100947 ) workaround here:

The only way I've found to get around this problem was to delete
the ".dproj" file of the FireMonkey iOS Project and then open the ".dpr"
file to have the IDE generate a new ".dproj".

After that, all my components are available for use in FireMonkey iOS Projects (they are no longer greyed-out), without making any changes to the package or component source code.

jamft
Posts: 5
Joined: Sat 30 Jun 2012 06:24

Re: UniDac components are grayed out for iOS devel

Post by jamft » Sat 30 Jun 2012 15:49

Thank you so much Carlos, that was very helpful. I owe you an Espresso :D

It only seems to affect iOS firemonkey, because this did not happen when wrote an application for OS X.

The next thing that I noticed is that live bindings is not available the way it was in OS X. Any thoughts on that one?

Thank you very much for your help.

josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

Re: UniDac components are grayed out for iOS devel

Post by josecarlos » Sat 30 Jun 2012 16:00

You are welcome.

You are right, livebings isn't available on IOS.
So you need to load data manually.

Compiling on the xcode side, you will need to copy the UniDac source code to the same project folder ( the dirty way ).

Let me know if you got it working on the device (not on the IPad/iPhone simulator ).

jamft
Posts: 5
Joined: Sat 30 Jun 2012 06:24

Re: UniDac components are grayed out for iOS devel

Post by jamft » Sat 30 Jun 2012 17:13

Hello Carlos

I am reading your forum entry and I am getting until the 'Illegal assembler style specified "INTEL"' part. I don't see that this issue was ever resolved. Have you actually ever managed to get UniDAC working on an iPhone? Or is this an ongoing issue?

josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

Re: UniDac components are grayed out for iOS devel

Post by josecarlos » Sun 01 Jul 2012 12:28

I am waiting they fix it, but I have no news from the support. I reported this issue on 10th May,I think this will take longer than I can wait.

I also bought UniDac with sources only to create IOS app like you, my applications use IBDAC and dbExpress.

jamft
Posts: 5
Joined: Sat 30 Jun 2012 06:24

Re: UniDac components are grayed out for iOS devel

Post by jamft » Tue 03 Jul 2012 02:08

I am talking to support about this right now, I am sure it will be resolved eventually. Hopefully it won't take too long. Now that there is two of us raising the issue, perhaps they will pay it more attention. I am not sure how many people use UniDAC to code for iOS via XE2. Probably not too many.

BTW: Just on a side note, not all third party components are greyed out. I installed the iPhone iOS components like the gps and dialler and accelerator, and they all show up fine. It must be something related to UniDAC.

Post Reply