iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Build error: Missing required module 'Clibsodium'

Open fhriley opened this issue 3 years ago • 5 comments

Describe the bug

I am using XCode 14.0.1 on ARM.

I followed the build instructions and chose the cocoapods method. When building App-Debug, I get a Missing required module 'Clibsodium' fatal build error.

To Reproduce

Clone the repo and follow the build instructions for cocoapods. Then try to build App-Debug.

Expected behavior

The build succeeds.

fhriley avatar Oct 02 '22 17:10 fhriley

Can you share the full build log for this failure? Which revision of master?

zacwest avatar Oct 03 '22 17:10 zacwest

9996aaf6d5d802327c9e57621134bb93e6e963cb

408D1AE7-E454-43D1-8FD8-340E6E7D8884.xcactivitylog.zip

fhriley avatar Oct 04 '22 02:10 fhriley

A directory it is using does not exist:

ls -l /Users/friley/Library/Developer/Xcode/DerivedData/HomeAssistant-amxwsueqetxtprhdpleltocsathi/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/Clibsodium
ls: /Users/friley/Library/Developer/Xcode/DerivedData/HomeAssistant-amxwsueqetxtprhdpleltocsathi/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/Clibsodium: No such file or directory
ls -l /Users/friley/Library/Developer/Xcode/DerivedData/HomeAssistant-amxwsueqetxtprhdpleltocsathi/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates
total 0
drwxr-xr-x  3 friley  staff   96 Oct  3 19:07 FirebaseAnalytics
drwxr-xr-x  4 friley  staff  128 Oct  3 19:07 GoogleAppMeasurement
drwxr-xr-x  4 friley  staff  128 Oct  3 19:06 Realm
drwxr-xr-x  4 friley  staff  128 Oct  3 19:06 Sodium

fhriley avatar Oct 04 '22 02:10 fhriley

I switched to method 2 and now it builds successfully. It appears method 1 does not work.

fhriley avatar Oct 06 '22 23:10 fhriley

I believe this is an issue with newer Cocoapods which would explain why the bundler approach works. The Gemfile currently pins us to an older one.

zacwest avatar Oct 07 '22 17:10 zacwest