How to pass various variables to javascript in a telephone conversation depending on whether xcode is configured for debugging or release? In particular, right now I want to be able to switch whether the application connects to my local dev server or to a real cloud server.
One option would be if javascript can simply determine what type of assembly is going on, then I can store both sets of URLs in .js code and select accordingly.
It would be somewhat better if there was a place to store different URLs in Xcode, for example, possibly in .plist
or something like that - I am not very good at Xcode or Objective-C (thus, telephone delay ), so I donβt know if this is even normal practice.
Ideally, I can only do this with javascript and IDE configuration changes. If I need to change something in Objective-C, the answer should be very specific what to do.
Leopd source share