gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:26:59 26 4
gpt4 key购买 nike

实际上,当我在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/

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