<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I finally found the solution, I had to export my deployment target.</p>
<p><br>
</p>
<p>I just added in my build scripts for PROJ and GDAL:</p>
<p><br>
</p>
<p>export IOS_DEPLOYMENT_TARGET=12 and (to be sure) export IPHONEOS_DEPLOYMENT_TARGET=12</p>
<p><br>
</p>
<p>And all good!</p>
<p><br>
</p>
<p>Thanks again<br>
Philippe</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Peter Petrik <peter.petrik@lutraconsulting.co.uk><br>
<b>Sent:</b> Tuesday, September 20, 2022 8:35 AM<br>
<b>To:</b> Philippe Lelong<br>
<b>Cc:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Gdal/Proj builds on iOS</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Philippe,
<div><br>
</div>
<div>iOS links all the stuff statically, so there are sometimes clashes of symbols. You can look at how we build it for Mergin Maps here: <a href="https://github.com/MerginMaps/input-sdk/tree/master/ios/recipes" id="LPlnk209208" previewremoved="true">https://github.com/MerginMaps/input-sdk/tree/master/ios/recipes</a></div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>Kind Regards,</div>
Peter Petrík
<div>CPO of Mergin Maps</div>
<div><a href="https://www.linkedin.com/in/peter-petrik/" target="_blank">LI</a>, <a href="https://www.merginmaps.com" target="_blank">
Mergin Maps</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Sep 20, 2022 at 8:31 AM Philippe Lelong <<a href="mailto:lelong.ph@meltemus.com">lelong.ph@meltemus.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="msg8174545653055491087">
<div dir="ltr">
<div id="m_8174545653055491087divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>We have a strange issue with our GDAL build for iOS (GDAL 3.4.1, PROJ6). Everything is fine when running on iOS 15 or 16, but when the same app is run on iOS 14 or 12 the app will not load at all (does not even reach main) and the only thing I can see in
 a console is this:</p>
<p><span><br>
</span></p>
<p><span>dyld: Symbol not found: __ZTTNSt3__114basic_ifstreamIcNS_11char_traitsIcEEEE</span><br>
</p>
<p><span><br>
</span></p>
<p><span>If I remove completely GDAL libs from the app it works, so I know this is a dependency coming for GDAL, and a grep "char_traits" in all our libs returns libgdal.a and libproj.a only.</span></p>
<p><span><br>
</span></p>
<p><span>I can join more logs from configure or build if needed.</span></p>
<p><span><br>
</span></p>
<p><span>Any idea what is wrong here ?</span></p>
<p><span><br>
</span></p>
<p><span>Thanks</span></p>
<p><span>Philippe.</span></p>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>