0
我希望能够自动交换AppDelate.m中的应用程序URL。但是,我无法弄清楚如何做到这一点。我想基本上做到这一点:如何在dev/archive中动态切换网址
if (schemeIsDebug) {
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
} else {
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
}
这样,当我打存档,则自动切换到PROD URL。
谢谢!迄今为止近距离:) – SkinnyG33k