Skip to content

Renaming App_Resources folder leads to failure in loading the app resources #3401

Closed
@Natalia-Hristova

Description

@Natalia-Hristova

Please, provide the details below:

Tell us about the problem

If you rename App_Resources folder and set the new path in nsconfig.json - app builds and runs but the installed app has no icon - Failed to find LaunchScreen.storyboard ...

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

  1. tns create SomeApp
  2. Rename App_Resources folder
  3. In project root folder create nsconfig.json with the new path to App_Resources folder like this:
  4. tns run ios
{
    "appResourcesPath": "app/My_App_Resources"
}

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Here is the log

Project successfully created.
Preparing project...
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Failed to find LaunchScreen.storyboard but it was specified in the Info.plist.
Consider updating the resources in app/App_Resources/iOS/.
A good starting point would be to create a new project and diff the changes with your current one.
Also the following repo may be helpful: https://github.com/NativeScript/template-hello-world/tree/master/App_Resources/iOS
We will now place an empty obsolete compatability white screen LauncScreen.xib for you in platforms/ios/AppNSConfig3/Resources/LaunchScreen.xib so your app may appear as it did in pre v2.1.0 versions of the ios runtime.
Project successfully prepared (iOS)
Building project...
Xcode build...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions