Button not displaying on Xcode Sim or on device but works fine on Corona Sim

Pretty much what the title says. I have a button that works fine and how it is supposed to on the Corona Simulator but when I build for Xcode or iPhone, the button does not show up. Ive tried ui.newButton, widget.newButton, and display.newImageRect. All of these methods work on the corona sim, none of them work on xcode or device. [import]uid: 146992 topic_id: 29712 reply_id: 329712[/import]

Check the case on your file name vs how you referenced it in your code. iOS(not sure about android) is case sensitive when it comes to file names so if you have a file called “MyButton.PNG” and you try to load it using display.newImageRect(“mybutton.png”, 100, 50) it will work in the sim but not on a device(not sure about xcode!). [import]uid: 147305 topic_id: 29712 reply_id: 119234[/import]

Thanks budershank but I just checked and thats not the problem. Could it be because I only have a development provisioning profile at apple because I am a trial corona user? [import]uid: 146992 topic_id: 29712 reply_id: 119243[/import]

IIRC you can still build for a device with the trial, you just get a popup type thing about it being a trial.

Does anything else display? I had assumed you had more than just a button on the screen. What you can do is have the xcode organizer open with your device plugged in and then run the app. If it has any errors it will tell you in the console in the organizer. [import]uid: 147305 topic_id: 29712 reply_id: 119248[/import]

Yeah everything else in the app shows up. Its a simple app so only 1 button but all the other graphics show up fine.

How do i use the xcode organizer to run the app? [import]uid: 146992 topic_id: 29712 reply_id: 119251[/import]

ok i figured out how but when i try to drag the app to the applications section, I get this error…

An unknown error message ‘IncorrectArchitecture’, was received from the device. [import]uid: 146992 topic_id: 29712 reply_id: 119254[/import]

@d2391, try what budershank says:

[blockcode]
What you can do is have the xcode organizer open with your device plugged in and then run the app. If it has any errors it will tell you in the console in the organizer.

[/blockcode] [import]uid: 147582 topic_id: 29712 reply_id: 119256[/import]

yes i have my device plugged in and the xcode organizer open. when i go to the applications tab and drag my application in it, i get this error…

An unknown error message ‘IncorrectArchitecture’, was received from the device. [import]uid: 146992 topic_id: 29712 reply_id: 119261[/import]

@d2391, ah, may be because you have the new OS X moutain lion 10.8 and xcode 4.4 ?

do u also get this issue with other app and/or other app built with corona?
[import]uid: 147582 topic_id: 29712 reply_id: 119263[/import]

yes i am using mountain lion and xcld 4.4 and this is my fist app [import]uid: 146992 topic_id: 29712 reply_id: 119269[/import]

anyone? ive tired everything and don’t know what to do [import]uid: 146992 topic_id: 29712 reply_id: 119326[/import]

Well, not sure about your ‘IncorrectArchitecture’ error. Maybe post some code? [import]uid: 147305 topic_id: 29712 reply_id: 119341[/import]