小编use*_*434的帖子

Pod安装,依赖性`*****`不用于任何具体目标

我有另一个项目,当我安装pod时,控制台告诉我:

Analyzing dependencies
[!] The dependency `MMDrawerController (~> 0.5.7)` is not used in any concrete target.
The dependency `ViewUtils` is not used in any concrete target.
The dependency `CPAnimationSequence` is not used in any concrete target.
The dependency `iCarousel` is not used in any concrete target.
The dependency `BlocksKit (~> 2.2.5)` is not used in any concrete target.
The dependency `AFNetworking` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target. …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods cocoapods-1.1.1

25
推荐指数
2
解决办法
2万
查看次数

iOS:无法获取Caches目录的内容

试图获取Caches目录的内容:

NSError *error;
NSString *path = [[self.class cachesDirectoryURL] absoluteString];
NSArray *directoryItems = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:&error];
Run Code Online (Sandbox Code Playgroud)

path是的,我可以在Finder中看到它存在并包含我的文件.
directoryItemsnilerror

Error Domain=NSCocoaErrorDomain Code=260 "The folder “Caches” doesn’t exist." UserInfo={NSUnderlyingError=0x7982d2d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}, NSFilePath=file:///Users/seelts/Library/Developer/CoreSimulator/Devices/C1411C3D-91FB-4D91-83A4-D0747071AE36/data/Containers/Data/Application/800DE429-F10C-438E-BB04-2948C0B07E7C/Library/Caches/, NSUserStringVariant=(
    Folder
)}
Run Code Online (Sandbox Code Playgroud)

我怎么了?

objective-c nsfilemanager ios

11
推荐指数
1
解决办法
7218
查看次数

argoCD - 入口无法正常工作的外部访问

我是 Kubernetes 的新手,因此对于任何愚蠢的问题和错误提前表示歉意。我正在尝试通过 ArgoCD 的入口设置外部访问。我的设置是 aws eks 集群。我按照此处的指南设置了 alb 。我还按照此处所述设置了外部 DNS 服务。我还按照该指南中的验证步骤进行操作,并能够确认 dns 记录也已创建,并且我能够访问 foo 服务。

对于 argoCD,我通过以下方式安装了清单

kubectl create namespace argocd
kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml -n argocd
Run Code Online (Sandbox Code Playgroud)

argoCD 文档提到添加一个服务来拆分 http 和 grpc,以及一个入口设置。我遵循了这一点并安装了它们

apiVersion: v1
kind: Service
metadata:
  annotations:
    alb.ingress.kubernetes.io/backend-protocol-version: HTTP2
    external-dns.alpha.kubernetes.io/hostname: argocd.<mydomain.com>
  labels:
    app: argogrpc
  name: argogrpc
  namespace: argocd
spec:
  ports:
  - name: "443"
    port: 443
    protocol: TCP
    targetPort: 8080
  selector:
    app.kubernetes.io/name: argocd-server
  sessionAffinity: None
  type: ClusterIP
Run Code Online (Sandbox Code Playgroud)
apiVersion: networking.k8s.io/v1 # Use extensions/v1beta1 for Kubernetes …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services kubernetes kubernetes-ingress aws-application-load-balancer argoproj

8
推荐指数
1
解决办法
3495
查看次数

“检测到 API 兼容性问题”

我正在使用当前的 Delphi 10.3 版本以及当前的 TeeChart FMX 2018.26 版本。Android 设备是搭载 Android 9 的 onePlus 6T。不幸的是,目前正在显示“检测到的 API 兼容性问题”。我使用了一个全新的项目,只有一个简单的 TeeChart 图表,所以我可以排除其他不兼容性。

有什么可用的解决方案吗?

http://bugs.teechart.net/show_bug.cgi?id=2134

delphi teechart firemonkey

5
推荐指数
1
解决办法
3547
查看次数

将 Argo CRD 验证添加到 vscode

根据此处 Argo 文档中的说明:https : //argoproj.github.io/argo/ide-setup/,我知道您可以轻松将其添加到 intellij 验证设置中,但没有关于如何添加 CRD 的帮助到 vscode 的 YAML 模板。

我想将 Argo 中的 CRD 验证 yaml 添加到我的 vscode 设置中以获得必要的验证和自动完成,但是"yaml.schemas": {...当它是一个 YAML 文件时,我无法弄清楚如何在我的部分(使用 RedHat YAML 扩展)中使用 YAML与 JSON 模式相反。

所以我想我的问题本质上是,如何复制 intellij 中当前可用的 yaml CRD 验证设置?

kubernetes visual-studio-code vscode-settings argoproj

5
推荐指数
1
解决办法
272
查看次数

Swift - 将相同的导航栏项添加到每个页面

我正在尝试将相同的导航栏项添加到我的应用程序中的每个选项卡.我目前在homeController中正确设置它们,但我想将代码移动到一个单独的文件中,并在任何我想要的地方远程实现它.

例如:在导航栏的左侧添加[搜索]图标,而不必在每个swift文件中使用相同的代码.

我不知道是否应该创建一个枚举,协议或类.做这个的最好方式是什么?

let menuButton = UIButton(type: UIButtonType.system)
menuButton.frame = CGRect(x: 0, y: 0, width: 20, height: 20)
menuButton.addTarget(self, action: #selector(openSearch), for: .touchUpInside)
menuButton.setImage(UIImage(named: "icon_search"), for: UIControlState())
let menuBarButtonItem = UIBarButtonItem(customView: menuButton)

navigationItem.leftBarButtonItems = [menuBarButtonItem]

func openSearch() {
 // Some code
}
Run Code Online (Sandbox Code Playgroud)

ios swift

4
推荐指数
1
解决办法
5139
查看次数

Make a list row selectable in SwiftUI

I'm creating a list with custom rows in SwiftUI. When I tap one of them, I want the row to turn light gray until another tap is detected.

This doesn't happen with simple non-custom lists either.

Here's my list:

List{
        ForEach(blocks){ block in
            BlockRow(block: block)
        }
        .onDelete(perform: delete)
        .onMove(perform: day.move)
}
Run Code Online (Sandbox Code Playgroud)

When I tap on one of the items, nothing happens. If I create a simple list with storyBoards, I get the behavior I want:

期望的行为

ios swift swiftui

4
推荐指数
1
解决办法
3318
查看次数

不能使用变异成员...因为追加?

我很困惑为什么我得到这个错误(swift 4.2.1).

// next, select only entries in range
let filteredDataOpt: [TimeSeriesEntry?] = filteredApps
    .map { data in
        let isInDate = dates.contains { date in
            guard let d = date else {
                return false
            }
            return Calendar.current.isDate(d, equalTo: data.date, toGranularity: Calendar.Component.day)
        }
        return isInDate ? timeSeriesDataFromAppData(data) : nil
    }.append(contentsOf: locationsData.map { data in
        let isInDate = dates.contains { date in
            guard let d = date else {
                return false
            }
            return Calendar.current.isDate(d, equalTo: data.date, toGranularity: Calendar.Component.day)
        }
        return isInDate ? …
Run Code Online (Sandbox Code Playgroud)

swift

2
推荐指数
1
解决办法
127
查看次数