Software Archive
Read-only legacy content
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussões

iOS icon in plist

Alessandro_S_
Principiante
2.661 Visualizações

Hello, since from today my XDK ver 2365 make a wrong plist file.

Same project as yesterday, plists different, so not every icon is passed in plist and app misses icon (so standard cordova is used onto devices).

How it comes?

 

0 Kudos
1 Solução
PaulF_IntelCorp
Funcionário
2.661 Visualizações

Having your "source" directory equal to "" (that is, equal to the root of your project directory) is probably the source of this problem, for reasons that are hard to explain. That directory structure may also not upgrade well into the next release of the XDK and should also be changed for that reason. Try doing the following:

  • make a copy of your existing project, the entire project directory
    on Windows, use File Explorer to "right-click" and "copy" your project directory, then "right-click" and "paste"
    on Mac use Finder to to "right-click" and then "duplicate" your project directory
     
  • create a "www" directory inside the new duplicate project you just created above
     
  • move your index.html and other source and asset files to the "www" directory you just created -- this is now your "source" directory, located inside your "project" directory (do not move the <project-name>.xdk and xdke files and any intelxdk.config.*.xml files, those must stay in the root of the project directory)
     
  • inside the new project that you made above, rename the <project-name>.xdk file and <project-name>.xdke files to something like project-copy.xdk and project-copy.xdke (anything you like, just different than the original, preferably the same name as the new project folder in which you are doing this)
     
  • using a TEXT EDITOR (only), such as Notepad or Sublime or Brackets or some other TEXT editor, open the new "project-copy.xdk" file (whatever you named it) and find the line named projectGuid, it will look something like this:
    "projectGuid": "a863c382-ca05-4aa4-8601-375f9f209b67",
     
  • change the "GUID" to all zeroes, like this: "00000000-0000-0000-000000000000"
     
  • a few lines down find: "sourceDirectory": "",
  • change it to this: "sourceDirectory": "www",
     
  • save the modified "project-copy.xdk" file
  • open the Intel XDK
  • go to the Projects tab
  • select "Open an Intel XDK Project" (green button) at the bottom left of the Projects tab
  • locate the new "project-copy.xdk" file inside the new project folder you copied above
  • now try the trick I provided above

Let me know if that works.

Ver solução na publicação original

14 Respostas
Elroy_A_Intel
Funcionário
2.661 Visualizações

I will escalate this issue to our Intel XDK Build team.

Elroy_A_Intel
Funcionário
2.661 Visualizações

I recommend trying a build right now. The build system is regularly updated which could have resulted in the issues in your plist file. Can you provide your complete Build log?

Alessandro_S_
Principiante
2.661 Visualizações

I tried now, and I have the same problem.

Anyway, I think that a developer should be worried only about his code issues, not about developing environment issues.

 

I put my log in attachment.

Please help me, my customers ask me for the problem and I don't know how to answer.

PaulF_IntelCorp
Funcionário
2.661 Visualizações

Inspecting the build log you attached, I see the following icons and splash screens:

Copying icon from .../Visitami_Prof/www/60.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/icons/icon-60.png
Copying icon from .../Visitami_Prof/www/120.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/icons/icon-60@2x.png
Copying icon from .../Visitami_Prof/www/180.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/icons/icon-60@3x.png
Copying icon from .../Visitami_Prof/www/76.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/icons/icon-76.png
Copying icon from .../Visitami_Prof/www/152.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/icons/icon-76@2x.png
Copying splash from .../Visitami_Prof/www/i480.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/splash/Default~iphone.png
Copying splash from .../Visitami_Prof/www/i960.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/splash/Default@2x~iphone.png
Copying splash from .../Visitami_Prof/www/i1136.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/splash/Default-568h@2x~iphone.png
Copying splash from .../Visitami_Prof/www/i1334.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/splash/Default-667h.png
Copying splash from .../Visitami_Prof/www/i2208.png to .../Visitami_Prof/platforms/ios/Visitami_Prof/Resources/splash/Default-736h.png

Is this the list of icons and splash screens you expect to be part of your app?

Alessandro_S_
Principiante
2.661 Visualizações
Yes. If it may help, in the plist yesterday there was icon in the icon list, today at the same place there is icon.png
Alessandro_S_
Principiante
2.661 Visualizações
So, any news?
PaulF_IntelCorp
Funcionário
2.661 Visualizações

Are you sure the icons are not present in the app? Have you tried installing the app onto a device? See this post for some details: https://software.intel.com/en-us/forums/intel-xdk/topic/593887

Alessandro_S_
Principiante
2.661 Visualizações
Yes because this is a project perfectly working til yesterday. The app on real device has icon but doesnt have any more icons for finder and push. Yesterday the app had these icons. I have icons on the main root as index.html. What is changed?
PaulF_IntelCorp
Funcionário
2.661 Visualizações

Try using this technique, in your intelxdk.config.additions.xml file, and let me know if it works:

<!-- iOS icons -->
<!-- Spotlight Icon -->
    <icon platform="ios" src="pkg/ios/icon-40.png" width="40" height="40" />
    <icon platform="ios" src="pkg/ios/icon-40@2x.png" width="80" height="80" />
    <icon platform="ios" src="pkg/ios/icon-40@3x.png" width="120" height="120" />
<!-- iPhone / iPod Touch -->
    <icon platform="ios" src="pkg/ios/icon.png" width="57" height="57" />
    <icon platform="ios" src="pkg/ios/icon@2x.png" width="114" height="114" />
    <icon platform="ios" src="pkg/ios/icon-60.png" width="60" height="60" />
    <icon platform="ios" src="pkg/ios/icon-60@2x.png" width="120" height="120" />
    <icon platform="ios" src="pkg/ios/icon-60@3x.png" width="180" height="180" />
<!-- iPad -->
    <icon platform="ios" src="pkg/ios/icon-72.png" width="72" height="72" />
    <icon platform="ios" src="pkg/ios/icon-72@2x.png" width="144" height="144" />
    <icon platform="ios" src="pkg/ios/icon-76.png" width="76" height="76" />
    <icon platform="ios" src="pkg/ios/icon-76@2x.png" width="152" height="152" />
<!-- iPhone Spotlight and Settings Icon -->
    <icon platform="ios" src="pkg/ios/icon-small.png" width="29" height="29" />
    <icon platform="ios" src="pkg/ios/icon-small@2x.png" width="58" height="58" />
    <icon platform="ios" src="pkg/ios/icon-small@3x.png" width="87" height="87" />
<!-- iPad Spotlight and Settings Icon -->
    <icon platform="ios" src="pkg/ios/icon-50.png" width="50" height="50" />
    <icon platform="ios" src="pkg/ios/icon-50@2x.png" width="100" height="100" />

Note the icons must be located within your www directory and are located relative to that folder in the example above (that is, they are located in <project-root>/www/pkg/ios/icon). You don't have to organize them exactly as shown above, but they must be inside the www directory.

Alessandro_S_
Principiante
2.661 Visualizações
Ok but the directory where I have index.html is root not www. I dont have www folder in my project. Should i create it and put icons inside? Ps. If i open ipa file with winzip i see www folder with icons even if i dont have www folder in my project; If i replace the plist file in my new and not working ipa with plist file coming from ipa built yesterday everything works well: so the ptoblem is not icons not in package but a wrong plist file generated in new build.
PaulF_IntelCorp
Funcionário
2.662 Visualizações

Having your "source" directory equal to "" (that is, equal to the root of your project directory) is probably the source of this problem, for reasons that are hard to explain. That directory structure may also not upgrade well into the next release of the XDK and should also be changed for that reason. Try doing the following:

  • make a copy of your existing project, the entire project directory
    on Windows, use File Explorer to "right-click" and "copy" your project directory, then "right-click" and "paste"
    on Mac use Finder to to "right-click" and then "duplicate" your project directory
     
  • create a "www" directory inside the new duplicate project you just created above
     
  • move your index.html and other source and asset files to the "www" directory you just created -- this is now your "source" directory, located inside your "project" directory (do not move the <project-name>.xdk and xdke files and any intelxdk.config.*.xml files, those must stay in the root of the project directory)
     
  • inside the new project that you made above, rename the <project-name>.xdk file and <project-name>.xdke files to something like project-copy.xdk and project-copy.xdke (anything you like, just different than the original, preferably the same name as the new project folder in which you are doing this)
     
  • using a TEXT EDITOR (only), such as Notepad or Sublime or Brackets or some other TEXT editor, open the new "project-copy.xdk" file (whatever you named it) and find the line named projectGuid, it will look something like this:
    "projectGuid": "a863c382-ca05-4aa4-8601-375f9f209b67",
     
  • change the "GUID" to all zeroes, like this: "00000000-0000-0000-000000000000"
     
  • a few lines down find: "sourceDirectory": "",
  • change it to this: "sourceDirectory": "www",
     
  • save the modified "project-copy.xdk" file
  • open the Intel XDK
  • go to the Projects tab
  • select "Open an Intel XDK Project" (green button) at the bottom left of the Projects tab
  • locate the new "project-copy.xdk" file inside the new project folder you copied above
  • now try the trick I provided above

Let me know if that works.

Alessandro_S_
Principiante
2.661 Visualizações

it has worked! You forgot to explain that I had to move files into www leaving out project files, configuration and so on.

Anyway spotlight on iPhone5s still misses icon and cordova standard is shown. spotlight on iPhone4 and iPhone6 are ok.

Push icon is ok on iPhone4,5,6.

Another question: during installation cordova icon is shown, but when installed the correct icon is shown: how it comes?

PaulF_IntelCorp
Funcionário
2.661 Visualizações

When I woke up this morning I realized I forgot that important step of moving your index.html and other source files to the www directory! I'm glad you figured out that crucial step! :) -- I've edited my post to reflect that missing step...

Not sure why the spotlight on the iPhone5s is missing, my list of icons in the prior post should represent everything you need, double-check to be sure you've got something equivalent to all that I listed in that post.

Regarding the Cordova icon being shown during install, that will require some deeper investigation. I've already got the build engineer looking at this thread, he may know what is causing that to happen.

Alessandro_S_
Principiante
2.661 Visualizações

oh thank you anyway!

Please can You help me for my new issue about facebook plugin? Just put in the forum a new thread. I'm stuck and I don't know how to handle my customers

Responder