实际上,当我在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",
}
答案 0 :(得分:1)
将app.json中的版本更改为2.0.0。并重建新的ipa。 在iOS上,这对应于CFBundleShortVersionString。
答案 1 :(得分:0)
我不在博览会上工作,因此我可能没有像您一样的类似设置。但是,要解决您的问题,您只需在Xcode中更新您的版本和内部版本号。