I have the following code , created in a new project with Delphi Berlin (10.1):
Procedure Test;
var
vRttiContext : TRttiContext;
vPackages : TArray<TRttiPackage>;
vTypes : Tarray<TRttiType>;
vType : TRttiType;
vPackage : TRttiPackage;
begin
vRttiContext:=TRttiContext.Create;
vPackages:=vRttiContext.GetPackages;
if (vPackages<>nil) then
for vPackage in vPackages do
begin
vTypes:=vPackage.GetTypes;
case vtype.TypeKind of
tkClass : ; //DoSomething
end;
end;
end;
This code works perfectly under Win32 / Win64, Ios32 bits, but not with IOS64.
With Ios64 bits, I get an access violation in the line :
vType:=vPackage.GetTypes
Of course I added "emit RTTI informations" in the compil options.