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?
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.
連結已複製
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?
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
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.
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.
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?
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.
