problems to build an app

I just finished a comic, and want to build for IOS, but it does not allow to click the “build” button. the part named as “Code Signing Identity” is not working. I buyed Corona, so I should be able to build for testing on my ipad.
I am extremely new to Corona and Apple developing stuff. Please I NEED HELP because I need to deliver this app for a client ASAP to then upload it on the App Store.

THANKS!!!

[import]uid: 21866 topic_id: 16955 reply_id: 316955[/import]

Valerie - I am assuming that “Code Signing identity” is greyed out when you try to build using corona in mac. Please follow the instruction on this page to create the certificate.

http://developer.anscamobile.com/content/building-devices-iphoneipad

**Do not forget to download the certificate and register with key chain. You should be able to then select the certificate in the “Code Signing identity” when you build for ipad device .
Let us know how it goes…

[import]uid: 84539 topic_id: 16955 reply_id: 63581[/import]**

Would also like an update on this; have you solved the problem?

Peach :slight_smile: [import]uid: 52491 topic_id: 16955 reply_id: 63739[/import]

Thanks a lot Bejoy and Peach, information was very useful. I actually created a certificate, and the Ad Hoc and distribution profiles but once I am at Corona trying to build for IOS it is still the same. No signing identity appears! I placed both profiles at the Users folder as it says on the site, but the only “users” folder a found was at Macintosh HD --> Users. Should be that the problem? Did I miss anything?
I appreciate you tour me through a possible solution.

thanks! [import]uid: 21866 topic_id: 16955 reply_id: 63797[/import]

Valeria - You are almost there…The certificates need to be placed in

/Users/(your user)/Library/MobileDevice/Provisioning Profiles/

replace (your user) with your username on mac…

Open Xcode and go to organizer screen(View->Organizer). If the certificate shows up on xcode-organizer screen, you are all good to create a build using corona. If not then something has gone wrong with the certificate…

Another option is to just drag the certificate onto xcode(organizer screen). Xcode would do the rest for you. That is how i did it almost a year ago…

Once the valid certificate appears in organizer screen you should be able to do the build…
thx,
Bejoy [import]uid: 84539 topic_id: 16955 reply_id: 63803[/import]

Yes! I made it!! I guess it was because it wasn’t show up on Xcode. I have the app in finder. Do I load it to Ipad via Itunes? [import]uid: 21866 topic_id: 16955 reply_id: 63806[/import]

Great job!!

You can do it using itunes too but i always use Xcode.

  1. Make sure IPAD has been registered as a device on Xcode organizer screen. If not just right click on ipad in organizer and select add device
  2. Then just drag the app file from finder into Organizer…
  3. You should see it in iPad.

Good luck,

Bejoy [import]uid: 84539 topic_id: 16955 reply_id: 63810[/import]

I tried on Xcode with the adding the app with “+” and I could finally test it on my Ipad. Thanks a lot bejoy! however it crashes on my device after a while, but did not on Corona simulator. could it be that I am using Xcode 3 and my ipad has IOS 4.2.1?

I guess this and submitting the app to Apple for distribution is another issue… [import]uid: 21866 topic_id: 16955 reply_id: 63812[/import]

Great…
Regarding the crash, i am not too sure… May be opening a new thread for the issue would help get some answers from other folks… [import]uid: 84539 topic_id: 16955 reply_id: 63816[/import]

If you look at Xcode, you should have a window called “Console”. It right below the “Applications” window you used to load the app.

Leave your device connected to the computer and run your app. Right after it crashed, look at the console window to see what type of messages where printed.

If your app runs for awhile and then crashes, you probably have a memory leak. That means your app is continually using more and more memory until it reaches a point that iOS kills it. If that is the case you will see some “Memory Warning” messages in the console window after the app crashes. [import]uid: 67839 topic_id: 16955 reply_id: 63820[/import]

Glad this is all going smoothly (or fairly close to it) now - but would be interested to know about the crash as well.

Is it at a random time or does it have similarities in when it occurs? For example, if you are using physics, is it on a collision event? If you’re using timers+director, is it on a scene change event? etc. [import]uid: 52491 topic_id: 16955 reply_id: 63968[/import]

Peach, by the way, I LOVED your tutorials, they were so clear for me that I could begin coidng for the first time.

My application (my first one!) is a comic: page changes, and zoom in some parts. I also added music with a on/off button. That’s all.
It crashes at a random time.
As I told you it is my first app, never coded in my life before, I made it reading a pdf of “Eye of the prophet” tutorial and your tutorials about adding music. and then was testing and changing to get what I wanted.

Forgive my English, I am a Spanish speaker! [import]uid: 21866 topic_id: 16955 reply_id: 63996[/import]

Thank you :slight_smile: I always really appreciate feedback like that. My ultimate goal is helping people who have never coded get into Corona and Lua.

For the crash, it’s very tricky to pinpoint if it truly is random - could you check out your memory usage using this function;

[lua]local function monitorMem(event)
collectgarbage(“collect”)

print( “\nMemUsage: " … (collectgarbage(“count”)/1000) … " MB”)
print("Texture Usage " … system.getInfo( “textureMemoryUsed” ) / 1000000)

return true
end

Runtime:addEventListener(“enterFrame”, monitorMem)[/lua]

No worries about the English, you speak well :slight_smile:

Peach

PS - I hope to learn Spanish one day :slight_smile: [import]uid: 52491 topic_id: 16955 reply_id: 64200[/import]

Peach, I entered this code in the main.lua file, and build the app again but it is still crushing at a random time. Did I make a mistake? should I used this code in another place?

However in the Corona simulator always run perfect to the end of the comic.

thanks for your help. [import]uid: 21866 topic_id: 16955 reply_id: 64727[/import]

Are you canceling timers between scenes ? Removing runtime listeners (if applicable) beween scenes? [import]uid: 84637 topic_id: 16955 reply_id: 64889[/import]

Danny, thanks for your help, but honestly I don’t have a clue of what you are asking. haha.
I’m newbie at coding, this is my first app and I made it following a tutorial about making a comic.
I added these code lines Peach wrote, but it is still crushing. Could you please explain me -if possible- a little more about cancelling timers between scenes, how Can I make that?
Thanks! [import]uid: 21866 topic_id: 16955 reply_id: 65418[/import]

Those lines I wrote aren’t to stop it crashing, they are to see how much memory you are using in the terminal window. See what’s being printed?

If you aren’t properly cleaning things up when you change scenes (I assume you are using director or another class for this?) then we should be able to tell from that.

Danny means if you are using timers, you need to properly clean those up to - so, are you using any timers in your app?

Peach :slight_smile: [import]uid: 52491 topic_id: 16955 reply_id: 65588[/import]

Peach, I tried with the terminal and this is the result:

at first page it printed this:
MemUsage: 0.093701171875 MB
Texture Usage 4.227072

at last page of the comic it was this:
MemUsage: 0.11674609375 MB
Texture Usage 260.079616
In the reader.lua file part of the code says:

local newPage = self:loadPage( page.number - 1 )
if newPage then
index = #newPage.data
self:showFrame( index )
else
newPage = self:loadPage( 0 ) – load cover
self:showFrame( 0 ) – hide frame
end

transition.to( page, { alpha = 0, time=kTime, transition=easing.inOutQuad } )
transition.from( newPage, { alpha = 0, time=kTime, transition=easing.inOutQuad } )
newPage.index = index
end

return true


Is this something about timers?
THANKS! [import]uid: 21866 topic_id: 16955 reply_id: 66307[/import]

That is really high texture memory. Are you properly removing pages when you go to the next page?

How many pages do you have? [import]uid: 52491 topic_id: 16955 reply_id: 66388[/import]

Peach. It’s 62 pages including cover. All full page pngs. If I remove pages that means I cant go backwards to see a previous page?

I do not know if it is correct to do this, but is possible that you charge me to check my code? I have the main.lua, the reader.lua, the coordinates.lua and the build settings. I need to finish this job in order to upload it to Apple but I feel I can’t do it by myself.

thanks! [import]uid: 21866 topic_id: 16955 reply_id: 66458[/import]