Pol*_*tiz 9 iphone upload xcode app-store ios
突然之间我们的项目没有正确上传到App Store,我们此时就停止了:

错误信息:
ERROR ITMS-90502:"无效的捆绑包.仅包含arm64切片的应用程序在Info.plist中的UIRequiredDeviceCapabilities列表中也必须包含'arm64'."
我们已经尝试了所有,这是我们的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>Optimio</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>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) upload your expense photos through camera and roll</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>$(PRODUCT_NAME) upload your expense photos through camera and roll</string>
<key>UILaunchStoryboardName</key>
<string>Uploaders</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
我们还有这个构建设置:

sib*_*urb 11
它可能是导致它的iTC的变化,但实际上确实有一个修复.
我更正了我(仅限iOS11)项目中所有扩展的plists以包含arm64作为要求(UIRequiredDeviceCapabilities).
然后为cocoapods添加了这个安装后挂钩:https://twitter.com/aaron_pearce/status/966530631608881153
现在已成功上传并正在处理中.
编辑:
虽然这个解决方案是有效的,并且工作得很好,但不再需要.似乎iTC已经"修复",现在接受(再次)没有进行这些更改的构建.
https://forums.developer.apple.com/message/296129
(我确实按照此处的建议尝试了安装后挂钩,但是没有用)
将以下xml添加到主目标的info.plist文件中,
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
Run Code Online (Sandbox Code Playgroud)
然后将相同的xml添加到info.plistpods项目中的所有文件中(如果你有一个pods项目).
您现在应该可以上传到iTunes连接.
| 归档时间: |
|
| 查看次数: |
1210 次 |
| 最近记录: |