简体   繁体   English

将Pod Firebase转换为Xcode时出错

[英]Error with pod firebase to Xcode

I added Alamofire before I add firebase to my project and it was working just fine after that I pod Firebase/Core and install it and run my project with .xcworkspace but when I run the simulator I got a long error message end with this. 我在将Firebase添加到我的项目中之前添加了Alamofire,在我将Firebase/Core吊舱并安装并使用.xcworkspace运行我的项目之后,它工作得很好,但是当我运行模拟器时,我收到了一条很长的错误消息,并以此结束。

ld: entry point (_main) undefined. ld:入口点(_main)未定义。 for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 对于体系结构x86_64 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

how can i fix it i use the last update of Xcode. 我该如何解决它,我使用Xcode的最新更新。

I don't know exactly but please check these things: 我不确定,但请检查以下内容:
- Do you have an entry point? -您有入口吗?
- Do you use the same iOS version in XCode and in the pod? -您是否在XCode和Pod中使用相同的iOS版本? For instance, it would be a problem if your XCode want to build it for an iOS 11 device but in your pod file, you have set iOS 10. 例如,如果您的XCode想要为iOS 11设备构建它,但是在pod文件中设置了iOS 10,将是一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM