# Running Basic Examples After Xcode Upgrade

**URL:** <https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402>\
**Category:** Getting Started\
**Created:** [January 31, 2021, 12:05am UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402 "2021-01-31T00:05:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jabowen](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jabowen](https://geant4-forum.web.cern.ch/u/jabowen)\
**Post date:** [January 31, 2021, 12:05am UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/1 "2021-01-31T00:05:26Z")

</div>

Having recently installed GEANT4, I am still familiarizing myself with it by running the basic examples. I was able to run examples B1 and B2a. However, an update to Xcode was available and I updated it. After the update, I was not able to run B2b, or even re-run B2a. Can anyone tell me if there is anything I need to do after an Xcode update? The following is what happened when I tried to re-run B2a.

(base) Jamess-iMac:B2a jamesbowen$ ./exampleB2a  
dyld: Library not loaded: /opt/X11/lib/libGL.1.dylib  
Referenced from: /Users/jamesbowen/geant4.10.07-install/lib/libG4OpenGL.dylib  
Reason: Incompatible library version: libG4OpenGL.dylib requires version 4.0.0 or later, but libGL.1.dylib provides version 1.0.0  
Abort trap: 6  
(base) Jamess-iMac:B2a jamesbowen$

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [January 31, 2021, 12:09pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/2 "2021-01-31T12:09:48Z")

</div>

Which macOS and Xcode versions are you running? It looks like something’s changed in the Xquartz installation, so maybe try reinstalling that.

---

<div class="post-metadata">

**Author:** ![jabowen](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jabowen](https://geant4-forum.web.cern.ch/u/jabowen)\
**Post date:** [January 31, 2021, 12:44pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/3 "2021-01-31T12:44:02Z")

</div>

Yes, that’s right, it was XQuartz. What exactly do I need to reinstall? I think the update was already installed.

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [January 31, 2021, 4:39pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/4 "2021-01-31T16:39:41Z")

</div>

That’s why I asked about which macOS and Xcode versions this was on - I don’t have experience with Xcode updates breaking installs of Xquartz (not that it can’t happen!).

Given that the `libGL` version is “1.0.0”, but as far as I know the current Xquartz installer provides 4.0.0, I’m not sure what’s broken. I’d try downloading the latest Xquartz installer and reinstall it from that.

---

<div class="post-metadata">

**Author:** ![jabowen](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jabowen](https://geant4-forum.web.cern.ch/u/jabowen)\
**Post date:** [January 31, 2021, 5:12pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/5 "2021-01-31T17:12:32Z")

</div>

Wow, I’m sorry I did not answer that. It is macOS Big Sur Version 11.1. Xcode is Version 12.4. I just opened Xcode, and was told I needed additional components to open it, which I downloaded. I will therefore try recompiling and running these examples again. I will let you know if I am still having the problem.

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [January 31, 2021, 5:43pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/6 "2021-01-31T17:43:43Z")

</div>

No worries, and thanks for the info. Let us know if there are issues - and equally if and how you resolved things!

---

<div class="post-metadata">

**Author:** ![jabowen](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@jabowen](https://geant4-forum.web.cern.ch/u/jabowen)\
**Post date:** [January 31, 2021, 6:44pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/7 "2021-01-31T18:44:34Z")

</div>

Thanks bmorgan. It looks like it is working now. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [July 2, 2022, 4:55pm UTC](https://geant4-forum.web.cern.ch/t/running-basic-examples-after-xcode-upgrade/4402/8 "2022-07-02T16:55:13Z")

</div>

Closed on July 2, 2022, 4:55pm UTC


