If you wish to leverage iOS frameworks other than those that support is provided for in Delphi, you’ll need to add the path to the framework in the SDK manager.
To do this, make sure PA Server is running on your Mac, and in Delphi click Tools, Options, then under Environment Options, select SDK Manager and select the target SDK:
In the Remote Paths list, select an existing path in the Frameworks category. This is important, as it will ensure the following dialog is set up correctly. Click the “Add a new path item” button in the top right. Fill out the dialog as per the following screenshot. NOTE: CoreBluetooth is just being used as an example here – replace this value with the name of the framework you wish to add :
Ensuring that you leave the radio buttons unselected, and put the appropriate framework name in the Framework Name box, then click OK.
In later versions of Delphi (perhaps from around 10.3.2), the dialog looks like this:
So choose the Framework radio button, in that case.
Click the Update Local File Cache button to copy the framework files from the Mac to the Windows machine. Make sure you click Save once it is done, so that the SDK framework entries are updated.
Now you’ll be able to build your iOS project against the framework you’ve added.
[…] 1- No exemplo que faz acesso ao status da rede/internet/3G, quando utilizado para iOS, faz-se necessário importar o framework "SystemConfiguration" no SDK Manager do Delphi ou C++ Builder. Detalhes de como fazê-lo estão neste post: http://delphi.radsoft.com.au/2013/10/adding-other-ios-frameworks-to-the-sdk-manager/ […]
[…] Contacts permissions. For IOS you will need to go to Tools|SDK Manager, select the IOS SDK, and add the AddressBook framework to the list. Be sure to update the local cache after you do this. This library should also compile […]
hi~
I use XE8 error
[DCC Error] E2597 ld: file was built for i386 which is not the architecture being linked (arm64): C:\Users\Administrator\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.4.sdk/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration for architecture arm64
HI, I now get a linker error
when using Berlin 10.1
when using networkstate
(I have added the Framwork and updated local cache)
Brian
It would help to know what the error actually is, and which platform you’re compiling for, i.e. iOS 32 and/or 64 bit.
There’s a 64-bit version of libReachability.a available for download in the original article: http://blog.delphiworlds.com/2013/11/checking-for-an-internet-connection-on-mobile-devices-with-delphi-xe5/
Hi
Thanks or the reply
I do have the 64 bit file in my project directory.,..as I had it compiling OK in Seattle (iOS 32 and 64 bit)
but the same project is not compiling in Berlin (linker error)
I do notice that have it to not add corebluetooth but to add systemconfiguration
maybe that is the issue?
Brian
oh error is
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
for both iOS 32 and iOS64
adding SystemConfiguration instead of CoreBluetooth fixed it!
happy days
thanks!
Brian
In Delphi 10.2.2 Tokyo I could not delect the radio button for path type. So I was not able to enter a new entry in the section Frameworks.
I found a workaround after adding the record with a wrong path type. Open the registry editor at HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\PlatformSDKs\iPhoneOS11.2.sdk
1. Search the entry number in the REG_SZ entries Mask (e.g. I found my new entered record “SystemConfiguration” in Mask77 > X = 77).
2. Use this number and search the REG_DWORD entry Type (e.g. Type77)
3. Change the value of this type entry to 2 for Framework
I have the following configuration: Delphi 10.4.2 and XCode 13.2.1, compiling apps normally. However, when trying to compile the sample Camera from the Kastri suit, and following the tutorial and adding the VisionKit SDK, I still get the error: “DCC Error] E2597 ld: file not found: /System/Library/Frameworks/Vision.framework/ Vision”. I tried on two different PCs, but got the same error.
Vision and VisionKit are two different frameworks. Please add the Vision framework
Hello. Friend. Did you solved the problem. I am using D 11 and SDK iOS 16.2 and has the same error message.. Thank u!!
It’s possible they added the Vision framework, as per my reply to them. See the instructions in this article (that you commented on). If this does not work, let me know the exact error message you are receiving.
Hello Dave. I can install Vision with success, but now i am having this message below:
[DCC Error] E2597 ld: in ‘C:\Users\bill\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.2.sdk\System\Library\PrivateFrameworks/AVFCapture.framework/AVFCapture.tbd’, building for iOS-arm64 but attempting to link with file (“C:\Users\bill\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.2.sdk\System\Library\PrivateFrameworks/AVFCapture.framework/AVFCapture.tbd”) built for unknown-unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 )
Can you look in the folder it is referencing i.e.
C:\Users\bill\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.2.sdk\System\Library\PrivateFrameworks/AVFCapture.framework
..and see what files are in it? There should be just a file called:
AVFCapture
i.e. not AVFCapture.tbd
It may be that the iOS 16.2 SDK import did not complete properly. In which case you may need to follow these steps:
1. On the Mac, in the ~/PAServer/scratch-dir folder delete any folders starting with: cache-dir
2. On your PC, delete the folder: C:\Users\bill\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.2.sdk
3. In Delphi: remove the iOS 16.2 SDK
4. Re-import the iOS 16.2 SDK
You re the best my friend. Worked 100% for me your solution. Thank you very much!!
Great to hear!