Unit 'FMX.WebBrowser.Delegate.Cocoa' not found

1k views Asked by At

I have a multidevice application developped with Rad Studio in Delphi, all work with Android, but when I want to execute the project on iOS, I have this error.

This is the output :

Build started 08/10/2020 15:14:20.


Project "E:\Code\APELMOBILE\APEL_MOBILE_CLIENT.dproj" (Make target(s)): Target _PasCoreCompile:

    c:\program files (x86)\embarcadero\studio\21.0\bin\dccios32.exe -$D0 -$L- -$Y- --no-config -M -Q -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults -DRELEASE;AMC -E.\iOSSimulator\Release -I"c:\program files (x86)\embarcadero\studio\21.0\lib\iOSSimulator\Release" -LEC:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl\iOSSimulator -LNC:\Users\Public\Documents\Embarcadero\Studio\21.0\Dcp\iOSSimulator -NU.\iOSSimulator\Release -NSSystem;Xml;Data;Datasnap;Web;Soap; -O"c:\program files (x86)\embarcadero\studio\21.0\lib\iOSSimulator\Release" -R"c:\program files (x86)\embarcadero\studio\21.0\lib\iOSSimulator\Release" -U"c:\program files (x86)\embarcadero\studio\21.0\lib\iOSSimulator\Release" --ios-version-min:10.0 -NBC:\Users\Public\Documents\Embarcadero\Studio\21.0\Dcp\iOSSimulator -NO.\iOSSimulator\Release --sdk-version:14.0  APEL_MOBILE_CLIENT.dpr   
    E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: F2613 Unit 'FMX.WebBrowser.Delegate.Cocoa' not found.
    E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Delegate.Cocoa' is used by 'FMX.WebBrowser.Delegate.iOS'
    E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Delegate.iOS' is used by 'FMX.WebBrowser.Cocoa'
    E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Cocoa' is used by 'FMX.WebBrowser'
    E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser' is used by 'FMX.TabControl'
Done building target "_PasCoreCompile" in project "APEL_MOBILE_CLIENT.dproj" -- FAILED.
Done building project "APEL_MOBILE_CLIENT.dproj" -- FAILED.
Build FAILED.
E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: F2613 Unit 'FMX.WebBrowser.Delegate.Cocoa' not found.
E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Delegate.Cocoa' is used by 'FMX.WebBrowser.Delegate.iOS'
E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Delegate.iOS' is used by 'FMX.WebBrowser.Cocoa'
E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser.Cocoa' is used by 'FMX.WebBrowser'
E:\Code\APELMOBILE\Accueil.pas(9,92): error F2613: Unit 'FMX.WebBrowser' is used by 'FMX.TabControl'
    0 Warning(s)
    5 Error(s)
Time Elapsed 00:00:01.45
3

There are 3 answers

0
hyto On

Did you found a solution for this?

Mine was to add to the project the missing unit source file, which in my case is at: C:\Program Files (x86)\Embarcadero\Studio\21.0\source\fmx\FMX.WebBrowser.Delegate.Cocoa.pas

1
Hayri Çelik On

Jut Add C:\Program Files (x86)\Embarcadero\Studio\21.0\source\fmx\ to library path

0
Nicolas On

Dears, I have the same problem. From my research I see that there are already precompiled versions (.dcu) of the units for each target OS. However, for the unit FMX.WebBrowser.Delegate.Cocoa, the .dcu files are only provided for 4 target OS - iOS6X (debug/release) and osx64 (debug/release). the versions for iossimulator (debug/release) are missing.

the compiler will only compile the files that are included in the project definition; it will use the precompiled version for the other ones.

while we have the source code of the unit, it will only generate the .dcu file if we include the file in the project definition. Just like hyto did.

so... I'm adding the file and can continue working :)