我被雇佣来重新做一个已经在商店里发布了很长时间的现有应用程序。我使用react native和Expo来做,原来的应用程序是用xCode构建的(不认为这很重要吗?)。
客户端给了我应用程序管理器访问苹果商店连接的应用程序,在那里我可以看到应用程序ID和一切。
不,我有一些麻烦提交应用程序,我使用EAS做我的建设,然后把它的商店。
构建似乎没有任何错误,但当提交到苹果商店连接我得到这个错误:
✖ Something went wrong when submitting your app to Apple App Store Connect.
We couldn't figure out what went wrong. See logs to learn more.
[logs] Starting the submit process
[logs] Downloading archive
[logs] Preparing artifact
[logs] Verifying archive
[logs] Creating ascApiJsonKey.json file with ASC credentials
[logs] Submitting iOS app to TestFlight...
[logs] Submitting the app with fastlane pilot
[logs] -------------------
[logs] --- Step: pilot ---
[logs] -------------------
[logs] Creating authorization token for App Store Connect API
[logs] Ready to upload new build to TestFlight (App: 705433944)...
[logs] Going to upload updated app to App Store Connect
[logs] This might take a few minutes. Please don't interrupt the script.
[logs] [altool] 2023-03-23 09:28:51.451 *** Error: The provided entity includes a relationship with an invalid value '6446690244' is not a valid ID for this relationship. (ID: 44a73053-d7ad-4626-800b-81e721cfce44) (409)
[logs] [altool] {
[logs]
[logs] [altool] NSLocalizedDescription = "The provided entity includes a relationship with an invalid value";
[logs]
[logs] [altool] NSLocalizedFailureReason = "'6446690244' is not a valid ID for this relationship. (ID: 44a73053-d7ad-4626-800b-81e721cfce44)";
[logs]
[logs] [altool] "original_server_error" = {
[logs]
[logs] [altool] code = "ENTITY_ERROR.RELATIONSHIP.INVALID";
[logs]
[logs] [altool] detail = "'6446690244' is not a valid ID for this relationship.";
[logs]
[logs] [altool] id = "44a73053-d7ad-4626-800b-81e721cfce44";
[logs]
[logs] [altool] source = {
[logs]
[logs] [altool] pointer = "/data/relationships/app/data/id";
[logs] [altool] };
[logs]
[logs] [altool] status = 409;
[logs]
[logs] [altool] title = "The provided entity includes a relationship with an invalid value";
[logs]
[logs] [altool] };
[logs]
[logs] [altool] }
[logs]
[logs] Application Loader output above ^
[logs] Error uploading '/var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/08ecc9bb-4a6b-4137-ad30-c696206a2844.ipa'.
[logs] The provided entity includes a relationship with an invalid value '6446690288' is not a valid ID for this relationship. (ID: 44a73053-d7ad-4626-800b-81e721cfce44) (409)
[logs] The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
[logs] Could not download/upload from App Store Connect!
[logs] [!] Error uploading ipa file:
[logs] [Application Loader Error Output]: Error uploading '/var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/08ecc9bb-4a6b-4137-ad30-c696206a2844.ipa'.
[logs] [Application Loader Error Output]: The provided entity includes a relationship with an invalid value '6446690244' is not a valid ID for this relationship. (ID: 44a73053-d7ad-4626-800b-81e721cfce89) (409)
[logs] [Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
[logs] Fastlane pilot failed
[logs] Failed to submit the app
字符串
我试着查找它,发现这个问题的Apple forum说:
“请确保您的应用对短版本和捆绑版本字符串[number].[number].[number]使用以下格式,这应允许您成功上传。”
但我不知道在哪里可以找到这个。我猜这是在本地文件的某个地方?我确实有一个ios文件夹与本地文件和所有,但我从来没有编码与本地文件,我害怕搞砸任何东西在那里。
eas.json
{
"cli": {
"version": ">= 3.7.2",
"promptToConfigurePushNotifications": false
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m1-medium"
}
},
"production": {
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"production": {
"ios": {
"appleId": "[email protected]",
"ascAppId": "xxxxxxxx",
"appleTeamId": "xxxxxxxx"
}
}
}
}
型
app.json
{
"expo": {
"name": "updaty",
"plugins": [
[
"expo-calendar",
{
"calendarPermission": "The app needs to access your calendar.",
"remindersPermission": "The app needs to access your reminders."
}
]
],
"slug": "updaty",
"version": "12.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#d72c16"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.updaty.app",
"buildNumber": "1",
"infoPlist": {
"NSRemindersUsageDescription": "The app needs to access your reminders.",
"NSCalendarsUsageDescription": "The app needs to access your calendar."
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#d72c16"
},
"package": "com.updaty.app",
"permissions": [
"android.permission.READ_CALENDAR",
"android.permission.WRITE_CALENDAR"
]
},
"web": {
"favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "xxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxxx"
}
}
},
"android": {
"permissions": [
"READ_CONTACTS",
"WRITE_CONTACTS"
]
},
"react-native-google-mobile-ads": {
"ios_app_id": "ca-app-pub-xxxxxxxxxxx~xxxxxxxxxx"
}
}
型
我不知道我还需要什么代码来提供帮助。
有没有人遇到过这个问题,知道我能做些什么?
帮帮忙!
非常感谢你
我找到了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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>updaty</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>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.apptitute.app</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>exp+updaty</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>NSCalendarsUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your calendars</string>
<key>NSContactsUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your contacts</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to save photos</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your photos</string>
<key>NSRemindersUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your reminders</string>
<key>UILaunchStoryboardName</key>
<string>SplashScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
型
1条答案
按热度按时间ubby3x7f1#
基本上,你需要生成一个新的appstore连接API密钥,这应该会解决你的问题。所需步骤:
eas credentials
,进入你的项目文件夹,然后按照提示登录到你的帐户。