Apparently you're using Carthage . So you need to recompile the modules using the Swift 4 compiler, even in 3.2 mode.
You should first configure the compiler for the toolchain of Xcode 9, using the following command in the terminal:
sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer
Note that you must get the path to where you saved Xcode-Beta.
After this you can compile the framework in question using:
carthage update ObjectMapper --platform iOS --no-use-binaries
This command will compile the framework using the toolchain defined in step 1. It may be a little slow, but after that your project should work without problems. >
Note
To return to the standard toolchain run the command in the terminal:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Reply adapted from this one in SO English .