I only did one thing and solved the problem perfectly:
Select Target and then select Build Phase to move the Run Script to the front of Compile Sources.
Clean Build Folder (for all libraries and frameworks)
Run, compiled successfully.
The principle is simple, just change the compilation order.
Xcode 13.3.1 & Swift 5.1