I am getting this error "Error: Duplicate identifier "Data"", when I build the Xcode project.
I am using RTC component and the SQLite3db
my uses clause:
unit FormSincronizaIOS;
{$IFDEF FPC}
{$mode objfpc}{$H+}
{$modeswitch ObjectiveC1}
{$ENDIF}
interface
uses
SysUtils, Types, UITypes, Classes, Variants,
FMX_Types, FMX_Controls, FMX_Forms,
FMX_Dialogs, FMX_Edit,
rtcFMX_GUI, // IMPORTANT!!! handle Thread.Synchronize() using a FMX Timer.
rtcInfo, rtcConn,
rtcDataCli, rtcHttpCli,
rtcCliModule, rtcFunction,
rtcDB, DB,
FMX_Layouts, FMX_Memo
{$IFDEF FPC}
,iPhoneAll , SQLite3db, SQLite
{$ELSE}
,SQLiteTable3
{$ENDIF} ;
The error is on the procedure declaration:
procedure RtcResult1Return(Sender: TRtcConnection; Data, Result: TRtcValue);
I am stucked on that, I don't know if this is something on FPC or Firemonkey installation. Maybe something on my uses clause.
The building error messages:
Assembling (pipe) /Users/josecarlosdacunhajunior/Library/Developer/Xcode/DerivedData/AbsolutIPad-fkdfgklijxqabzdpkemlpcjtdfik/Build/Products/Release-iphonesimulator/AbsolutIPad.app/rtcCliModule.s
Compiling /Users/josecarlosdacunhajunior/Desktop/iPad/rtcDB.pas
Assembling (pipe) /Users/josecarlosdacunhajunior/Library/Developer/Xcode/DerivedData/AbsolutIPad-fkdfgklijxqabzdpkemlpcjtdfik/Build/Products/Release-iphonesimulator/AbsolutIPad.app/rtcDB.s
FormSincronizaIOS.pas(49,56) Error: Duplicate identifier "Data"
FormSincronizaIOS.pas(68,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1