【发布时间】:2019-06-25 15:58:24
【问题描述】:
我正在尝试更新 pod,但收到此错误
[!] 无效的
Podfile文件:[!] 无法为抽象目标定义设置继承
关于
target 'Project-IntegrationTests'
inherit! :search_paths
pod 'OCMock', '= 3.1.2'
【问题讨论】:
-
您可以尝试在项目文件夹中运行“pod init”,然后尝试添加 pod。
我正在尝试更新 pod,但收到此错误
[!] 无效的
Podfile文件:[!] 无法为抽象目标定义设置继承
关于
target 'Project-IntegrationTests'
inherit! :search_paths
pod 'OCMock', '= 3.1.2'
【问题讨论】:
platform :ios, '12.0'
inhibit_all_warnings!
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
def testPods
pod 'OCMock', '= 3.1.2'
end
target 'Project-IntegrationTests' do
testPods
end
并非所有标志都是强制性的。
【讨论】: