iOS 上架时遇到的问题

2,527 阅读2分钟

1.App Store Icon 图标问题,有alpha或者其他的透明度等

App Store Connect Operation Error Invalid App Store Icon. The App Store Icon in the asset catalog in 'TsuenHotel.app' can't be transparent nor contain an alpha channel.

  • 解决方法:

找UI修改LOGO图,查看一张图片是否有透明通道: 右击 -> 显示简介 -> Alpha 通道(是 表示有; 否 表示没有)

2.OneSignal包含的问题

App Store Connect Operation Error Invalid Bundle Structure - The binary file 'TsuenHotel.app/PlugIns/OneSignalNotificationServiceExtension.appex/Frameworks/Pods_OneSignalNotificationServiceExtension.framework/Pods_OneSignalNotificationServiceExtension' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at developer.apple.com/go/?id=bund… for information on the iOS app bundle structure.

3.OneSignal扩展的问题

App Store Connect Operation Error Invalid Bundle. The bundle at 'TsuenHotel.app/PlugIns/OneSignalNotificationServiceExtension.appex' contains disallowed nested bundles.

  1. OneSignal扩展的问题

App Store Connect Operation Error Invalid Bundle. The bundle at 'TsuenHotel.app/PlugIns/OneSignalNotificationServiceExtension.appex' contains disallowed file 'Frameworks'.

  • 2.3.4的解决方法:

把 Pods_OneSignalNotificationServiceExtension 的 Embed 改为 Do Not Embed

结局方法

  1. ITMS-90381: Too many symbol files - These symbols have no corresponding slice in any binary xxxxxx.symbols 等一大堆UUID
  • 解决方法

这个问题只出现在上传iOS 11以上的ipa包,因为iOS 11 后,不支持armv7,armv7s框架,所以需要打包上传ipa包前需要删除里面的armv7和armv7s框架,删除方法 targets 中的 Build Settings --- Valid Architectures --- 删除掉 armv7 和 armv7s。然后继续修改 Build Active Architectue Only --- Release --- NO

ITMS-90381,解决方法
可以用终端 cd 到 dSYMs文件夹里面(Archive后出现的界面(window ->organizer),Show in Finder进入对应的时间Archive的包,再显示包内容,里面就有dSYMs文件夹),然后用dwarfdump --uuid *查看是否还有 armv7的框架,如果有,那就说明没有删除完整,需要删除完整,如果有CocoaPods的话,也需要删除对应的armv7框架,操作方法和上图一样
ITMS-90381,解决方法2

6.CDN: trunk URL couldn't be downloaded: xxx/CocoaPods/Specs/master/Specs/a/7/5/AFNetworking/4.0.1/AFNetworking.podspec.json Response: Couldn't connect to server 遇到类似的CocoaPods的问题时

  • 解决方法

试一下添加DNS 8.8.8.8。 具体流程 网络偏好设置 -> 高级 -> DNS -> 点左下角+号添加 8.8.8.8