我的iOS应用未通过CodePush更新。
我在我的iOS应用程序中添加了CodePush依赖项。此外,我还可以使用CodePush成功发布AppCenter的更新。但是更改未在我的iOS应用中更新。
我的React-Native模块代码如下:
const codePushOptions = {
checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
installMode: codePush.InstallMode.ON_NEXT_RESUME,
};
export default Dashboard = codePush(codePushOptions)(Dashboard);
然后从iOS Swift中的javascript中加载组件:
let jsCodeLocation = CodePush.bundleURL()!
let addRatingView = RCTRootView(bundleURL:jsCodeLocation as URL!, moduleName: "Dashboard", initialProperties: nil, launchOptions:nil)
答案 0 :(得分:1)
我仅在iOS上遇到过相同的问题。发布更新时,请确保插入强制性标志“ -m”。
appcenter codepush release-react -a <YourName>/<AppName> -d Production -m --description '<Description>'