gpt4 book ai didi

ios - 更新到 1.0.0 后 cocoapods link_with 出错

转载 作者:IT王子 更新时间:2023-10-29 07:48:15 25 4
gpt4 key购买 nike

我今天更新了 cocoapods 到 1.0.0 版本。我在更新 pod 时得到了这个字符串:

[!] 无效的 Podfile 文件:[!] 现在不支持 Podfile 中的 link_with 规范,请改用目标 block 。

我已经删除了 podFile 中的 link_with,但我无法构建项目,因为我有很多 Match-O-Linkers。任何人都知道我应该如何解决这个问题?

这是我现在的 Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'
inhibit_all_warnings!


pod 'pop', '~> 1.0'
pod 'AFNetworking', '~> 1.3'
pod 'SDWebImage', '~> 3.7'
pod 'GoogleAnalytics', '~> 3'
pod 'ARAnalytics' , :subspecs => ["Crashlytics", "Amplitude", "DSL"]
pod 'FBSDKCoreKit', '~> 4.10.1'
pod 'FBSDKLoginKit', '~> 4.10.1'
pod 'FBSDKShareKit', '~> 4.10.1'
pod 'Google/SignIn'
pod 'Branch'

pod 'Leanplum-iOS-SDK'

pod 'Fabric', '1.6.7'
pod 'Crashlytics', '3.7.0'
pod 'TwitterKit'
pod 'Digits'

target 'minubeTests' do
pod 'OCMockito'
end

最佳答案

试试这个。适用于不止一个目标。

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

def myPods
pod 'pop', '~> 1.0'
pod 'AFNetworking', '~> 1.3'
pod 'SDWebImage', '~> 3.7'
pod 'GoogleAnalytics', '~> 3'
pod 'ARAnalytics' , :subspecs => ["Crashlytics", "Amplitude", "DSL"]
pod 'FBSDKCoreKit', '~> 4.10.1'
pod 'FBSDKLoginKit', '~> 4.10.1'
pod 'FBSDKShareKit', '~> 4.10.1'
pod 'Google/SignIn'
pod 'Branch'

pod 'Leanplum-iOS-SDK'

pod 'Fabric', '1.6.7'
pod 'Crashlytics', '3.7.0'
pod 'TwitterKit'
pod 'Digits'
end

target 'yourTargetOne' do
myPods
end

target 'yourTargetTwo' do
myPods
end

target 'minubeTests' do
pod 'OCMockito'
end

关于ios - 更新到 1.0.0 后 cocoapods link_with 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37280077/

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