Hey,
After a lot of work on certificates and such, I got the Gideros Player app (with custom plug-ins, media and notifications) 'working' on my iPhone 5. This means: the app starts, Gideros Studio recognizes it, and all files are uploaded to it. However, when it starts running, the following error is produced:
"lib/display.lua:1: unexpected symbol near '�'" (the last character is displayed as a questionmark')
What is happening here?!
Thanks,
-Vincent
Comments
'unexpected symbol near '\275'"
I usually use such feature in Nodepad++ to select encoding in which to save file
http://www.instructables.com/answers/What-causes-these-strange-characters-to-appear/
Could you please attach one file causing the trouble as example?
But I'm pretty sure the issue is not in the file...
- Project works fine on Windows Gideros Player and compiled Android Gideros Player
- Files themselves do not seem to contain any extra characters or something, and the encoding is correct
- Unexpected symbol errors occur in both the iOS Gideros Player (launched on an OS X Gideros Studio or Windows Gideros studio; that doesn't matter) and the Mac OS Gideros Player.
Thus, I think the Gideros Player for iOS/OS X contains some error in storing/reading the files?
It would be helpful if this could be fixed soon, as this halts all progress on our app right now (i.e. releasing an iOS version)
"lib/display.lua:1: unexpected symbol near 'ï"
But file you provided indeed does not contain it.
And also if it is BOM, then it should also not work on Windows.
On Gideros side there is nothing added to the files. There has never been a similar problem.
So does the error happens only with this one file? What changes do you make/editors you use on the files on Mac?
Also you can test files, by typing in the console
@ar2rsawseen No, every file has this issue; display.lua just seems the first to be run. I don't think this issue is host-specific though, because as mentioned in my last post, this problem even occurs when I try to run the project from a Windows Gideros studio. Again both Mac and iOs player show this issue on exactly the same files run from exactly the same Gideros Studio, whilst the Windows and Android players do not. Really strange
Edit: and again, this happens on Mac Gideros Player (with Mac Studio of course) as well, so...
On another note, I have recently submitted Android and iOS versions of my app that use that Lua file and everything works fine with Gideros 2014.01 on my Mac Mini OS X Mavericks.
This is a wild guess, but check if you had exported your projects with non encrypted assets and then exported encrypted assets. Maybe export assets only does not change the project's "asset encryption" property and is causing problems when requiring lua files. I remember having issues with an "encrypted assets" custom Gideros player.
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
@atilim @ar2rsawseen I guess the encryption setting is not respected when sending files to the player app? Whilst I can understand this, this info really needs to be included in the tutorial of how to build a custom Gideros Player....
1) you have exported Player project as with encryption, but using files which are not encrypted (Basically if you want to use app as a player, always export it without encryption, or else it won't work as player)
2) you have exported player without encryption, but you are using lua files with encryption
3) lua file is just messed up (either by opening it up in editor which ads BOM, or corrupted through download, etc.)