问题
I want to give my iPhone app to different distributors for distribution.
When a user will download the app from one of the distributors and open it the app should connect to our servers and ask for the unique settings of this distributer.
The question is, how each app can "tell" from which distributer it was downloaded from?
I don't want to compile a different application for each client.
回答1:
I did some research into this and the only way I found to do it is just to create different targets for each app then share the source code across both the apps, but this still means that you would have to do two submissions still.
回答2:
Do you want an app or iOS WebApp? if you want iOS app, I do not think you can distribute to other distributors, because Apple is the only distributor of iOS applications, so all the downloads come from there.
if you want a WebApp, you create a download link redirected to your webapp to read the link to the server it pulls everything you need, layout, information, etc ...
来源:https://stackoverflow.com/questions/10819943/one-iphone-app-with-different-template-based-on-the-url-it-was-downloaded-from