gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:46:03 25 4
gpt4 key购买 nike

在我在下面添加这些 Cocoapods 之前,该项目运行良好:

platform :ios, '10.0'

target 'XXXXAPPNAME' do

use_frameworks!

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

end

pod安装结果:

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.

然后,当然,我用 APPNAME.xcworkspace 文件运行项目

但是报错:

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)

我已经用谷歌搜索过了。我已经在此处的 StackOverflow 中阅读了关于同一主题的所有问题/回复。但我找不到解决办法。我也删除了派生数据。它不起作用。

最佳答案

没有为 Swift 4.2 更新库。此问题适用于 .podspec 文件中缺少版本属性 (s.swift_version = '4.2') 的任何库。此外,.swift-version 已弃用,因此还需要为任何 pod 删除它。现在,您可以打开问题以便开发人员可以为 Swift 4.2 更新他们的库,或者您可以自己创建分支并进行更改,然后指向您的 repo。在 pod 里。最后一个选项是使用 Xcode 9.4.1 直到库不更新。

关于ios - Clang : error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta,Swift 4.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52641965/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com