title: how to make HTTPS calls on the iOS simulator Delphi seattle
body: <p>OpenSSL not working for iOS Simulator in Delphi DX
  Using info at:
  <a href="http://blog.marcocantu.com/blog/using_ssl_delphi_ios.html" rel="nofollow">http://blog.marcocantu.com/blog/using_ssl_delphi_ios.html</a>
  <a href="http://docwiki.embarcadero.com/RADStudio/Seattle/en/OpenSSL" rel="nofollow">http://docwiki.embarcadero.com/RADStudio/Seattle/en/OpenSSL</a>
  <a href="https://plus.google.com/100777187605111792758/posts/SPnHdXvTTNu" rel="nofollow">https://plus.google.com/100777187605111792758/posts/SPnHdXvTTNu</a></p>
  
  <p>I can get it to work on devices, but not on the iOS simulator. Same URL works when I use a TWebbrowser.navigate, but not with INDY of course.. See below, and possibly offer suggestions on <strong>how to make HTTPS calls on the iOS simulator</strong> ! This worked before in earlier versions of Rad Studio ( XE4, XE5 ) but hasnt since XE7 if my memory has served me right. </p>
  
  <p>I have these files in my usr/lib folder:</p>
  
  <pre><code>libcrypto.0.9.8.dylib
  libssl.0.9.8.dylib
  </code></pre>
  
  <p>Here is my uses </p>
  
  <pre><code>uses
    IdSSLOpenSSL,
    {$IF Defined(IOS) and Defined(CPUARM)}
      IdSSLOpenSSLHeaders_Static,
    {$ELSE}
      IdSSLOpenSSLHeaders,
    {$ENDIF}
  ...
  </code></pre>
  
  <p>Here is my onCreate for the main form</p>
  
  <pre><code>procedure TmLoginForm.FormCreate(Sender: TObject);
  var
    t:string;
  begin
    IdOpenSSLSetLibPath('/usr/lib/');
  ...
  </code></pre>
  
  <p>Here is part of a function that I use, where on the last line an exception is thrown</p>
  
  <pre><code>function ParseGroups(OnlyUserCreated:boolean):integer;
  var
    IdHTTP          :TIdHTTP;
    HTML            :String;
    JSON_Groups     :TJSONObject;
    Group           :uGroup;
  begin
    result:=0;
    HTML:='';
    IdHTTP:=TIdHTTP.Create(nil);
    IdHTTP.HandleRedirects:=false;
    try
      HTML:=IdHTTP.Get(URL_Host+ACCESSTOKEN);
  </code></pre>
  
  <p>Error is: 'Could Not Load SSL Library'</p>
  
  <p><code>ShowMessage(IdSSLOpenSSLHeaders.WhichFailedToLoad);</code> shows a blank message</p>
  
  <p>Update:</p>
  
  <p>adding </p>
  
  <pre><code> IdSSLOpenSSLHeaders.Load;
  </code></pre>
  
  <p>after setting the path now causes the whichFailedToLoad say: 'Failed to Load /usr/lib/libcrypto.'</p>