无法从XCode 9导出Apple ID(Cannot export Apple ID from Xcode 9)

我试图从XCode 9内导出我的Apple ID。

出现的错误消息说:

无法与助手应用程序通信。

再次尝试您的操作。 如果失败,请退出并重新启动应用程序,然后重试。

我确实重新启动了一切,并重新创建了我的证书 - 没有运气。

我的操作系统是macOS High Sierra。

知道任何人如何解决这个问题?


I'm trying to export my Apple ID from within Xcode 9.

The error message that appears says:

Couldn’t communicate with a helper application.

Try your operation again. If that fails, quit and relaunch the application and try again.

I did restart everything and also recreated my certificate - without luck.

My OS is macOS High Sierra.

How to solve this?


原文:https://stackoverflow.com/questions/49632898
2023-05-16 21:05

满意答案

你的共同的孩子模态组件如下

import {Component,Input, ViewChild} from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap';

@Component({
  selector: 'common-modal',
  template: `
   <div bsModal #childModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title pull-left">{{title}}</h4>
        <button type="button" class="close pull-right" aria-label="Close" (click)="hideChildModal()">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <ng-content select=".modal-body"> </ng-content>
      </div>

      <div class="modal-footer">
        <div class="pull-left">
          <button class="btn btn-default" (click)="hide()"> Cancel </button>
        </div>
      </div>
    </div>
  </div>
</div>
  `,
})
export class CommonModalComponent {
   @ViewChild('childModal') public childModal:ModalDirective;
   @Input() title:string;
  constructor() {
  }
  show(){
    this.childModal.show();
  }
  hide(){
    this.childModal.hide();
  }
}

在父组件中使用子组件将如下所示

import {Component, ViewChild, NgModule,ViewContainerRef} from '@angular/core'
import { BrowserModule } from '@angular/platform-browser';
import { ModalDirective,ModalModule } from 'ngx-bootstrap';
import {CommonModalComponent} from './child.modal';
@Component({
  selector: 'my-app',
  template: `
    <button type="button" class="btn btn-primary" (click)="childModal.show()">Open modal</button>
    <common-modal  #childModal [title]="'common modal'"> 
    <div class="modal-body">
    Hi heloo </div>
    </common-modal> 

  `,
})
export class AppComponent {
  @ViewChild('childModal') childModal :CommonModalComponent;
  constructor(private viewContainerRef: ViewContainerRef) {
  }

}

使用上面的代码,你可以有一个单独的公共模式对话框,可以重复使用,以便您的页眉和页脚保持不变,您可以使用Content-Projection来改变模式对话框的主体。

现场演示


Your common child modal component will be as below

import {Component,Input, ViewChild} from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap';

@Component({
  selector: 'common-modal',
  template: `
   <div bsModal #childModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title pull-left">{{title}}</h4>
        <button type="button" class="close pull-right" aria-label="Close" (click)="hideChildModal()">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <ng-content select=".modal-body"> </ng-content>
      </div>

      <div class="modal-footer">
        <div class="pull-left">
          <button class="btn btn-default" (click)="hide()"> Cancel </button>
        </div>
      </div>
    </div>
  </div>
</div>
  `,
})
export class CommonModalComponent {
   @ViewChild('childModal') public childModal:ModalDirective;
   @Input() title:string;
  constructor() {
  }
  show(){
    this.childModal.show();
  }
  hide(){
    this.childModal.hide();
  }
}

Using the child component in your parent component will look as below

import {Component, ViewChild, NgModule,ViewContainerRef} from '@angular/core'
import { BrowserModule } from '@angular/platform-browser';
import { ModalDirective,ModalModule } from 'ngx-bootstrap';
import {CommonModalComponent} from './child.modal';
@Component({
  selector: 'my-app',
  template: `
    <button type="button" class="btn btn-primary" (click)="childModal.show()">Open modal</button>
    <common-modal  #childModal [title]="'common modal'"> 
    <div class="modal-body">
    Hi heloo </div>
    </common-modal> 

  `,
})
export class AppComponent {
  @ViewChild('childModal') childModal :CommonModalComponent;
  constructor(private viewContainerRef: ViewContainerRef) {
  }

}

Using the above code you can have a separate common modal dialog which can be reused, so that your header & footer remains the same and you can use Content-Projection to use change the body of the modal dialog.

LIVE DEMO

相关问答

更多

Angular2:模态对话框不捕获键事件(Angular2: Modal Dialog does not catch key-events)

我是那篇文章的原作者,抱歉延迟,也许还不算太晚:) 1)不太清楚你的意思2)我已经更新了答案,可以一次显示多个模态 。 The following code import { Component, ViewChild, Input } from '@angular/core'; @Component({ selector: 'app-modal', template: ` <div class="modal fade" tabindex="-1" [ngClass]="{'in'...

角度2.0和模态对话框(Angular 2.0 and Modal Dialog)

这是一个非常好的例子,说明如何在GitHub的Angular2应用程序中使用Bootstrap模式。 它的要点是可以将bootstrap html和jquery初始化包装在组件中。 我创建了一个可重用的modal组件,允许您使用模板变量触发打开。 <button type="button" class="btn btn-default" (click)="modal.open()">Open me!</button> <modal #modal> <modal-header [show-...

如何在对话框中确定它是否由其父项打开为模态或非模态对话框?(How determine within a dialog form if it was opened as a modal or non-modal dialog by its parent?)

Form类具有Modal属性: 您可以使用此属性来确定是否已以模态方式显示从方法或属性获取的表单。 The Form class has a Modal property: You can use this property to determine whether a form that you have obtained from a method or property has been displayed modally.

如何在Angular 2中获得具有模态对话条件的元素?(How to get an element with condition of modal dialog in Angular 2?)

所以要回答我自己的问题,我不得不使用@ViewChildren而不是@ViewChild 。 @ViewChildren注解将为你的变量分配一个QueryList对象,让你访问你需要的元素(我使用.toArray()来获取元素数组,在这种情况下,它将只是一个)。 说到更改检测问题,我得到了这个答案,使用ngAfterViewChecked()方法,我可以实现我需要的向下滚动。 So to answer my own question, I had to use @ViewChildren inst...

顶级模态对话框,涵盖整个角度应用(top-level modal dialog to cover whole angular application)

有几种方法可以做到这一点。 由于模态本身就是服务,因此您可以直接从服务中调用open。 或者,该服务可以发布可以监听的事件并触发登录页面。 如果你真的想要观看一个特定的变量(因为它可能会从不同的地方更改),你可以在$ rootScope上设置$ watch然后调用open。 There are several ways you can do this. Since the modal is a service itself, you could really just call open dire...

如何在Angular 2及更高版本中实现模态对话框(How to implement Modal Dialog in Angular 2 and above)

你的共同的孩子模态组件如下 import {Component,Input, ViewChild} from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap'; @Component({ selector: 'common-modal', template: ` <div bsModal #childModal="bs-modal" class="modal fade" tabindex="-1" rol...

Angular2模态对话框(Angular2 modal dialog)

我有一个类似的问题,我通过在我的根模块组件中添加一个模态,并在我的应用程序中提供ModalService来解决它。 ModalService用作事件调度程序,用于调度模态事件。 仅使用签名(为了易于理解,实现并不那么难): @Injectable() export class ModalService{ public registerModal(name:string, onPop:()=>void):void; public popModal(name:string):void;...

使用Angular 2创建独立模式对话服务(Create standalone modal dialog service with Angular 2)

您可以在应用程序中创建单独的模块,以便使用组件,服务,指令处理某些功能......最后,您可以将模块注入主(根)模块并开始使用类似第3部分库。 处理该案例的精彩教程就在这个LINK上 。 I figured out how to create a simple dialog box with angular 2 service. The main concept is to programmatically create an overlay then attach its hostView to...

如何解除角度js中的所有模态对话框(How can dismiss all modal dialog in angular js)

用$ uibModalStack替换$ modalStack 即$uibModalStack.dismissAll() Replace $modalStack with $uibModalStack i.e. $uibModalStack.dismissAll()

如何使用模态对话框Angular 2编辑ngxdatatable(How to edit ngxdatatable using modal dialog Angular 2)

选择行进行编辑时,您可能需要使用editingData修补EditOfficeForm formGroup。 像这样的东西: this.EditOfficeForm.patchValue(this.editingData); When a row is selected for edit you probably have to patch the EditOfficeForm formGroup with editingData. Something like that: this.EditO...

相关文章

更多

微信将推指纹支付 "指付通"会与Touch ID整合吗

  有消息称微信下一版本将推指纹支付“指付通”,解决手机丢失资金安全的问题(这个应该是针对阿里手机支付 ...

MongoDB _id和ObjectId详解

在创建一个文档的时候,会生成一个_id,id的默认类型是ObjectId,如: &gt; db. ...

solr required field: id

为了和以前的程序兼容,在solr建立索引的时候,将id设为gid,结果在建立索引时候出现如下错误: o ...

js 通过td的id值 如何拿到tr的id值?

有以下代码:&lt;tr id=&quot;bb&quot;&gt;&lt;td id=&quot;a ...

html中一个div的id是“1:222”的话,怎么利用id给它定义css啊?

如 &lt;style&gt; #1:2{ height:100px; width:100px ...

mysql in根据查询id排序

mysql in根据查询时,返回结果是自行排序的​,如果要按照我们查询的ID进行排序,要用到order ...

配置solr自动生成id

schema.xml ======================================== ...

别拿Hadoop map key当id使

在写mapreduce时,发现一个问题: Hadoop的map函数的key一般是输入文件的行号,于是乎 ...

使用TabPanel时,如果两个页面存在相同的id。

我左边是一颗tree,右边是TabPanel。当点击一个结点 A,autoload一个页面 A.jsp ...

solr4.0 id 自动生成

一、配置schema.xml文件 1、添加fieldType &lt;types&gt; & ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本