我在将 Firebase 添加到我的项目之前添加了 Alamofire,在我 pod Firebase/Core
并安装它并使用 .xcworkspace
运行我的项目之后,它工作得很好但是当我运行模拟器时,我收到一条很长的错误消息,以此结束。
ld: entry point (_main) undefined. for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
我该如何修复它 我使用的是 Xcode 的最新更新。
最佳答案
我不太清楚,但请检查以下内容:
- 你有入口点吗?
- 您在 XCode 和 pod 中使用相同的 iOS 版本吗?例如,如果您的 XCode 想要为 iOS 11 设备构建它,但在您的 pod 文件中,您已经设置了 iOS 10,这将是一个问题。
关于ios - pod firebase 到 Xcode 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49541483/