Unable to link my splash screen and app icons

Hello, I am unable to link my app icons and loading screens despite following the documentation. This is the error I’m getting:

Error: ENOENT: no such file or directory, copyfile '/Users/Ajay/Desktop/projects/ajay/resources/loadingScreen/Splash-640x1136.png' -> '/Users/Ajay/Desktop/projects/ajay/.meteor/local/cordova-build/resources/iphone5.splash.png'
...
errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/Users/Ajay/Desktop/projects/ajay/resources/loadingScreen/Splash-640x1136.png',
  dest: '/Users/Ajay/Desktop/projects/ajay/.meteor/local/cordova-build/resources/iphone5.splash.png'

The file does exist at the location, and the resources folder is located in the root directory (ajay/). Anyone able to shed any light on this? I doubt it’s a permission issue since I do have permission to R/W all the files in this entire directory.

I, can you show your mobile-config.js file ?

This is my file, I don’t believe there is anything wrong with this code. The icons and folders exist according to the correct path

App.launchScreens({
    iphone5: "resources/loadingScreen/Splash-640x1136.png",
    iphone6: "resources/loadingScreen/Splash-750x1334.png",
    iphone6p_portrait: "resources/loadingScreen/Splash-1242x2208.png",
    iphone6p_landscape: "resources/loadingScreen/Splash-2208x1242.png",
    iphoneX_portrait: "resources/loadingScreen/Splash-1125x2436.png",
    iphoneX_landscape: "resources/loadingScreen/Splash-2436x1125.png",
    ipad_portrait_2x: "resources/loadingScreen/Splash-1536x2048.png",
    ipad_landscape_2x: "resources/loadingScreen/Splash-2048x1536.png",
    iphone: "resources/loadingScreen/Splash-320x480.png",
    iphone_2x: "resources/loadingScreen/Splash-640x960.png",
    ipad_portrait: "resources/loadingScreen/Splash-768x1024.png",
    ipad_portrait: "resources/loadingScreen/Splash-1024x768.png",
    android_mdpi_portrait: "resources/loadingScreen/Splash-320x480.png",
    android_mdpi_landscape: "resources/loadingScreen/Splash-480x320.png",
    android_hdpi_portrait: "resources/loadingScreen/Splash-480x800.png",
    android_hdpi_landscape: "resources/loadingScreen/Splash-800x480.png",
    android_xhdpi_portrait: "resources/loadingScreen/Splash-720x1280.png",
    android_xhdpi_portrait: "resources/loadingScreen/Splash-1280x720.png",
    android_xxhdpi_portrait: "resources/loadingScreen/Splash-960x1600.png",
    android_xxhdpi_landscape: "resources/loadingScreen/Splash-1600x960.png",
    android_xxhdpi_landscape: "resources/loadingScreen/Splash-1280x1920.png",
    android_xxhdpi_landscape: "resources/loadingScreen/Splash-1920x1280.png"
    // More screen sizes and platforms...
});

weird…
try to delete entire directory “/Users/Ajay/Desktop/projects/ajay/.meteor/local/cordova-build” and rebuild app

1 Like

We dropped cordova development last month but I do not remember having explicit splashscreens for the following keys:

iphone5, iphone6, etc.

Let me check the documentation

Correction: so I remember the icons. Sorry, if this does not add anything but confusion

I tried this but it resulted in exactly the same error. Quite perplexing.