-
Notifications
You must be signed in to change notification settings - Fork 5.7k
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manage dynamic NSString variable? #408
Comments
You can pass preprocessor macros when building, not sure how the majority of |
You can pass additional arguments to be used as preprocessor macro when building your ipa like this: server_url = '@\"http://beta.example.org\"'
ipa (
# ...
xcargs: "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) X_SERVER_URL=#{url}'"
) (it's important to have that And then in your code: #ifdef X_SERVER_URL
kServerBaseUrl = [NSURL URLWithString:X_SERVER_URL];
#else
// Handle the case where no server URL is passed in from the build, e.g. on a developer machine
// ...
#endif Of course, you can use as many preprocessor macros as you want. |
Thanks again @milch for providing the solution 👍 |
Use this in swift: |
@mortenholmgaard thanks for Swift support ! 🐤 |
Hey all faslaners,
How to manage dynamic NSString variable for different types of deliveries like Development, Stage & Production environments?
Is there any kind of lane action to use?
Thanks so much!
The text was updated successfully, but these errors were encountered: