Reputation: 273
After deploying my app to apple Store and testing it with "TestFlight" the app won't open an SQLConnect connection, I get an external exception (434C4E47432B2B00). But if I deploy the app directly to my devices (iPhone, iPad, simulator) the application works just fine. I am using Delphi Seattle, MIDAS, Datasnap. Don't know if I am missing a setting or a uses before deploying.
I tried adding Datasnap.midas to my uses with no success. Not sure if I should use Midas or Midaslib, if I use Midaslib I get an error when I compile the project. The same app was published and working fine with Delphi xe6. Please help!
Upvotes: 0
Views: 328
Reputation: 38723
Sounds like you are connecting to an HTTP server that doesn't have SSL enabled. iOS 9 requires that all connections use HTTPS. There is a work around though.
Change your client plist file (Project.plist) Go to the bottom of the file and insert the following text above the last /dict tag:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
Upvotes: 0