我的 App Store 提交不断被拒绝,因为我的 flutter 应用程序在测试期间启动时“不断打开设置应用程序”。我似乎无法重现该问题,并且我已经在真实 iPhone、模拟 iPhone、真实 iPad、模拟 iPad 和 Android 设备上进行了测试。
我不知道我应该寻找什么,也不知道应用程序启动设置应用程序的原因。
这是我的
info.plist
文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>************</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>************</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>FirebaseAppDelegateProxyEnabled</key>
<false/>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppleMusicUsageDescription</key>
<string>Allow media library access to send pictures</string>
<key>NSCameraUsageDescription</key>
<string>Allow camera access to send pictures</string>
<key>NSFileProviderDomainUsageDescription</key>
<string></string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow mic access to send audios</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow photo library access to send pictures</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow photo library access to send pictures</string>
<key>NSUserNotificationUsageDescription</key>
<string>We need permission to send you notifications and alerts.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIStatusBarHidden</key>
<false/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>kTCCServiceMediaLibrary</key>
<string>Allow audio access to send audios</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
</plist>
请帮忙指出我应该注意什么。如果对调试有帮助的话,我还可以提供其他片段。
“设置”应用程序在启动时打开的最可能原因是:
过早请求权限(尤其是相机、位置、蓝牙等)。 启用触发某些设置请求的后台模式。 使用 Firebase 或类似服务可能会无意中在启动时请求权限。 检查这些区域并尝试隔离触发“设置”屏幕的原因,以防止在 Apple 审核过程中出现问题。