简体   繁体   English

叮当:错误:链接器命令失败,退出代码为1(使用-v查看调用)Xcode 10,Xcode 10.1 Beta,Swift 4.2

[英]Clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta, Swift 4.2

The project was working fine until I add these Cocoapods below: 在我在下面添加这些Cocoapods之前,该项目运行良好。

platform :ios, '10.0'

target 'XXXXAPPNAME' do

use_frameworks!

pod 'KVNProgress'
pod 'OneSignal'
pod 'IQKeyboardManager'
pod 'AKMaskField'

end

The result of pod installation: 吊舱安装的结果:

Analyzing dependencies
Downloading dependencies
Installing AKMaskField (2.0.3)
Installing IQKeyboardManager (6.0.4)
Installing KVNProgress (2.3.1)
Installing OneSignal (2.8.5)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `APPNAME.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed.

and then, of course, I run the project with APPNAME.xcworkspace file 然后,当然,我使用APPNAME.xcworkspace文件运行该项目

But it gives an error: 但是它给出了一个错误:

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/AKMaskField'

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/IQKeyboardManager'

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/KVNProgress'

ld: framework not found AKMaskField

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have googled it. 我用谷歌搜索。 I have read all questions/replies about the same topic in here StackOverflow. 我已经在此处StackOverflow中阅读了有关同一主题的所有问题/答复。 but I could not find a solution. 但我找不到解决方案。 I have removed derived Data also. 我也删除了派生数据。 It did not work. 这没用。

There libraries are not updated for Swift 4.2 . Swift 4.2没有更新库。 This issue comes for any library that is missing the version attribute( s.swift_version = '4.2' ) in .podspec file. 对于任何缺少.podspec文件中的version属性( s.swift_version = '4.2' )的库,都会出现此问题。 Also .swift-version is deprecated so that also needs to be removed for any of the pod. 此外,不建议使用.swift-version ,因此对于任何吊舱也都需要将其删除。 Now, either you can open issues so the developers can update their libraries for Swift 4.2 or you can fork and make the changes yourself and then point your repo. 现在,您可以打开问题,以便开发人员可以为Swift 4.2更新其库,也可以分叉并自己进行更改,然后指向您的存储库。 in pods. 在豆荚里。 Last option is to use Xcode 9.4.1 until libraries are not updated. 最后一个选择是使用Xcode 9.4.1直到不更新库。

暂无
暂无

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

相关问题 如何解决Xcode 10 Beta中的错误“链接器命令失败,退出代码1(使用-v查看调用)”? - How to solve an error “linker command failed with exit code 1 (use -v to see invocation) ”in Xcode 10 beta? xcode中的错误:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - error in xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)Xcode - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode Xcode 5 - clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5 - clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:Xcode 10.0和Ionic 3中的链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) in Xcode 10.0 and Ionic 3 Xcode 5- clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation) 修复-Xcode 9.1-铛:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Fix - Xcode 9.1 - clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)Xcode 9 - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 9 clang:错误:在xcode上进行单元测试时,链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) when doing unit test on xcode 铛:错误:链接器命令失败,在xcode 6中退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) in xcode 6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM