Auth0 Home Blog Docs

Support for multiple environments in Xcode?

ios
xcode

#1

Hi there,

I’ve been successfully developing an iOS app with Auth0 and I’m soon to be ready to launch my live application (yay!). As such, I will be creating a second tenant on Auth0 (one for dev, one for live), and I need help with the config in Xcode. Currently, I have an Auth0.plist file with a ClientId and Domain, but how do I set this up so that it switches automatically to the live version when I build for release instead of debug?

Thanks for any help!


#2

I am not an iOS developer, but this should be a good starting point for you: