小编Dan*_*sta的帖子

Phonegap IOS使用build.json进行签名

我最初使用Phonegap构建服务来创建我的"调试"应用程序,这需要一个.p12文件和一个配置文件,但现在他们已经准备好进行生产我正在使用一个脚本结合钩子在本地构建我的"发布"应用程序使用Phonegap cli 6.4

phonegap build --release --buildConfig build.json
Run Code Online (Sandbox Code Playgroud)

我在命令行中遇到此错误

Error: Error code 65 for command: xcodebuild with args: 
-xcconfig,/Users/cuesta/workspace/mobile/platforms/ios/cordova/build-release.xcconfig,-workspace,myappname.xcworkspace,-scheme,myappname,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/cuesta/workspace/mobile/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/cuesta/workspace/mobile/platforms/ios/build/sharedpch
Run Code Online (Sandbox Code Playgroud)

此命令失败后

CompileAssetCatalog build/emulator/myappname.app myappanem/Images.xcassets
Run Code Online (Sandbox Code Playgroud)

我的猜测是我的build.json配置错误的IOS构建.所以我的问题是:

- 我在哪里可以找到"codeSignIdentity"或请解释以下内容.

用于签名的代码签名身份.它可以使用Xcode创建并添加到您的钥匙串中.https://cordova.apache.org/docs/en/latest/guide/platforms/ios/

- 开发团队是我放"teamId"的吗?

- 我的"teamId"是否可能与我的app id前缀完全相同?

我有一个prod证书(导出到.p12)和prod provisining文件准备好了.(下面的模板)

"ios": {
    "debug": {
        "codeSignIdentity": "iPhone Development",
        "provisioningProfile": "confirmedcorrect",
        "developmentTeam": "10or12",
        "packageType": "development"
    },
    "release": {
        "codeSignIdentity": "iPhone Distribution",
        "provisioningProfile": "confirmedcoorect",
        "developmentTeam": "10or12",
        "packageType": "app-store"
    }
}
Run Code Online (Sandbox Code Playgroud)

build ios phonegap-cli

6
推荐指数
1
解决办法
7532
查看次数

Angular HttpClient 方法不转换响应类型

刚刚开始使用新的 HttpClient,但每当我拨打电话时,响应都不会使用提供的类型进行转换。我尝试了接口和类。现在我假设您只能使用接口来转换为响应,因为这是我们在文档中看到的唯一示例。

我宁愿使用一个类在模型中包含一些辅助函数。有没有办法以这种方式实现这一目标?

成分

export class InvoicesComponent implements OnInit{    
invoices;

constructor(private invoiceService: InvoiceService){}

ngOnInit() {
   this.invoiceService.index()
   .subscribe(
       (invoices) => {
           console.log(this.invoices);
       }
    );
}
Run Code Online (Sandbox Code Playgroud)

服务等级

export class InvoiceService {
constructor(private api :HttpClient) {}   

  index() {
    return this.api.get<Array<Invoice>>('/invoices');
  }
}
Run Code Online (Sandbox Code Playgroud)

界面

import { Customer } from "./Customer";
import { Payment } from "./Payment";

export interface IInvoice{
id: number;
user_id: number;
number: string;
cost: number;
status: number;
customer: Array<Customer>;
payments: Array<Payment>;
created_at: Date;

updated_at: Date;
deleted_at: Date;
}
Run Code Online (Sandbox Code Playgroud)

casting http angular

3
推荐指数
1
解决办法
3292
查看次数

标签 统计

angular ×1

build ×1

casting ×1

http ×1

ios ×1

phonegap-cli ×1