【发布时间】:2017-06-24 02:22:12
【问题描述】:
- Xcode 8.3.3
- 斯威夫特 3
- 使用可可豆荚,如下所列
我收到错误:
Linker command failed with exit code 1 (use -v to see invocation)
但没有具体的错误信息。当我单击 Xcode 左侧面板中的“链接器命令失败...”消息时,我没有被带到任何地方,也没有错误消息的更多详细信息。
我当前的Enable Bitcode 设置为“否”,尽管我也尝试将其设置为“是”。我尝试这样做的唯一原因是this Stackoverflow
我的 Cocoa Pods 可能来自我在网上阅读的内容,这是我的 Podfile:
# Uncomment this line to define a global platform for your project
#platform :ios, '9.0'
abstract_target 'commonPods' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for app
pod 'MetaWear'
pod 'MBProgressHUD'
pod 'RealmSwift'
pod 'Firebase', '4.0.0'
pod 'Firebase/Auth', '4.0.0'
pod 'Firebase/Database', '4.0.0'
pod 'Firebase/Storage', '4.0.0'
pod 'FacebookCore', '~> 0.2'
pod 'FacebookLogin', '~> 0.2'
pod 'FacebookShare', '~> 0.2'
pod 'FBSDKCoreKit', '~> 4.22.1'
pod 'FBSDKLoginKit', '~> 4.22.1'
pod 'FBSDKShareKit', '~> 4.22.1'
pod 'GoogleSignIn'
target 'app' do
end
target 'app Lite' do
end
end
我的 Podfile 中包含特定版本的 Facebook Cocoa Pod 的原因是因为最新的 Facebook SDK 存在 Swift 3 问题,请参阅here。
我已经清理并重新启动了 XCode。我的 Xcode 项目/工作区在设备和模拟器上构建和运行良好。
我可以在 Xcode 的错误日志文件中查找错误消息的更多详细信息吗?
任何可疑的可可豆荚?
【问题讨论】:
-
查看“报告导航器”窗格以获取问题的完整详细信息。
-
我知道提到这样一个琐碎的笔记听起来很傻,但你有没有尝试过清理和重建?