# XCode - "has different visibility"

**URL:** <https://forum.juce.com/t/xcode-has-different-visibility/4282>\
**Category:** MacOSX and iOS\
**Created:** [September 14, 2009, 7:28pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282 "2009-09-14T19:28:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [September 14, 2009, 7:28pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/1 "2009-09-14T19:28:10Z")

</div>

Hi folks,

Am I the only one one getting tons of warnings now when linking code with Juce? Using 10.6 and XCode 3.2, with Juce from git from last week…

I get hundreds of warnings of the form: "ld: warning: juce::jmin(int, int)has different visibility (hidden) in /Users/me/juce/bin/UninstalledProducts/libjucedebug.a(juce\_File.o) and (default) in /…

Driving me a little potty. 🙂 I know that Jules uses JUCE\_API to get around this, but doesn’t seem to be working as I expected. NB: I’m linking with the Juce library, rather than compiling-in the amalgamated sources.

Pete

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [September 14, 2009, 9:14pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/2 "2009-09-14T21:14:02Z")

</div>

No, I’m getting that too and find it pretty annoying. Wasn’t really sure what was causing it though so have tried to ignore it for now.

I did have a play around with the visibility settings in the build settings such as “Inline methods hidden”, “Symbols hidden by default” and “Hidden local variables” but could only make it worse going from around 200 errors to 1300.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 15, 2009, 6:10pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/3 "2009-09-15T18:10:01Z")

</div>

I’ve been using the amalgamated version all the time so hadn’t noticed those warnings. I guess I should take a look.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [September 15, 2009, 6:14pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/4 "2009-09-15T18:14:21Z")

</div>

Please. 🙂

---

<div class="post-metadata">

**Author:** ![amygdala](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@amygdala](https://forum.juce.com/u/amygdala)\
**Post date:** [November 21, 2009, 1:05pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/5 "2009-11-21T13:05:43Z")

</div>

No news on this? I have tried out quite a few linking and compiling flags, but none seem to remove or even disable the warning…

---

<div class="post-metadata">

**Author:** ![matt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/matt/32/18340_2.png) [@matt](https://forum.juce.com/u/matt)\
**Post date:** [November 21, 2009, 7:00pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/6 "2009-11-21T19:00:53Z")

</div>

I was able resolve this by changing the visibility options in both my application target settings and in the JUCE library target settings. I don’t remember the exact setting names, but I just typed “visibility” into the search box on the settings window.

I then had to clean and rebuild both JUCE and my app.

More info here:  
[http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html](http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html)

Matt

---

<div class="post-metadata">

**Author:** ![vishvesh](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vishvesh](https://forum.juce.com/u/vishvesh)\
**Post date:** [November 24, 2009, 8:44am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/7 "2009-11-24T08:44:39Z")

</div>

Just an update on the information matt has shared, unchecking “Inline method hidden” does the job. It can also be searched as “GCC\_INLINES\_ARE\_PRIVATE\_EXTERN”.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 24, 2009, 5:06pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/8 "2009-11-24T17:06:49Z")

</div>

Thanks - I’ll make sure that’s turned on as default in the project.

---

<div class="post-metadata">

**Author:** ![vishvesh](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vishvesh](https://forum.juce.com/u/vishvesh)\
**Post date:** [November 25, 2009, 4:00am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/9 "2009-11-25T04:00:27Z")

</div>

> [@jules](#):
>
> Thanks - I’ll make sure that’s turned on as default in the project.

It should be turned off in both juce project and the project of the application using juce library.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 25, 2009, 4:37pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/10 "2009-11-25T16:37:05Z")

</div>

But that flag was already turned off… I thought you guys were saying that it wasn’t working, so I assumed you meant it needed to be turned on (??)

---

<div class="post-metadata">

**Author:** ![vishvesh](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vishvesh](https://forum.juce.com/u/vishvesh)\
**Post date:** [November 25, 2009, 11:46pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/11 "2009-11-25T23:46:45Z")

</div>

In the project that I had downloaded(1.50 release) the flag was turned on which led to the problem. May be you have fixed it in the tip.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 26, 2009, 9:38am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/12 "2009-11-26T09:38:07Z")

</div>

Possibly, though I don’t remember changing it. I’ll double-check before my next check-in.

---

<div class="post-metadata">

**Author:** ![matt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/matt/32/18340_2.png) [@matt](https://forum.juce.com/u/matt)\
**Post date:** [December 3, 2009, 12:14am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/13 "2009-12-03T00:14:37Z")

</div>

I also had to uncheck “Symbols Hidden by Default” in both projects.

Matt

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [January 27, 2010, 9:14am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/14 "2010-01-27T09:14:28Z")

</div>

this last “Symbols Hidden By Default” option still has to be changed in the JUCE project from the tip. Jules, could you to that?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 27, 2010, 9:35am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/15 "2010-01-27T09:35:57Z")

</div>

Ok, will do.

---

<div class="post-metadata">

**Author:** ![Bruce\_Wheaton](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Bruce\_Wheaton](https://forum.juce.com/u/Bruce_Wheaton)\
**Post date:** [May 12, 2010, 5:46am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/16 "2010-05-12T05:46:11Z")

</div>

I’ve just been getting this again, with the tip as of 3-4 days ago.

Had to do the main ‘Juce’ project item and the ‘Juce’ Target (as opposed to Juce (iPhone).

Bruce

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2010, 8:39am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/17 "2010-05-12T08:39:45Z")

</div>

Strange. I’ve not changed any settings recently.

Anyway, I’ll shortly be replacing all the old juce library projects with jucer-generated ones, so they’ll definitely all have the correct settings to build cleanly…

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 5, 2010, 8:49pm UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/18 "2010-07-05T20:49:15Z")

</div>

I am still getting these warnings even with a fresh compilation of the tip and using the Jucer to generate my projects. I noticed that the Jucer generates projects with these two options ticked by default which means I have to uncheck them manually every time I do a “Save Project and Open in XCode”. Would it be possible to have these unticked by default?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 6, 2010, 9:10am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/19 "2010-07-06T09:10:01Z")

</div>

Ok, thanks, I’ll take a look…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:49am UTC](https://forum.juce.com/t/xcode-has-different-visibility/4282/20 "2017-05-12T09:49:55Z")

</div>


