build.settings throws an error on device install

Hey,

I read that theres only one way to avoid the app to be downloaded by iPad1 and that is to add the line UIRequiredDeviceCapabilities = “front-facing-camera” to the build.settings file.

I did that, but then I am getting some install errors and xCode refuses to install the app.

settings =  
{  
 orientation =  
 {  
 default = "landscapeLeft",supported = { "landscapeRight" }  
 },  
   
 iphone =  
 {  
 plist =  
 {  
 UIPrerenderedIcon = true,  
 UIApplicationExitsOnSuspend = true,  
 CFBundleDisplayName = "myAppname",  
 UIRequiredDeviceCapabilities = "front-facing-camera"  
 },  
 },  
   
}  

Is there something wrong with my file or any other suggestions?

Joakim [import]uid: 81188 topic_id: 32543 reply_id: 332543[/import]

I’ve never tried this, but add the line below at the bottom of your build.settings (outside of any {}) and see if that helps

[lua]settings =
{
orientation =
{
default = “landscapeLeft”,supported = { “landscapeRight” }
},

iphone =
{
plist =
{
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = true,
CFBundleDisplayName = “myAppname”
},
},

}
settings.iphone.plist[“UIRequiredDeviceCapabilities~ipad”] = “front-facing-camera”[/lua] [import]uid: 62706 topic_id: 32543 reply_id: 129455[/import]

I’ve never tried this, but add the line below at the bottom of your build.settings (outside of any {}) and see if that helps

[lua]settings =
{
orientation =
{
default = “landscapeLeft”,supported = { “landscapeRight” }
},

iphone =
{
plist =
{
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = true,
CFBundleDisplayName = “myAppname”
},
},

}
settings.iphone.plist[“UIRequiredDeviceCapabilities~ipad”] = “front-facing-camera”[/lua] [import]uid: 62706 topic_id: 32543 reply_id: 129455[/import]

Great, that did work!

One question, i noticed that you added “~ipad” to the parameter?

One more, what would actually happen when a user is browsing the appstore with an iPad1 when I am having this setting? Will they ever see the app or is it hidden from them?

Regards, Joakim [import]uid: 81188 topic_id: 32543 reply_id: 129513[/import]

Just kinda made it up after seeing it on here, not 100% sure:
http://developer.coronalabs.com/content/configuring-projects
Glad its working for you.

The user will be able to see the app and get this error when attempting to purchase:
http://www.appsbynight.com/wp-content/uploads/2012/02/FrontFacingCameraError.png

Its a little silly for the user, as most of the high end games just do this because of performance issues, and from the user point of view, it doesn’t matter if there is a camera or not as the games doesn’t use it anyway. You could set it to target iOS 6 devices (which is not iPad compatible) as this gives it a nicer error message for the end user, however you would loose any potential iOS 5 user-base.

If the user purchases by iTunes, it will be unfortunate as it will allow the purchase & download, but not allow to transfer to the device. [import]uid: 62706 topic_id: 32543 reply_id: 129521[/import]

Great, that did work!

One question, i noticed that you added “~ipad” to the parameter?

One more, what would actually happen when a user is browsing the appstore with an iPad1 when I am having this setting? Will they ever see the app or is it hidden from them?

Regards, Joakim [import]uid: 81188 topic_id: 32543 reply_id: 129513[/import]

Just kinda made it up after seeing it on here, not 100% sure:
http://developer.coronalabs.com/content/configuring-projects
Glad its working for you.

The user will be able to see the app and get this error when attempting to purchase:
http://www.appsbynight.com/wp-content/uploads/2012/02/FrontFacingCameraError.png

Its a little silly for the user, as most of the high end games just do this because of performance issues, and from the user point of view, it doesn’t matter if there is a camera or not as the games doesn’t use it anyway. You could set it to target iOS 6 devices (which is not iPad compatible) as this gives it a nicer error message for the end user, however you would loose any potential iOS 5 user-base.

If the user purchases by iTunes, it will be unfortunate as it will allow the purchase & download, but not allow to transfer to the device. [import]uid: 62706 topic_id: 32543 reply_id: 129521[/import]

will it against apple’s term if the app required front face camera yet it never uses it? [import]uid: 76697 topic_id: 32543 reply_id: 137848[/import]

I doubt it, as many apps the app store do this, especially graphically heavy apps that wont run well on older devices. Unfortunately, there isn’t an official way list what devices your app is made for so this is the main workaround. [import]uid: 62706 topic_id: 32543 reply_id: 137869[/import]

will it against apple’s term if the app required front face camera yet it never uses it? [import]uid: 76697 topic_id: 32543 reply_id: 137848[/import]

I doubt it, as many apps the app store do this, especially graphically heavy apps that wont run well on older devices. Unfortunately, there isn’t an official way list what devices your app is made for so this is the main workaround. [import]uid: 62706 topic_id: 32543 reply_id: 137869[/import]