NativeScript / NativeScript/nativescript-cli
iOS issue with auto app signing while using plugin with custom framework
Nobody has claimed this yet.
- 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
-
open
<app_name>/app/App_Resources/iOS/build.xcconfigand remove the line where theDEVELOPMENT_TEAMis set up -
In the terminal execute
tns run ios --provisioncommand. 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. -
build the project with
tns run ios --provision <provisioning profile id here>.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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