gpt4 book ai didi

ios - cocoa pod 指定来源时出错

转载 作者:行者123 更新时间:2023-11-29 00:18:09 25 4
gpt4 key购买 nike

我正在尝试将 pod 与我的项目集成。我需要为每个 pod 指定源。当我像这样指定全局源时,一切正常:

source 'https://github.com/MyRepo/MySpec.git'
platform :ios, '8.0'
use_frameworks!

target 'TestProject' do
pod 'MyTestSDKSpec'
end

但是,当我尝试像这样为每个 pod 指定源时:

platform :ios, '8.0'
use_frameworks!

target 'TestProject' do
pod 'MyTestSDKSpec', git: 'https://github.com/MyRepo/MySpec.git'
end

我收到以下错误:

Analyzing dependencies
Pre-downloading: `MyTestSDKSped` from `https://github.com/MyRepo/MySpec.git`
[!] Unable to find a specification for 'MyTestSDKSpec'.

你能告诉我为什么会出现这样的错误吗?

最佳答案

我认为您的 Podfile 中有拼写错误,请尝试执行以下操作:

platform :ios, '8.0'
use_frameworks!

target 'TestProject' do
pod 'MyTestSDKSpec', :git => 'https://github.com/MyRepo/MySpec.git'
end

关于ios - cocoa pod 指定来源时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44786832/

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