Ios 在swift3-Linker命令上迁移Alamofire 4失败,退出代码为1(使用-v查看调用)
我正在迁移到swift 3,因此更新到Alamofire 4,我收到以下错误:Ios 在swift3-Linker命令上迁移Alamofire 4失败,退出代码为1(使用-v查看调用),ios,swift3,Ios,Swift3,我正在迁移到swift 3,因此更新到Alamofire 4,我收到以下错误: Linker command failed with exit code 1 (use -v to see invocation) 有了这个细节 .../Alamofire.framework/Alamofire compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64
Linker command failed with exit code 1 (use -v to see invocation)
有了这个细节
.../Alamofire.framework/Alamofire compiled with older version of Swift language
(2.0) than previous files (3.0) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我的pod文件:
pod 'Alamofire', '~> 4.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
我不知道它是否链接,但我在更新播客时也有以下警告:
[!] The `MyProject [Release]` target overrides the
`ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target
Support Files/Pods-bbsigne/Pods-bbsigne.release.xcconfig'.
This can lead to problems with the CocoaPods installation
如何解决此错误?请尝试以下步骤:
pod update
文件
->工作区设置
->按路径旁边的箭头按钮->打开衍生数据
文件夹->删除以项目名称开头的文件夹尝试以下步骤:
pod update
文件
->工作区设置
->按路径旁边的箭头按钮->打开衍生数据
文件夹->删除以项目名称开头的文件夹非常感谢您的详细回答。问题解决了,我可以运行项目。更新pods时我仍然有警告。非常感谢您的帮助你的详细答案。问题解决了,我可以运行该项目。我在更新POD时仍然有警告。