The problem

A compiler error

Building for iOS, but the linked and Embedded framework 'XXx. framework' was built for iOS and ios-simulator.Copy the code

The solution

Build setting -> Build options -> Vaildate Workspace => YES
Copy the code