ios - 如何更改expo React-Native中的ipa版本

标签 ios react-native expo react-native-ios

实际上,当我在Applestore上传应用程序时,我遇到版本代码错误,我现在正在更新应用程序,我也需要更新其版本。我已经检查了两个文件中的 app.json 和 package.json 文件,我找到了版本,但混淆了两者彼此不同,所以这可能是一个问题,也许我正在更改另一个版本而不是应用程序。

app.json:

{
  "expo": {
    "name": "noorzoo",
    "description": "noorzoo",
    "slug": "noorzoo",
    "privacy": "public",
    "sdkVersion": "33.0.0",
    "version": "2.0", --i change it
    "orientation": "portrait",
    "primaryColor": "#cccccc",
    "icon": "./assets/icons/app.png",
    "facebookScheme": "fb455325908675514",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "packagerOpts": {
      "assetExts": [
        "ttf",
        "mp4"
      ]
    },
    "assetBundlePatterns": [
      "assets/**/*"
    ],
    "ios": {
      "bundleIdentifier": "xxxx",
      "supportsTablet": true,
      "buildNumber": "2",
      "infoPlist": {
        "NSCameraUsageDescription": "xxx",
        "NSPhotoLibraryUsageDescription": "xxx"
      }
    },
    "android": {
      "package": "xxx",
      "versionCode": 4,
      "permissions": [
        "CAMERA",
        "NOTIFICATIONS",
        "CAMERA_ROLL",
        "READ_INTERNAL_STORAGE",
        "READ_EXTERNAL_STORAGE",
        "WRITE_EXTERNAL_STORAGE"
      ]
    },
    "platforms": [
      "android",
      "ios"
    ]
  },
  "updates": {
    "fallbackToCacheTimeout": 0,
    "checkAutomatically": "ON_LOAD"
  }
}

package.json:

{
  "name": "Noorzoo",
  "version": "2.0.0", --this is i change
  "description": "Noorzoo",
  "author": "Esattosoft",
  "private": true,
  "main": "node_modules/expo/AppEntry.js",

}

这是我在苹果商店上传 ipa 时得到的结果 li

最佳答案

将 app.json 中的版本更改为 2.0.0。并重建新的 ipa。 在 iOS 上,这对应于 CFBundleShortVersionString。

关于ios - 如何更改expo React-Native中的ipa版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58335002/

相关文章:

ios - 只能接受一个参数的 NSLog 宏

iphone - CoreLocation GPS 状态栏指示器不消失

javascript - 如何将我的 expo 应用程序发布到 Apple 应用商店?

ios - Expo React iOS 构建在 iPad 中无法正常运行

iphone - 屏幕上的 CGRect 网格?

ios - 在 ios 中为 UINavigationitem(Leftbarbutton 项目)设置图像

react-native - 使用 NetINFO 响应 native 检查互联网连接

react-native - 如何在React Native应用程序中添加@expo/vector-icons?

react-native - 让用户在 React Native 中处于非事件状态

javascript - React Native Module Callback 什么都不返回