Open felixtool opened 7 months ago
Regarding the error "Duplicates not allowed" my ticket #25 may be just that: a duplicate ;-) You could check, if it helps to get your header file translated.
I'm not seeing these errors with the current Octoid code when performing an import for the Foundation framework for iOS, using v14.0.0 of libclang.dll. There are however known issues with importing this framework - if there are types not available in iOSapi.Foundation.pas (that ships with Delphi) that you wish to import, you may need to just extract them from the erroneous import and use them in your code.
If you're still unable to perform an import, I'll do one (from which you can extract the required types) and add it to this repo
I've filed this issue related to the erroneous import problem
I've pushed a fix for the duplicates issue
We would like to translate Objective-C headers into Delphi code. To achieve this task, we plan to use the Octoid tool developed by you. The environment is as follows: Operating System: Windows 11, RadStudio 11.3, LLVM 10 64bit. After installing LLVM 10.0 and compiling the UI App under RadStudio 11.3, we followed the steps exactly as explained in the “Intro Into Octoid” video. First we tried the BackgroundTasks framework, but it has the same issue as f.e. the Foundation framework.
The “Output” is:
Using arguments: -isystemC:\Users\mijomijo\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.4.sdk\usr\include\ -isystemC:\Program Files\LLVM\lib\clang\10.0.0\include -FC:\Users\mijomijo\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.4.sdk\System\Library\Frameworks\ -FC:\Users\mijomijo\Documents\Embarcadero\Studio\SDKs\iPhoneOS16.4sdk\System\Library\Frameworks\ -x objective-c -ferror-limit=50 -target arm-apple-darwin10 Parsing header files...