Skip to content

Apple Watch extension with space in name and .entitlements file not working. #5005

@KristianDD

Description

@KristianDD

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.0

Describe the bug
If the project has an Apple Watch Extension with a space in the name and ".entitlements" file the prepare step of the CLI will fail. The result is an invalid .xcodeproj.

To Reproduce

  1. 'tns create myProject -ts'
  2. Follow the steps for adding an Apple Watch App from here - [Tracking][Beta] Embedding Apple Watch App inside NativeScript App #4589.
  3. Add .entitlements file in the Watch App Extension
    4 tns run ios

Expected behavior
The prepare step to finish successfully and the project to be build and deployed on the device.

Sample project

Additional context

A workaround is to rename the Extension and .entitlements file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions