【发布时间】:2016-05-17 15:14:02
【问题描述】:
我今天已将 cocoapods 更新到 1.0.0 版本。我在更新 pod 时得到了这个字符串:
[!] Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead..
我已在我的 podFile 中删除了 link_with,但我无法构建项目,因为我有很多 Match-O-Linker。有谁知道我应该如何解决这个问题?
这是我现在的 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
【问题讨论】:
-
根据 2016 年 6 月 13 日在旧金山举行的 CocoaPods 核心团队介绍,不推荐使用
def ... end的解决方案。推荐的解决方案是abstract_target ... do ... end。 -
接受的答案不是正确的。
-
并不代表它的权利。
-
非常完美,我将我的 pod 分成两个 def,它对手表、小部件和应用程序都有好处,谢谢!