NativeScript / NativeScript/nativescript-cli

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

オープン
#4,691 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug build os: ios
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、カスタムネイティブ Framework を持つプラグインを使用して tns run ios でビルドを再現し、その後、文書化されている --provision の回避策と比較します。生成された \u003capp_name\u003e/app/App_Resources/iOS/build.xcconfig と、外部 Framework の署名動作を調査します。DEVELOPMENT_TEAM を手動で削除したり、プロビジョニングプロファイルを選択したりせずに、アプリケーションの自動署名が成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, javascript
領域
build-system, cli, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。