iphone - Detect AppStore installation of iOS app -


i need implement custom logging in app.

to need detect if current version of app has been installed app store or running xcode or testflight version.

there different in app depending installation source?

i don't want have different in development environment.

you can part of way there reading in embedded.mobileprovision file application bundle:

nsstring *provisionpath = [[nsbundle mainbundle] pathforresource:@"embedded" oftype:@"mobileprovision"]; 

if not exist, in app store build.

if exist, need figure out difference between debug , ad-hoc provisioning profiles, , determine build in.

because xcode automatically sets applications "debug" flag in debug config, not set in release (which used default adhoc builds), may better off disabling logging in app store build , determining level of logging based on debug macro flag.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -