pa12
pa12

Reputation: 1503

How to know if the iPad is using for development

I wanted to know if there is way to determine if the device is being using for development or not. I want to enable some features on my app only when it is in development not when its is release to public.

Any help would be appreciate

Thanks

Upvotes: 0

Views: 108

Answers (2)

Cthutu
Cthutu

Reputation: 8907

I would not go the way you want to go because anyone can make their ipad a development one. My personal ipad that I use for normal use is also used for development, meaning your app will behave differently if I am doing programming. You may not want that.

Consider turning on features if the serial number matches yours. Here is a library of UIDevice extensions that you can use to get your serial number. The code is simple:

[[UIDevice currentDevice] serialNumber]

This returns a string, which can be compared to yours..

Upvotes: 1

ader
ader

Reputation: 5393

I think what you want is not to know if the device can be used for development or not (a device that can be used for development can also download apps from the app-store e.g. final release versions). What I think you want to do is know at run-time if the build now running is a final release version (from app-store) or a debug version. See:

Detect if the iPhone is running a Debug/Distribution build at runtime

Upvotes: 1

Related Questions