NativeScript / NativeScript/nativescript-cli

iOS issue with auto app signing while using plugin with custom framework

未关闭
#4,691 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug build os: ios
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment

  • CLI: 5.4.0
  • Cross-platform modules:5.4.1
  • Android Runtime:5.4.0
  • iOS Runtime:5.4.0

Describe the bug
The auto application signing will fail while building a project with tns run ios command where we have a plugin with custom native Framework. The following error will be thrown:

error: Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile. (in target 'demo')
note: Using new build systemnote: Planning buildnote: Constructing build description

It seems that the CLI does not mark the external Frameworks for signing.

Workaround

  1. open <app_name>/app/App_Resources/iOS/build.xcconfig and remove the line where the DEVELOPMENT_TEAM is set up

  2. In the terminal execute tns run ios --provision command. This will print a list of the provisioning profiles, that are available on your machine. In the very first column, the id of the provisions will be printed. This id will be used in the next step.

  3. build the project with tns run ios --provision <provisioning profile id here>.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用带有自定义原生 Framework 的插件,通过 tns run ios 重现构建,然后将其与文档中记录的 --provision workaround 进行比较。检查生成的 \u003capp_name\u003e/app/App_Resources/iOS/build.xcconfig 以及外部 Framework 的签名行为。在无需手动移除 DEVELOPMENT_TEAM 或选择 provisioning profile 的情况下,应用自动签名成功,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
build-system, cli, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。