iOS
iOS copied to clipboard
Build error: Missing required module 'Clibsodium'
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.
Can you share the full build log for this failure? Which revision of master?
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
I switched to method 2 and now it builds successfully. It appears method 1 does not work.
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.