Invalid file name?

Recently I’ve been working on hot fixes for my game. This is the 5th hot fixes for my game. I didn’t change any of the icons name but right now I am getting invalid binary due the the information provided by apple below:

Invalid File Name  - Your package contains a file 'appnamehere.app/Icon ’ with a name that contains invalid characters. Avoid using control characters in the file names.

I have no idea what is causing the Icon to have a space at the end. And where is the appnamehere.app/Icon located? I am using the stable version to build the binary

Thanks

  • Jeffrey Quek

Hi Jeffrey,

This may be in reference to the icon(s) you’re putting in the package, i.e. “Icon.png”. See the following guide under “Custom App Icons” to see what specific names and sizes you should be using. Also, make sure that if you’ve put one with a dash in there, it’s a real, valid dash (-), not an HTML “ndash” or extended dash. Sometimes if you copy the names from a website, it has changed them to a special character dash, not a plain one.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Sincerely,

Brent Sorrentino

I’ve check my icon files and all of the names are correct. I tried copying the whole folder to my PC from MAC and found a file not shown in my mac. The file name is "Icon . "

After checking online, the "Icon . " file is a custom folder icon attribute of some sort http://superuser.com/questions/298785/icon-file-on-os-x-desktop

However, previously this wasn’t detected by apple, I have no idea why it is being detected…

Hi Jeffrey,

So this file somehow got into your project folder? And it’s causing Apple to reject the binary?

Brent

Yes that seems like the case. Removing it solves the problem. However the weird thing is all my previous version of the game has this "icon . " thing in the folder (hidden file in mac), but apple didn’t reject or detect anything back then. 

Hi Jeffrey,

This may be in reference to the icon(s) you’re putting in the package, i.e. “Icon.png”. See the following guide under “Custom App Icons” to see what specific names and sizes you should be using. Also, make sure that if you’ve put one with a dash in there, it’s a real, valid dash (-), not an HTML “ndash” or extended dash. Sometimes if you copy the names from a website, it has changed them to a special character dash, not a plain one.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Sincerely,

Brent Sorrentino

I’ve check my icon files and all of the names are correct. I tried copying the whole folder to my PC from MAC and found a file not shown in my mac. The file name is "Icon . "

After checking online, the "Icon . " file is a custom folder icon attribute of some sort http://superuser.com/questions/298785/icon-file-on-os-x-desktop

However, previously this wasn’t detected by apple, I have no idea why it is being detected…

Hi Jeffrey,

So this file somehow got into your project folder? And it’s causing Apple to reject the binary?

Brent

Yes that seems like the case. Removing it solves the problem. However the weird thing is all my previous version of the game has this "icon . " thing in the folder (hidden file in mac), but apple didn’t reject or detect anything back then. 

This happened for me now second time in a row.

It is VERY cumbersome and time consuming to go to every directory in the game folder and remove the hidden “Icon” file (you have to do it in the command prompt or terminal whatever it is called on mac).

Please , can someone give a hint how to prevent this from happening.

This happened for me now second time in a row.

It is VERY cumbersome and time consuming to go to every directory in the game folder and remove the hidden “Icon” file (you have to do it in the command prompt or terminal whatever it is called on mac).

Please , can someone give a hint how to prevent this from happening.

*EDIT*

Ok this is caused by using Drop Box with a PC (I like developing on my PC for various reasons).

This process poops weird hidden files into your DropBox, which you must delete in Unix before building.

To delete in UNIX if you dont know, you open command prompt and go

cd DropBox

cd YourGameFolder

ls 

ls will show a directory listing, look for files named weird things with ? or whitespace characters.

rm WeirdFileName

now build, and profit. :smiley:

*EDIT*

Ok this is caused by using Drop Box with a PC (I like developing on my PC for various reasons).

This process poops weird hidden files into your DropBox, which you must delete in Unix before building.

To delete in UNIX if you dont know, you open command prompt and go

cd DropBox

cd YourGameFolder

ls 

ls will show a directory listing, look for files named weird things with ? or whitespace characters.

rm WeirdFileName

now build, and profit. :smiley: