NativeScript / NativeScript/nativescript-cli

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

Open
#4,691 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build os: ios
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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>.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the build with tns run ios using a plugin with a custom native Framework, then compare it with the documented --provision workaround. Inspect the generated <app_name>/app/App_Resources/iOS/build.xcconfig and the external Framework signing behavior. Done means auto application signing succeeds without manually removing DEVELOPMENT_TEAM or selecting a provisioning profile.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
build-system, cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.