[Resolved] trouble building for device

Hi

I seem to be having problems building for device. It does not take the files that I have open in the simulator, it takes a previously made project. How do I tell corona to build for the file I have open in simulator?

Thanks [import]uid: 95689 topic_id: 23936 reply_id: 323936[/import]

I haven’t encountered this before; are you using any 3rd party tools?

Is it possible you are running more than one version of Corona at once?

Any info about your setup would be very useful here :slight_smile: [import]uid: 52491 topic_id: 23936 reply_id: 96512[/import]

Hi Peach,

I do have downloads for both builds 593 and 703 but I only run build 703.

Could you just please let me know how to specify the file name when you are making a new project from the menu. It only allows you to specify where to save the project not to specify the input file. (It does not let me paste the menu here)
[import]uid: 95689 topic_id: 23936 reply_id: 96628[/import]

Peach

Now it really got nasty. I deleted the file that builder was trying to build for ios and the output to console really went wild. Could my build of 703 be hacked? Looks like it is copying every file on the laptop. I just notice my tweeter files being copied. Please see below for a sample (it goes on and on):

Copyright (C) 2009-2011 A n s c a , I n c .  
 Version: 2.0.0  
 Build: 2011.703  
The file sandbox for this project is located at the following folder:  
 (/Users/alexdiaz/Library/Application Support/Corona Simulator/Xela Development-4920B0BB4978D0D04A417C445B13E4F2)  
-----------------------------------------------  
Using additional build settings from: /Applications/Xela Development/build.settings  
2012-03-27 10:44:52.635 defaults[7631:f07]   
There is no (ContentOrientation) default for the (/Applications/xela development/XelaDevelopment.app/Info) domain.  
Defaults have not been changed.  
2012-03-27 10:44:52.637 defaults[7631:f07]   
There is no (ContentOrientation) default for the (/Applications/xela development/XelaDevelopment.app/Info) domain.  
Defaults have not been changed.  
2012-03-27 10:44:52.668 defaults[7632:f07]   
There is no (UISupportedInterfaceOrientations) default for the (/Applications/xela development/XelaDevelopment.app/Info) domain.  
Defaults have not been changed.  
2012-03-27 10:44:52.672 defaults[7632:f07]   
There is no (UISupportedInterfaceOrientations) default for the (/Applications/xela development/XelaDevelopment.app/Info) domain.  
Defaults have not been changed.  
Compressing/copying PNG /Applications/Xela Development/assets/icon\_ad.png to /Applications/xela development/XelaDevelopment.app/assets/icon\_ad.png  
Compressing/copying PNG /Applications/Xela Development/assets/mask-320x366.png to /Applications/xela development/XelaDevelopment.app/assets/mask-320x366.png  
Compressing/copying PNG /Applications/Xela Development/assets/mask-550x320.png to /Applications/xela development/XelaDevelopment.app/assets/mask-550x320.png  
Copying /Applications/Xela Development/assets/me.jpg to /Applications/xela development/XelaDevelopment.app/assets/me.jpg  
/Applications/Xela Development/assets/me.jpg -\> /Applications/xela development/XelaDevelopment.app/assets/me.jpg  
Compressing/copying PNG /Applications/Xela Development/assets/scrollimage.png to /Applications/xela development/XelaDevelopment.app/assets/scrollimage.png  
Compressing/copying PNG /Applications/Xela Development/assets/tabIcon-down.png to /Applications/xela development/XelaDevelopment.app/assets/tabIcon-down.png  
Compressing/copying PNG /Applications/Xela Development/assets/tabIcon-down@2x.png to /Applications/xela development/XelaDevelopment.app/assets/tabIcon-down@2x.png  
Compressing/copying PNG /Applications/Xela Development/assets/tabIcon.png to /Applications/xela development/XelaDevelopment.app/assets/tabIcon.png  
Compressing/copying PNG /Applications/Xela Development/assets/tabIcon@2x.png to /Applications/xela development/XelaDevelopment.app/assets/tabIcon@2x.png  
Copying /Applications/Xela Development/assets/wallpaper.jpg to /Applications/xela development/XelaDevelopment.app/assets/wallpaper.jpg  
/Applications/Xela Development/assets/wallpaper.jpg -\> /Applications/xela development/XelaDevelopment.app/assets/wallpaper.jpg  
Compressing/copying PNG /Applications/Xela Development/assets/wallpaper.png to /Applications/xela development/XelaDevelopment.app/assets/wallpaper.png  
Compressing/copying PNG /Applications/Xela Development/assets/wallpaper2.png to /Applications/xela development/XelaDevelopment.app/assets/wallpaper2.png  
Copying /Applications/Xela Development/images/.DS\_Store to /Applications/xela development/XelaDevelopment.app/images/.DS\_Store  
/Applications/Xela Development/images/.DS\_Store -\> /Applications/xela development/XelaDevelopment.app/images/.DS\_Store  
Compressing/copying PNG /Applications/Xela Development/images/blue\_orb.png to /Applications/xela development/XelaDevelopment.app/images/blue\_orb.png  
Compressing/copying PNG /Applications/Xela Development/images/blue\_orb@2x.png to /Applications/xela development/XelaDevelopment.app/images/blue\_orb@2x.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonArrow.png to /Applications/xela development/XelaDevelopment.app/images/buttonArrow.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonArrowOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonArrowOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonBlue.png to /Applications/xela development/XelaDevelopment.app/images/buttonBlue.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonBlueOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonBlueOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonBlueSmall.png to /Applications/xela development/XelaDevelopment.app/images/buttonBlueSmall.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonBlueSmallOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonBlueSmallOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonGray.png to /Applications/xela development/XelaDevelopment.app/images/buttonGray.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonGrayOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonGrayOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonGreen.png to /Applications/xela development/XelaDevelopment.app/images/buttonGreen.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonGreenOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonGreenOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonOrange.png to /Applications/xela development/XelaDevelopment.app/images/buttonOrange.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonOrangeOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonOrangeOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonPurple.png to /Applications/xela development/XelaDevelopment.app/images/buttonPurple.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonPurpleOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonPurpleOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonRed.png to /Applications/xela development/XelaDevelopment.app/images/buttonRed.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonRedOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonRedOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonWhite.png to /Applications/xela development/XelaDevelopment.app/images/buttonWhite.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonWhiteOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonWhiteOver.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonYellow.png to /Applications/xela development/XelaDevelopment.app/images/buttonYellow.png  
Compressing/copying PNG /Applications/Xela Development/images/buttonYellowOver.png to /Applications/xela development/XelaDevelopment.app/images/buttonYellowOver.png  
Copying /Applications/Xela Development/images/carbonfiber.jpg to /Applications/xela development/XelaDevelopment.app/images/carbonfiber.jpg  
/Applications/Xela Development/images/carbonfiber.jpg -\> /Applications/xela development/XelaDevelopment.app/images/carbonfiber.jpg  
Compressing/copying PNG /Applications/Xela Development/images/check\_info.png to /Applications/xela development/XelaDevelopment.app/images/check\_info.png  
Compressing/copying PNG /Applications/Xela Development/images/credits\_btn.png to /Applications/xela development/XelaDevelopment.app/images/credits\_btn.png  
Compressing/copying PNG /Applications/Xela Development/images/credits\_btn1.png to /Applications/xela development/XelaDevelopment.app/images/credits\_btn1.png  
Compressing/copying PNG /Applications/Xela Development/images/Default.png to /Applications/xela development/XelaDevelopment.app/images/Default.png  
Compressing/copying PNG /Applications/Xela Development/images/edit.png to /Applications/xela development/XelaDevelopment.app/images/edit.png  
Compressing/copying PNG /Applications/Xela Development/images/elpasoatnight.png to /Applications/xela development/XelaDevelopment.app/images/elpasoatnight.png  
Compressing/copying PNG /Applications/Xela Development/images/green\_orb.png to /Applications/xela development/XelaDevelopment.app/images/green\_orb.png  
Compressing/copying PNG /Applications/Xela Development/images/green\_orb@2x.png to /Applications/xela development/XelaDevelopment.app/images/green\_orb@2x.png  
Compressing/copying PNG /Applications/Xela Development/images/no\_edit.png to /Applications/xela development/XelaDevelopment.app/images/no\_edit.png  
Compressing/copying PNG /Applications/Xela Development/images/play\_btn.png to /Applications/xela development/XelaDevelopment.app/images/play\_btn.png  
Compressing/copying PNG /Applications/Xela Development/images/play\_btnOver.png to /Applications/xela development/XelaDevelopment.app/images/play\_btnOver.png  
Compressing/copying PNG /Applications/Xela Development/images/red\_orb.png to /Applications/xela development/XelaDevelopment.app/images/red\_orb.png  
Compressing/copying PNG /Applications/Xela Development/images/red\_orb@2x.png to /Applications/xela development/XelaDevelopment.app/images/red\_orb@2x.png  
Compressing/copying PNG /Applications/Xela Development/images/title-7.png to /Applications/xela development/XelaDevelopment.app/images/title-7.png  
Compressing/copying PNG /Applications/Xela Development/images/title.blue.bg.png to /Applications/xela development/XelaDevelopment.app/images/title.blue.bg.png  
Compressing/copying PNG /Applications/Xela Development/images/title.png to /Applications/xela development/XelaDevelopment.app/images/title.png  
Compressing/copying PNG /Applications/Xela Development/images/title1.png to /Applications/xela development/XelaDevelopment.app/images/title1.png  
Compressing/copying PNG /Applications/Xela Development/images/title2.png to /Applications/xela development/XelaDevelopment.app/images/title2.png  
Compressing/copying PNG /Applications/Xela Development/images/title3.png to /Applications/xela development/XelaDevelopment.app/images/title3.png  
Compressing/copying PNG /Applications/Xela Development/images/title\_full.png to /Applications/xela development/XelaDevelopment.app/images/title\_full.png  
Copying /Applications/Xela Development/images/wallpaper.jpg to /Applications/xela development/XelaDevelopment.app/images/wallpaper.jpg  
/Applications/Xela Development/images/wallpaper.jpg -\> /Applications/xela development/XelaDevelopment.app/images/wallpaper.jpg  
Compressing/copying PNG /Applications/Xela Development/images/xela.png to /Applications/xela development/XelaDevelopment.app/images/xela.png  
Compressing/copying PNG /Applications/Xela Development/images/xela\_full.png to /Applications/xela development/XelaDevelopment.app/images/xela\_full.png  
...  

I have the complete output from the console regarding the build if you want to see more. It did produce an executable which I will try to run on the device. After all that it is running on the iphone !! but its not done yet.

Thanks again
[import]uid: 95689 topic_id: 23936 reply_id: 96641[/import]

Hey, apologies - we have a time difference.

You can ignore those first few bits mentioning orientation, so moving past that, let’s see…

Is your project folder called “Xela Development”? If so that all looks fine - it is just copying everything from your project folder.

When you launch 703 do you have a black screen that comes up with icons on it to choose what to do? New Project, Sample Code, etc? (I’m not sure when we made that change but think it was for 703.)

When you click “New Project” you should be able to enter the folder name to be created there, when you name it.

The end of your post sounds like this was resolved, maybe? I can’t tell - could you clarify, please?

Peach :slight_smile: [import]uid: 52491 topic_id: 23936 reply_id: 96807[/import]

Hi Peach

Yes, we have a time difference, I thought you were in Ca, or you just prefer to work late?

Yes, the project folder is “Xela Development” and yes I do get the a black screen with “new project”, “sample code” etc. This is how I start my project; actually I just look for my “main” in Xela Development. Once I am running, I go to top and select “build” and this is where it does not let me choose. It was grabbing an old file that I was working on before, not the one I opened and was running. I had to move the old one to the trash, before it finally did build for the one I opened. Don’t know why? Strange.

About the build itself, is that normal? The output on the console just goes on and on. Build 591 did not do this, or maybe back then I was building just examples from the sample code that were simpler and shorter.

It also tells me that apple or the app store will not accept my app because my images are not to their specs or something like that. Where do I get help on this? And one more question, where does the output of my prints, go when you build for the device?

Finally, the build did work on the device. I got some more problems still, but its working. I do need to address the image specs. Maybe you can point me straight with that.

Thanks [import]uid: 95689 topic_id: 23936 reply_id: 96884[/import]

The team is in CA, I am unfortunately in Sydney, Australia + I keep odd hours :wink:

OK, points one by one;

  1. You had to delete your previous project for the new one to build? That is not how it should work. If the issue happens again can you please file a bug report using the link in the top right and we’ll look into it? I have never seen or heard of it happening previously but there is a first time for everything.

  2. Terminal output while building is totally normal. Our sample code is likely to produce a shorter output as most of it uses very few images. None of this should be a concern to you :slight_smile:

  3. “It also tells me that apple or the app store will not accept my app because my images are not to their specs or something like that”
    What exactly is it telling you? We can help you here with that. I expect it might be warning you about not including icons you need?

Let me know.

Peach :slight_smile: [import]uid: 52491 topic_id: 23936 reply_id: 97035[/import]

Peach

I would not call Sydney, Australia unfortunately. I would love to visit your country at sometime in the future.

ok, this is what the build says:

“warning: iPhone/iPod Touch: Info.plist: Unable to verify icon dimensions, no icon found. Your MinimumOSVersion is below 3.2, so you must define CFBundleIconFile or provide a default Icon.png that is 57x57. (-19013)
warning: iPad: Info.plist: Unable to verify icon dimensions, no icon found. You must define CFBundleIcons, CFBundleIconFiles, CFBundleIconFile, or provide a default Icon-72.png that is 72x72 (-19013)”

So I quess it is the icon. Where am I suppose to put it?

Thanks [import]uid: 95689 topic_id: 23936 reply_id: 97330[/import]

Hi.

To solve the error you posted :

Have a build.settings file like this :

-- cpmgen build.settings  
settings =  
{  
 orientation =  
 {  
 default = "portrait",  
 supported =  
 {  
 "portrait", "portraitUpsideDown"  
 },  
 },  
  
 iphone =  
 {  
 plist =  
 {  
 CFBundleIconFile = "Icon.png",  
 CFBundleIconFiles = {  
 "Icon.png" ,   
 "Icon@2x.png" ,  
 "Icon-72.png" ,  
 },  
 UIStatusBarHidden = true,  
 UIPrerenderedIcon="YES",  
 UIApplicationExitsOnSuspend = false,   
 },  
 },  
  
}  

Then simply have the icon names (specified above) png files in your projects root directory [import]uid: 84637 topic_id: 23936 reply_id: 97352[/import]

Hey again Diaza,

I hope you get to visit Australia, it can be a nice place - I say “unfortunately” because I’d rather be hanging out in Palo Alto with the rest of the team. (Also Sydney weather is not to my liking - far too humid!)

Your icon issue is easily solved - not to worry!

Do as Danny said and include;
[lua] CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png” ,
},[/lua]
in your build.settings file, then in your project folder have;

Icon.png (57x57)
Icon@2x.png (114x114)
Icon-72.png (72x72)

You should no longer see these errors :slight_smile: [import]uid: 52491 topic_id: 23936 reply_id: 97359[/import]

Peach

How much is too humid? How many inches of rain? I live in the desert so I like rain (here only about 8 inches/yr). Could I ask how you got the job with Ansca? Seems like its the perfect job, you can do what ever and then come to check posts and msgs. Is the pay good?

OK back to the issue of the icon, I will do as you and Danny suggest.

Thks again, you guys are great !! [import]uid: 95689 topic_id: 23936 reply_id: 97419[/import]

We don’t always get a rain but it reaches 90% or higher humidity regularly which is not pleasant, especially if it is very hot because then it feels hotter.

My work with Ansca is a little bit more involved than just checking messages, haha :wink: [import]uid: 52491 topic_id: 23936 reply_id: 97492[/import]

Peach/Danny

Thanks, I now have an icon !!

[import]uid: 95689 topic_id: 23936 reply_id: 98366[/import]