我在我的一个世博管理项目(SDK 40)中使用世博图像选择器。这是我的 app.json:
{
"expo": {
"name": "Alpha Soko Classifieds",
"slug": "alphasokoclassifieds",
"version": "1.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"backgroundColor": "#ff4500",
"resizeMode": "contain"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.alpha.soko",
"buildNumber": "2",
"infoPlist": {
"NSCameraUsageDescription": "This app uses the camera to capture and upload user profile image and listing image.",
"NSPhotoLibraryUsageDescription": "This app needs access to the photo library to select and upload user profile image and listing image.",
"NSLocationWhenInUseUsageDescription": "This app usages device location on listing information, Listing search Data and User information."
},
"config": {
"googleMapsApiKey": "AIzaSyCCCF3jLaTY******hGASwzod1bPYNi***"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"android": {
"package": "com.alpha.soko",
"config": {
"googleMaps": {
"apiKey": "AIzaSyCCCF3jLaTY******hGASwzod1bPYNi***"
}
},
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#fff"
},
"permissions": [
"CAMERA",
"CAMERA_ROLL",
"MEDIA_LIBRARY",
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE",
"RECORD_AUDIO",
"READ_PHONE_STATE",
"READ_CONTACTS",
"LOCATION"
],
"versionCode": 2
}
}
}
独立构建 (.ipa) 被拒绝了两次,因为它没有在权限模式中显示文本。请参阅 Apple 审查小组发送给我的 Image。
苹果的建议如下:
“请修改您应用的 Info.plist 文件中照片的用途字符串,以解释您的应用需要访问权限的原因。
您可以使用 Xcode 中的属性列表编辑器修改应用程序的 Info.plist 文件。”
我尝试了一个模拟器构建,它运行良好。我现在真的很困惑。有人可以帮我吗?我现在能做什么?请帮忙。