# iOS build question - could not build Objective-C module 'CommonCrypto'

**URL:** <https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673>\
**Category:** Builds\
**Tags:** ios, build-config\
**Created:** [September 12, 2017, 2:23am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673 "2017-09-12T02:23:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kangaroo5383](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/kangaroo5383/32/807_2.png) [@kangaroo5383](https://discuss.bitrise.io/u/kangaroo5383)\
**Post date:** [September 12, 2017, 2:23am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/1 "2017-09-12T02:23:15Z")

</div>

Anyone else running into a problem here with CommonCrypto? This is on XCode 9 beta 6 and I’m seeing this error during the archive stage

“could not build Objective-C module ‘CommonCrypto’”

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/daniel/32/20_2.png) [@daniel](https://discuss.bitrise.io/u/daniel)\
**Post date:** [September 12, 2017, 8:53am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/2 "2017-09-12T08:53:27Z")

</div>

Thanks for reporting, @kangaroo5383, we’ll check this asap!  
Can you please attach to whole build log for context?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [September 12, 2017, 10:25am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/3 "2017-09-12T10:25:26Z")

</div>

Hi @kangaroo5383,

Can you please share a bit more info? Particularly the step’s log would help a lot, where you get the error (the whole step log with the step’s header and footer, if possible), as well as the build config (`bitrise.yml`).

If you can’t share these publicly please send the build’s link/url to us through email or the onsite chat on [bitrise.io](http://bitrise.io)!

---

<div class="post-metadata">

**Author:** ![kangaroo5383](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/kangaroo5383/32/807_2.png) [@kangaroo5383](https://discuss.bitrise.io/u/kangaroo5383)\
**Post date:** [September 12, 2017, 8:30pm UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/4 "2017-09-12T20:30:23Z")

</div>

@daniel Thanks for the quick response, I’ve included the relevant info in a chat message and linked back here for context and reference. I am not able to share the logs publicly, but hopefully once we resolve the issue, we can post back here for others’ benefit!

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [September 13, 2017, 9:33am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/5 "2017-09-13T09:33:52Z")

</div>

@daniel please don’t forget to share the solution here 😉

---

<div class="post-metadata">

**Author:** ![kangaroo5383](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/kangaroo5383/32/807_2.png) [@kangaroo5383](https://discuss.bitrise.io/u/kangaroo5383)\
**Post date:** [September 13, 2017, 6:03pm UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/6 "2017-09-13T18:03:09Z")

</div>

Thanks for the reminder! So we figured out what the problem was. The xcode app path it assumed was incorrect for beta, so that’s why we were seeing this.

We added a script step and fixed it. However this is probably not needed since GM is out.

For future reference!  
sudo mv /Applications/Xcode-beta.app /Applications/Xcode.app  
sudo xcode-select -switch /Applications/Xcode.app

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/daniel/32/20_2.png) [@daniel](https://discuss.bitrise.io/u/daniel)\
**Post date:** [September 14, 2017, 8:31am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/7 "2017-09-14T08:31:01Z")

</div>

Thanks for posting the solution here @kangaroo5383 ! I’ve marked it as such so others would find it more easily.

---

<div class="post-metadata">

**Author:** ![bsarrazin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bsarrazin/32/628_2.png) [@bsarrazin](https://discuss.bitrise.io/u/bsarrazin)\
**Post date:** [November 3, 2017, 11:44pm UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/8 "2017-11-03T23:44:02Z")

</div>

This is still happening.  
We have a build using Xcode 9.1 and we see these errors all over the place. Is it expected to run the script above ourselves? Is there a solution internally at Bitrise for this?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [November 4, 2017, 9:28am UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/9 "2017-11-04T09:28:53Z")

</div>

Xcode 9.1 non beta just went live: [Weekly Virtual Machine / Stack updates - 2017.11.04 - Xcode 9.1 final, Xcode 9.2 beta](http://discuss.bitrise.io/t/weekly-virtual-machine-stack-updates-2017-11-04-xcode-9-1-final-xcode-9-2-beta/3189)

Try a rebuild @bsarrazin and let us know if that wouldn’t help 🙂

---

<div class="post-metadata">

**Author:** ![bsarrazin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bsarrazin/32/628_2.png) [@bsarrazin](https://discuss.bitrise.io/u/bsarrazin)\
**Post date:** [November 4, 2017, 2:55pm UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/10 "2017-11-04T14:55:31Z")

</div>

It worked! Thanks Viktor!

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [November 4, 2017, 2:56pm UTC](https://discuss.bitrise.io/t/ios-build-question-could-not-build-objective-c-module-commoncrypto/2673/11 "2017-11-04T14:56:34Z")

</div>

Any time 😉
