https://blog.wandoer.com/note/%E8%A7%A3%E5%86%B3-building-for-ios-simulator-but-linking-in-object-file-built-for-osx-for-architecture-x86_64.htm