【问题标题】:Invalid 'Podfile' file无效的“Podfile”文件
【发布时间】:2019-06-25 15:58:24
【问题描述】:

我正在尝试更新 pod,但收到此错误

[!] 无效的Podfile 文件:[!] 无法为抽象目标定义设置继承

关于

target 'Project-IntegrationTests'
inherit! :search_paths
pod 'OCMock', '= 3.1.2'

【问题讨论】:

  • 您可以尝试在项目文件夹中运行“pod init”,然后尝试添加 pod。

标签: ios cocoapods


【解决方案1】:
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

并非所有标志都是强制性的。

【讨论】:

    猜你喜欢
    • 2022-11-05
    • 1970-01-01
    • 2022-10-14
    • 2020-08-12
    • 2020-01-17
    • 2016-09-14
    • 1970-01-01
    • 1970-01-01
    • 2020-03-21
    相关资源
    最近更新 更多