使用Azure包发布Expo RN应用至App Store时msauth URL Scheme被拒
部署Expo React Native应用至Apple App Store时遇到URL Scheme验证错误
使用Azure的Apple App Store Release包将Expo React Native应用部署至苹果App Store时,触发以下错误:
Error: [ContentDelivery.Uploader.600003C88200] Validation failed (409) The following URL schemes found in your app are disallowed: [msauth] (ID:
)
已尝试在.plist文件的CFBundleURLSchemes键中添加msauth.<my.bundle.id>值,但问题仍未解决,寻求缺失的配置建议。
当前.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>method</key> <string>app-store</string> <key>teamID</key> <string>TEAM_ID</string> <key>signingCertificate</key> <string>iPhone Distribution</string> <key>uploadBitcode</key> <false/> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>msauth.com.company.projectname</string> </array> </dict> </array> <key>provisioningProfiles</key> <dict> <key>com.company.projectname.appname</key> <string>UUID</string> </dict> </dict> </plist>
当前Expo app.config.js文件内容
module.exports = { name: Demo, slug: demo, version: "1.0.0", scheme: 'msauth', orientation: 'portrait', icon: './assets/images/appname/ios-icon-1024x1024.png', userInterfaceStyle: 'light', newArchEnabled: true, backgroundColor: '#202c5d', assetBundlePatterns: ['**/*'], ios: { icon: { backgroundColor: '#202c5d' }, infoPlist: { NSCameraUsageDescription: 'Your camera will be used to scan barcodes or take pictures for Demo', NSLocationWhenInUseUsageDescription: 'Your locations information will be used whenever you access the inventory.' }, supportsTablet: true, googleServicesFile: './GoogleService-Info.plist', bundleIdentifier: 'com.company.projectname.appname', buildNumber: '1.0.0' }, android: { adaptiveIcon: { foregroundImage: './assets/images/appname/android-icon-1024x1024.png', backgroundColor: '#255d98' }, googleServicesFile: './google-services.json', edgeToEdgeEnabled: true, package: 'com.company.projectname.appname', versionCode: 1 }, web: { favicon: './assets/images/favicon.png' }, plugins: [ ['./plugins/withNinjaLongPaths'], ['@react-native-firebase/app'], ['@react-native-firebase/auth'], ['@react-native-firebase/crashlytics'], [ 'expo-build-properties', { android: { minSdkVersion: 26, compileSdkVersion: 35, targetSdkVersion: 35 }, ios: { useFrameworks: 'static' } } ], [ 'expo-image-picker', { photosPermission: 'Allow $(PRODUCT_NAME) to access your photos', cameraPermissions: 'Allow $(PRODUCT_NAME) to access your camera' } ], [ 'expo-location', { locationAlwaysAndWhenInUsePermission: 'Allow $(PRODUCT_NAME) to use your location.' } ], [ 'expo-splash-screen', { ios: { backgroundColor: '#202c5d', image: './assets/images/appname/splash-1024x1024.png', imageWidth: 200 }, android: { backgroundColor: '#202c5d', image: './assets/images/appname/splash-1024x1024.png', imageWidth: 200 } } ] ] };
Azure DevOps相关截图
Azure DevOps流水线配置:

Azure DevOps部署日志:

补充信息
应用可正常部署至Firebase和Google Play,仅苹果App Store持续拒绝。如需其他信息可补充。
内容的提问来源于stack exchange,提问作者Fiddle Freak
相关产品推荐
相关产品推荐

