Title: Firemonkey-IOS Application Xcode building error Post by: Jose Carlos on May 12, 2012, 07:36:55 PM 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: Code: unit FormSincronizaIOS; 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 Title: Re: Firemonkey-IOS Application Xcode building error Post by: D.Tkalcec (RTC) on May 12, 2012, 07:53:58 PM I think your problem might be these FPC-specific compiler directives:
{$IFDEF FPC} {$mode objfpc}{$H+} {$modeswitch ObjectiveC1} {$ENDIF} Normally, all Delphi code is compiled with {$mode delphi} and nothing more. Best Regards, Danijel Tkalcec Title: Re: Firemonkey-IOS Application Xcode building error Post by: Jose Carlos on May 22, 2012, 09:29:07 PM Hi, yes, this worked fine, I got that DEFINE from a sample, so I remove it. Thanks. |