tns preview not recognizing ios images for tabview tabItems added via App_Resources












0















Inbox and calendar images in App_Resources directory



inbox and calendar images in App_Resources directory



They appear here and in the platforms > ios > AppName > Resources directory after running tns build.



Inbox and calendar images in platforms Resources directory



inbox and calendar images in platforms Resources directory



However when running app via tns preview, they do not sync to the phone/device



Missing inbox and calendar icons in tns preview



missing inbox and calendar icons in tns preview










share|improve this question





























    0















    Inbox and calendar images in App_Resources directory



    inbox and calendar images in App_Resources directory



    They appear here and in the platforms > ios > AppName > Resources directory after running tns build.



    Inbox and calendar images in platforms Resources directory



    inbox and calendar images in platforms Resources directory



    However when running app via tns preview, they do not sync to the phone/device



    Missing inbox and calendar icons in tns preview



    missing inbox and calendar icons in tns preview










    share|improve this question



























      0












      0








      0








      Inbox and calendar images in App_Resources directory



      inbox and calendar images in App_Resources directory



      They appear here and in the platforms > ios > AppName > Resources directory after running tns build.



      Inbox and calendar images in platforms Resources directory



      inbox and calendar images in platforms Resources directory



      However when running app via tns preview, they do not sync to the phone/device



      Missing inbox and calendar icons in tns preview



      missing inbox and calendar icons in tns preview










      share|improve this question
















      Inbox and calendar images in App_Resources directory



      inbox and calendar images in App_Resources directory



      They appear here and in the platforms > ios > AppName > Resources directory after running tns build.



      Inbox and calendar images in platforms Resources directory



      inbox and calendar images in platforms Resources directory



      However when running app via tns preview, they do not sync to the phone/device



      Missing inbox and calendar icons in tns preview



      missing inbox and calendar icons in tns preview







      ios icons nativescript preview tns






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 10:24









      Sateesh

      2,18711020




      2,18711020










      asked Nov 16 '18 at 10:11









      phillipintxphillipintx

      52




      52
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Short answer:



          Additions or deletions in the App_Resources directory are not sync to the preview app. When such changes are desired you will have to setup NativeScript and its dependencies on your machine (Android SDKs, Simulators, XCode etc.)



          Long answer:



          The tns preview command has some limitations to what changes can be synced and applied from your project. The general rule that you should have in mind is that any changes related to newly added files that cannot be converted to JS like image files, icons etc. will not be synced to the preview app. Such is the case with anything new you add to the App_Resources directory.



          When running tns preview you should be prompted with warning for any files that will not be synced in the terminal. Also you can run tns preview help to see notes regarding this command and how to use it.






          share|improve this answer
























          • I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

            – phillipintx
            Nov 16 '18 at 16:34











          • The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

            – Vladimir Amiorkov
            Nov 19 '18 at 7:43














          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53335615%2ftns-preview-not-recognizing-ios-images-for-tabview-tabitems-added-via-app-resour%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Short answer:



          Additions or deletions in the App_Resources directory are not sync to the preview app. When such changes are desired you will have to setup NativeScript and its dependencies on your machine (Android SDKs, Simulators, XCode etc.)



          Long answer:



          The tns preview command has some limitations to what changes can be synced and applied from your project. The general rule that you should have in mind is that any changes related to newly added files that cannot be converted to JS like image files, icons etc. will not be synced to the preview app. Such is the case with anything new you add to the App_Resources directory.



          When running tns preview you should be prompted with warning for any files that will not be synced in the terminal. Also you can run tns preview help to see notes regarding this command and how to use it.






          share|improve this answer
























          • I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

            – phillipintx
            Nov 16 '18 at 16:34











          • The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

            – Vladimir Amiorkov
            Nov 19 '18 at 7:43


















          0














          Short answer:



          Additions or deletions in the App_Resources directory are not sync to the preview app. When such changes are desired you will have to setup NativeScript and its dependencies on your machine (Android SDKs, Simulators, XCode etc.)



          Long answer:



          The tns preview command has some limitations to what changes can be synced and applied from your project. The general rule that you should have in mind is that any changes related to newly added files that cannot be converted to JS like image files, icons etc. will not be synced to the preview app. Such is the case with anything new you add to the App_Resources directory.



          When running tns preview you should be prompted with warning for any files that will not be synced in the terminal. Also you can run tns preview help to see notes regarding this command and how to use it.






          share|improve this answer
























          • I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

            – phillipintx
            Nov 16 '18 at 16:34











          • The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

            – Vladimir Amiorkov
            Nov 19 '18 at 7:43
















          0












          0








          0







          Short answer:



          Additions or deletions in the App_Resources directory are not sync to the preview app. When such changes are desired you will have to setup NativeScript and its dependencies on your machine (Android SDKs, Simulators, XCode etc.)



          Long answer:



          The tns preview command has some limitations to what changes can be synced and applied from your project. The general rule that you should have in mind is that any changes related to newly added files that cannot be converted to JS like image files, icons etc. will not be synced to the preview app. Such is the case with anything new you add to the App_Resources directory.



          When running tns preview you should be prompted with warning for any files that will not be synced in the terminal. Also you can run tns preview help to see notes regarding this command and how to use it.






          share|improve this answer













          Short answer:



          Additions or deletions in the App_Resources directory are not sync to the preview app. When such changes are desired you will have to setup NativeScript and its dependencies on your machine (Android SDKs, Simulators, XCode etc.)



          Long answer:



          The tns preview command has some limitations to what changes can be synced and applied from your project. The general rule that you should have in mind is that any changes related to newly added files that cannot be converted to JS like image files, icons etc. will not be synced to the preview app. Such is the case with anything new you add to the App_Resources directory.



          When running tns preview you should be prompted with warning for any files that will not be synced in the terminal. Also you can run tns preview help to see notes regarding this command and how to use it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 16 '18 at 14:48









          Vladimir AmiorkovVladimir Amiorkov

          1,5251824




          1,5251824













          • I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

            – phillipintx
            Nov 16 '18 at 16:34











          • The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

            – Vladimir Amiorkov
            Nov 19 '18 at 7:43





















          • I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

            – phillipintx
            Nov 16 '18 at 16:34











          • The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

            – Vladimir Amiorkov
            Nov 19 '18 at 7:43



















          I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

          – phillipintx
          Nov 16 '18 at 16:34





          I already have everything set up on my local machine and other images in App_Resources, like the “home” icon on third tab, are showing correctly in tns preview. It seems like they should work in tns preview if others are already working.

          – phillipintx
          Nov 16 '18 at 16:34













          The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

          – Vladimir Amiorkov
          Nov 19 '18 at 7:43







          The "Home" icon and others might be system icons that are by default included in the App Preview bundle but any additions you add will not be synced. If you already have the NativeScript development requirements installed on your local system simply use "tns run ios" "tns run android" rather than "tns preview". The preview option is more of a showcase to run NativeScript without the need of local installation, the "tns run" is much more powerful and should be used for bigger more customized projects.

          – Vladimir Amiorkov
          Nov 19 '18 at 7:43






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53335615%2ftns-preview-not-recognizing-ios-images-for-tabview-tabitems-added-via-app-resour%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Florida Star v. B. J. F.

          Danny Elfman

          Lugert, Oklahoma