Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Natalia-Hristova opened this issue Feb 27, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@Natalia-Hristova
Copy link

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

@Natalia-Hristova
Copy link
Author

This is fixed in the current master branch and the next tag of nativescript-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants