我的 iOS 项目包括一些私有 pod。我已经在我的本地机器(以及团队成员)上完成了使用此处概述的私有 pod 的步骤。
如何为 VS App Center 添加相同的过程来更新和检索 repo?
目前,我在构建输出中得到了这个:
[command]/usr/local/bin/pod install --repo-update
Updating local specs repositories
Cloning spec repo fooBar from git@github.com:fooBar/Podspec.git
[!] Unable to add a source with url git@github.fooBar/Podspec.git named fooBar.
You can try adding it manually in ~/.cocoapods/repos or via pod repo add.
[error]/usr/local/bin/pod failed with return code: 1
[error]The 'pod' command failed with error: /usr/local/bin/pod failed with return code: 1
我认为类型别名与原始类型相同,只是名称不同。
我认为类型别名与原始类型具有相同的引用。
typealias Celsius = Double
fun Double.Companion.foo() {} // Works
fun Celsius.Companion.foo() {} // Does not work
Run Code Online (Sandbox Code Playgroud)
在这里,Companion
可以从访问,Double
但是Celsius
给出了未解决的参考错误。