Corona SDK 2012.968 Issue

Hello Developers,

I downloaded and tried the todays daily build 2012.968.

Before the update i was able to build and test on devices both Android and iOS.

But today i updated Corona with todays build 2012.968 and tried to build for Android, and it works fine.

But when i build for iOS (both iOS Simulator and device), then i get error saying “analytics.lua” not found, and when i removed the all analytics stuff, i got another error saying “ads.lua” not found.

So the issue is i get error every where i do “require” in the project.

I m using corona 2012.968, xcode 4.5.2 and Mac OS 10.8.2.

Does anybody have any idea whats the issue is?

Your help is greatly appreciated.

Thanks in advance.

Regards. [import]uid: 147582 topic_id: 32975 reply_id: 332975[/import]

I had this issue too but it was with an earlier build. I had this in my main.lua :

require “analytics”
analytics.init( “ANALYTICS CODE IN HERE” )

and i changed it to…

analytics = require “analytics”
analytics.init( “ANALYTICS CODE IN HERE” )

That seemed to sort out the issue. [import]uid: 79620 topic_id: 32975 reply_id: 130926[/import]

@rebelwax,

Thanks for your reply and help.

actually i m already doing this, like as below:

[lua]-- main.lua
local analytics = require(“analytics”)
local ads = require(“ads”)
local revmobrequire(‘revmob’)
local storyboard = require( “storyboard” )
local functions = require( “functions” )[/lua]

so is there anything i can try?

Btw whic build you was having the problem? did u changed any preference in corona library folder?

Thanks again for your great help.

Regards,
[import]uid: 147582 topic_id: 32975 reply_id: 130936[/import]

I had this issue too but it was with an earlier build. I had this in my main.lua :

require “analytics”
analytics.init( “ANALYTICS CODE IN HERE” )

and i changed it to…

analytics = require “analytics”
analytics.init( “ANALYTICS CODE IN HERE” )

That seemed to sort out the issue. [import]uid: 79620 topic_id: 32975 reply_id: 130926[/import]

@rebelwax,

Thanks for your reply and help.

actually i m already doing this, like as below:

[lua]-- main.lua
local analytics = require(“analytics”)
local ads = require(“ads”)
local revmobrequire(‘revmob’)
local storyboard = require( “storyboard” )
local functions = require( “functions” )[/lua]

so is there anything i can try?

Btw whic build you was having the problem? did u changed any preference in corona library folder?

Thanks again for your great help.

Regards,
[import]uid: 147582 topic_id: 32975 reply_id: 130936[/import]

Hey Neostar,

If you could provide a basic sample that shows this behavior and submit a bug report, then post the # here, I would be happy to bring this up in our next meeting and try to get it addressed. (Be sure to mention the build number in your bug report.)

Peach :slight_smile: [import]uid: 52491 topic_id: 32975 reply_id: 130982[/import]

@neostar20
Try removing the local definition.

So…
local analytics = require(“analytics”)

becomes

analytics = require(“analytics”)

Ben [import]uid: 28534 topic_id: 32975 reply_id: 131004[/import]

We change our standard libraries to support modern Lua conventions, which removes the library name from the global name space. You should change the way you load library files to follow the following convention:

local analytics = require( "analytics" )

(You may need to remove the “local” if you try to access in other files. You could also require the library in all the files that need the library.) [import]uid: 7559 topic_id: 32975 reply_id: 131007[/import]

Hey Neostar,

If you could provide a basic sample that shows this behavior and submit a bug report, then post the # here, I would be happy to bring this up in our next meeting and try to get it addressed. (Be sure to mention the build number in your bug report.)

Peach :slight_smile: [import]uid: 52491 topic_id: 32975 reply_id: 130982[/import]

I just posted a problem I encountered with daily build 968 here: http://developer.coronalabs.com/forum/2012/11/14/daily-build-968-error-device-build-error-occurred-server

I re-read the original post by @neostar20 more carefully, and I realize the problem might be very much the same but error message is different because I don’t require analytics, ads or revmob.

I do require storyboard – but the error message does not complain about not finding the storyboard.

Naomi

Edit: In every module I require storyboard, I do [text]local storyboard = require( “storyboard” )[/text] – so the device error I’m getting probably isn’t anything to do with requiring storyboard. There must be something else going on with the daily build 968? [import]uid: 67217 topic_id: 32975 reply_id: 130987[/import]

@peach,

Thanks for your reply, actually i was waiting to see if the issue is not from corona side so i can confirm and post a bug report. Still need to check if the build is breaking the library/module behaviour.

@Naomi,

Thanks for letting us know about the issue. did you fixed it? Update me if it was working.

@BenM,

Actually i am already doing this, as i posted above:

in my whole project, there is noting like:

[lua]require “ads”
– or
require ‘revmob’[/lua]

actually its like this:
[lua]ads = require “ads”
– or
revmob = require ‘revmob’[/lua]

@Tom,

Thanks for the information, but as i mentioned above, i m already doing this, but will try again with 966, 967 and again with 968 builds.

Thanks all for your great help.

I will update on this if i get something.

Regards.
[import]uid: 147582 topic_id: 32975 reply_id: 131019[/import]

@neostar20, it looks like the build process issue for 968 is now fixed. @seanh posted a note that it’s been taken care of here: http://developer.coronalabs.com/forum/2012/11/14/daily-build-968-error-device-build-error-occurred-server#comment-131020

So… you might want to give it a shot again and see if it fixed it for you too.

Naomi [import]uid: 67217 topic_id: 32975 reply_id: 131025[/import]

@neostar20
Try removing the local definition.

So…
local analytics = require(“analytics”)

becomes

analytics = require(“analytics”)

Ben [import]uid: 28534 topic_id: 32975 reply_id: 131004[/import]

We change our standard libraries to support modern Lua conventions, which removes the library name from the global name space. You should change the way you load library files to follow the following convention:

local analytics = require( "analytics" )

(You may need to remove the “local” if you try to access in other files. You could also require the library in all the files that need the library.) [import]uid: 7559 topic_id: 32975 reply_id: 131007[/import]

I just posted a problem I encountered with daily build 968 here: http://developer.coronalabs.com/forum/2012/11/14/daily-build-968-error-device-build-error-occurred-server

I re-read the original post by @neostar20 more carefully, and I realize the problem might be very much the same but error message is different because I don’t require analytics, ads or revmob.

I do require storyboard – but the error message does not complain about not finding the storyboard.

Naomi

Edit: In every module I require storyboard, I do [text]local storyboard = require( “storyboard” )[/text] – so the device error I’m getting probably isn’t anything to do with requiring storyboard. There must be something else going on with the daily build 968? [import]uid: 67217 topic_id: 32975 reply_id: 130987[/import]

@peach,

Thanks for your reply, actually i was waiting to see if the issue is not from corona side so i can confirm and post a bug report. Still need to check if the build is breaking the library/module behaviour.

@Naomi,

Thanks for letting us know about the issue. did you fixed it? Update me if it was working.

@BenM,

Actually i am already doing this, as i posted above:

in my whole project, there is noting like:

[lua]require “ads”
– or
require ‘revmob’[/lua]

actually its like this:
[lua]ads = require “ads”
– or
revmob = require ‘revmob’[/lua]

@Tom,

Thanks for the information, but as i mentioned above, i m already doing this, but will try again with 966, 967 and again with 968 builds.

Thanks all for your great help.

I will update on this if i get something.

Regards.
[import]uid: 147582 topic_id: 32975 reply_id: 131019[/import]

@neostar20, it looks like the build process issue for 968 is now fixed. @seanh posted a note that it’s been taken care of here: http://developer.coronalabs.com/forum/2012/11/14/daily-build-968-error-device-build-error-occurred-server#comment-131020

So… you might want to give it a shot again and see if it fixed it for you too.

Naomi [import]uid: 67217 topic_id: 32975 reply_id: 131025[/import]

Hi,

I rolled back to Corona 2012.964, and it worked.

Thanks all for your great help.

Regards. [import]uid: 147582 topic_id: 32975 reply_id: 131387[/import]

@neostar20, you shouldn’t have a problem with 971 as long as you are using “ads = require …”. If you are having problem we would like to know about it since we don’t have any other reports of the issue once they changed the format of require statement.

Please file a bug report with a short sample showing the problem using build 971. Posting code snippets here doesn’t help because we really need a complete sample demonstrating the problem.

Please do this soon, otherwise 971 will become our new Release build.

Thanks,
Tom [import]uid: 7559 topic_id: 32975 reply_id: 131402[/import]

@Tom,

still is there any issue with the build? [import]uid: 113560 topic_id: 32975 reply_id: 131403[/import]