gpt4 book ai didi

ios - React Native 如何在发布应用程序后恢复到开发模式

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:21:29 24 4
gpt4 key购买 nike

我刚刚将我的 ios 应用程序提交到应用程序商店(使用 react-native 构建)。由于我必须将应用程序移动到发布,我必须在 Xcode 中进行一些更改,例如禁用 ATS、 Debug模式等,我做了很多更改。现在我想进行下一次更新,但我不确定如何恢复所有已更改的选项。有人可以告诉我该怎么做吗?

最佳答案

只有两个简单的步骤:

  1. 将方案发布更改为调试:更改方案只需转到 Product->Scheme->Edit Scheme并将构建配置更改为 Debug

  2. AppDelegate.m 中更改 jsCodeLocation 路径。那就是

    //this is for release scheme

    jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

    //this is for debug scheme

    jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

    //this is what you want

关于ios - React Native 如何在发布应用程序后恢复到开发模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48621203/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com