CoronaUI - build fails because the project contains .lua files in subdirectories.

I put the CoronaUI folder in the root of my project, and then use this to access it:

CoronaUI = require(“coronaui”)

Works in the simulator, but when I go to build for the device, I get “The build failed because the project contains .lua files in subdirectories.”

What is the fix? [import]uid: 52127 topic_id: 9550 reply_id: 309550[/import]

move them out of the corona folder into your root.

c. [import]uid: 24 topic_id: 9550 reply_id: 34888[/import]

Guys,
This sub-directory test is overly aggressive. I have a whole debug folder with lots of Lua tools I use in terminal and Corona simulator to test my app before building. When I go to build for xCode or Device, I comment out all of the “require()” stmts that are loading these tools but I’m still getting this error:

The build failed because the project contains .lua files in subdirectories.

I should NOT be getting this message if my project code does not try to load code from sub-dirs.

Is this my mistake or is the test too brute-force??
[import]uid: 6175 topic_id: 9550 reply_id: 34898[/import]

test too brute-force?? YES -

sadly, you will need to work around it as it was a feature request to test against lua files in subdirectories. ideally, we should introduce a scan/don’t scan list of folders, if you want that, then add a bug/feature request in our bug database and we will prioritize it and see if where it lands.

c. [import]uid: 24 topic_id: 9550 reply_id: 34904[/import]

ok, I’ll move my debug folder each time I want to build. Instead of a “don’t scan” list, I would just ignore folders that are NOT referenced in a Lua “require” stmt…in other words, if the lua code is not being loaded or linked at build time, then (unless I misunderstand something) Corona should not care where it lives.

Thanks for the clarification…

[import]uid: 6175 topic_id: 9550 reply_id: 34918[/import]

The CoronaUI folder contains 124 files!! I have to move all of those into my root directory? All I really want from CoronaUI is the XML parser. [import]uid: 52127 topic_id: 9550 reply_id: 35091[/import]

the one here is the one from coronaui

http://lua-users.org/wiki/LuaXml

take it from there

c. [import]uid: 24 topic_id: 9550 reply_id: 35096[/import]