I don&#39;t remember when the deployment stuff is executed in xcode. How do you package your product? If you are using cpack ,you can tell it to strip the binary before packaging it.<div><br></div><div>/Johan</div><div><br>
<br><div class="gmail_quote">On Mon, Sep 5, 2011 at 6:47 AM, Robert Bielik <span dir="ltr">&lt;<a href="mailto:robert.bielik@xponaut.se">robert.bielik@xponaut.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Tack Johan,<br>
<br>
Johan Björk skrev 2011-09-04 09:12:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can set it using<br>
SET(CMAKE_XCODE_ATTRIBUTE_<u></u>DEPLOYMENT_POSTPROCESSING YES)<br>
You might also want to enable the strip-attribute if that&#39;s what you are aiming for (STRIP_INSTALLED_PRODUCT?)<br>
</blockquote>
<br></div>
Yup that&#39;s what I&#39;m aiming for. However, having set that attribute (and STRIP_INSTALLED_PRODUCT and STRIP_STYLE which I think are set<br>
automagically by cmake), my binary is still PEPPERED with symbols.<br>
<br>
I guess that Spotify uses cmake too ? ;) And having checked Spotify&#39;s binary I can see there&#39;s virtually no exported symbol in it. So what<br>
else do I need to setup in order to achieve the same thing ? I&#39;ve tried adding -fvisibility=hidden (is that only for dylibs ?) to no effect...<br>
<br>
TIA<br><font color="#888888">
/Robert<br></font>
Ps. Hälsa Micke Eriksson :)<div><div></div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For other settings, refer to:<br>
<a href="http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html%23//apple_ref/doc/uid/TP40003931-CH3-SW53" target="_blank">http://developer.apple.com/<u></u>library/mac/#documentation/<u></u>DeveloperTools/Reference/<u></u>XcodeBuildSettingRef/1-Build_<u></u>Setting_Reference/build_<u></u>setting_ref.html#//apple_ref/<u></u>doc/uid/TP40003931-CH3-SW53</a><br>

<br>
/Johan<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>