As I’ve already posted on these forums, I’m trying to debug why my project works perfectly in Corona’s simulator, and doesn’t work at all after a build (it shows the background, and nothing else). I wanted to try and debug by iteratively adding chunks of code I’ve already written and adding them to my project. I’ve had trouble starting to do this, because, as it later became apparent, building with the same name twice causes a the app to crash under XCode simulator (i.e. launch and exit immediately).
I have an example of inconsistent behavior. This is due to including code from a .lua file that is in a subfolder of the root folder. Since the latest release notes contained the following piece of info:
“Added support for sub-folders in the app bundle for iPhone device builds”
I consider this a bug.
So, this reproduces a blank screen in XCode simulator, and a functional screen with text in Corona simulator, for me:
In a fresh project with main.lua in it, create a folder in the root folder, named “Folder”, place “requireFail.lua” inside it with the following code:
background = display.newRect(0,0, display.contentWidth, display.contentHeight);
background:setFillColor(0, 190, 220);
Code for main.lua:
require("Folder/requireFail");
local test = display.newText("Hello", 20, 20, "helvetica", 20);
test:setTextColor(255,0,0);
As a result, I get a blue background with text in Corona’s simulator, and a black screen in XCode’s simulator.
Also, if I remove the “require” line and build with the same name, the application crashes in XCode’s simulator. Building with a different name without the require is ok.
If the case is that folder structures don’t work, I really need to know if this is not supported, when it will be supported, and I’d like to urge developers to create a patch to support this ASAP. I’d also really appreciate help with getting my application to show up in XCode simulator exactly as it does in Corona simulator.
I’ve spent a lot of time on this already, and it really should not be this much of a problem, I’m really starting to get angry with the engine for all the misery I’m going through to get the same behavior in XCode’s simulator as in Corona’s simulator.
The reasons for my misery are things like long builds, unexpected reasons for failures - like merely adding an empty folder to the project and rebuilding with the same name - no errors in the XCode console that would point me in the right direction to fix things, etc. I realize being in a different time zone than the developers complicates support, so if AM is willing to help me with my problem at a scheduled time that I could stay in late and ask a couple of questions that I could get answers to reasonably quickly, that would be great.
If I could get a guarantee that by writing a custom parser that would transform my code base and file structure to a flat code base and file structure (which I don’t want to do, due to conflicting names), I would be prepared to solve my problem in this manner. I.e. if there are 100% no other discrepancies between Corona’s simulator and XCode’s simulator other than folder structure support, I’m OK with solving my problem myself. I don’t however want to do this extra work if this is not the problem, or if there are 10 other problems. [import]uid: 8145 topic_id: 2260 reply_id: 302260[/import]
[import]uid: 8145 topic_id: 2260 reply_id: 7119[/import]