なんとかするから、なんとかなる

エンジニア関係のことを書きます

iOS How to solve the build error related with "CommonCrypto" on Xcode10

Introduction

This article shows how to solve the build error related with "CommonCrypto" on Xcode10.

After updating the Xcode to version10, I faced on the error messages as below.

The CommonCrypto was imported by cocoapods in my case.

Redefinition of module "CommonCrypto"
error: could not build Objective-C module 'YOUR_MODULE'

Solution

Remove the "CommonCrypto" folder included in {YOUR_MODULE}.

It seems that the "CommonCypto" module is included in standard library on Xcode10.