To use this library on iOS, there are some frameworks, which Delphi should be aware of, but by default isn’t, so you need to perform the following changes in the IDE (you need to do this just once, it will apply to all projects):
- Go to Tools -> Options -> SDK Manager à iOS Device, for each iPhoneOS device:
- Click on any framework (just a click: there is a bug in IDE).
- Click “Add a new path item” image button (top one)
- Set “Path on remote machine” to “/System/Library/Frameworks” or “$(SDKROOT)/System/Library/Frameworks” (same as other frameworks).
- Set “Framework name” to “SystemConfiguration”.
- Click Ok (nothing should be selected in the radio and leave the checkbox unchecked).
- Click “Update Local File Cache” button.
In each project, which is using this library, you need to perform the following changes:
- Go to Project -> Options -> Delphi Compiler à Linking.
- Choose Target “All Configurations – iOS Device platform”.
- Enter the following value in “Options passed to the LD linked” (this should be written as a single line):
For complete compatibility, you should use iOS SDK version 11.2 (download XCode 9.2 from Apple site and install it). After updating your Delphi local libraries, you can restore the latest XCode version (and use the newest compiler, as long as the local libraries come from 11.2.
In addition to this the Receive Push Notifications should be selected within Project Option’s entitlements list, if you want to use push notifications.