I want to use different API's when running adhoc deployments of my app compared to appstore deployments. Can this be found out at runtime? I know I can use #if TARGET_IPHONE_SIMULATOR and #if DEBUG when running from xcode but I want adhoc deployments to be detected as well. Any ideas?
Ad hoc distribution lets you distribute internal builds to a maximum of 100 registered devices per device family per year. You can register a device in Apple's developer portal using the device's UDID.
Open the MyApp/ios/myapp. xcworkspace in XCode. Go to Products > Scheme > Edit Scheme and select Release mode. Build the app.
Check that "../iTunesMetadata.plist" exists in your NSDocumentDirectory.
This file is present in app store builds only - and it's in the root of your application so it's safe for app store submission.
Add a Preprocessor Macro for your AdHoc configuration in Build Settings. #if ADHOC // do something
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With