Appstore审核重要通知,望周知!Invalid Binary,无效二进制!

❝Appstore问题或咨询,一起讨论的朋友可以在我的公众号iOS研究院留言。❞

通知

📢📢📢 在最近提交Appstore更新的小伙伴一定要特别注意了!

一定要注意引用到项目中的第三方库是否适配,隐私合规文件。

即:PrivacyInfo.xcprivacy

Appstore邮件内容如下:

Hello,

We noticed one or more issues with a recent submission for App Store review for the following app:

-   xxxxx - xxxxxxxxx
-   Version 1.0.x
-   Build xxx

Please correct the following issues and upload a new binary to App Store Connect.

**ITMS-91061: Missing privacy manifest** - Your app includes “Frameworks/AFNetworking.framework/AFNetworking”, which includes AFNetworking, an SDK that was identified in the documentation as a commonly used third-party SDK. If a new app includes a commonly used third-party SDK, or an app update adds a new commonly used third-party SDK, the SDK must include a privacy manifest file. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: <https://developer.apple.com/support/third-party-SDK-requirements.>

Apple Developer Relations

修改方式

方式一

及时将自己的项目第三库统一进行升级,避免遭遇此类问题。
同时,做好新版本SDK的语法兼容,避免项目报错无法正常运行。

方式二

在项目找到没有添加PrivacyInfo.xcprivacy的第三方库,对于已经不再维护的第三方库可采用此方式。
这里以Alamofire为例子,将PrivacyInfo.xcprivacy拷贝其他没此文件的第三方库中库即可。亲测有效!

在这里插入图片描述

需要注意的第三方库清单

需要隐私清单和签名的sdk

以下是App Store应用中常用的sdk。当您在App Store Connect中提交包含这些SDK的新应用程序时,或者当您提交将列出的SDK之一添加为更新的一部分的应用程序更新时,您必须包含以下列出的任何SDK的隐私清单

在将列出的sdk用作二进制依赖项的情况下,还需要签名。

列出的SDK的任何版本,以及重新打包列表上的SDK的任何SDK,都包含在需求中。

  • Abseil
  • AFNetworking
  • Alamofire
  • AppAuth
  • BoringSSL / openssl_grpc
  • Capacitor
  • Charts
  • connectivity_plus
  • Cordova
  • device_info_plus
  • DKImagePickerController
  • DKPhotoGallery
  • FBAEMKit
  • FBLPromises
  • FBSDKCoreKit
  • FBSDKCoreKit_Basics
  • FBSDKLoginKit
  • FBSDKShareKit
  • file_picker
  • FirebaseABTesting
  • FirebaseAuth
  • FirebaseCore
  • FirebaseCoreDiagnostics
  • FirebaseCoreExtension
  • FirebaseCoreInternal
  • FirebaseCrashlytics
  • FirebaseDynamicLinks
  • FirebaseFirestore
  • FirebaseInstallations
  • FirebaseMessaging
  • FirebaseRemoteConfig
  • Flutter
  • flutter_inappwebview
  • flutter_local_notifications
  • fluttertoast
  • FMDB
  • geolocator_apple
  • GoogleDataTransport
  • GoogleSignIn
  • GoogleToolboxForMac
  • GoogleUtilities
  • grpcpp
  • GTMAppAuth
  • GTMSessionFetcher
  • hermes
  • image_picker_ios
  • IQKeyboardManager
  • IQKeyboardManagerSwift
  • Kingfisher
  • leveldb
  • Lottie
  • MBProgressHUD
  • nanopb
  • OneSignal
  • OneSignalCore
  • OneSignalExtension
  • OneSignalOutcomes
  • OpenSSL
  • OrderedSet
  • package_info
  • package_info_plus
  • path_provider
  • path_provider_ios
  • Promises
  • Protobuf
  • Reachability
  • RealmSwift
  • RxCocoa
  • RxRelay
  • RxSwift
  • SDWebImage
  • share_plus
  • shared_preferences_ios
  • SnapKit
  • sqflite
  • Starscream
  • SVProgressHUD
  • SwiftyGif
  • SwiftyJSON
  • Toast
  • UnityFramework
  • url_launcher
  • url_launcher_ios
  • video_player_avfoundation
  • wakelock
  • webview_flutter_wkwebview

遵守规则,方得长治久安,最后祝大家大吉大利,今晚过审!

### 解决 MacOS 下二进制文件无效问题 当遇到 MacOS 下二进制文件无效的问题时,通常涉及到签名验证失败或编译过程中产生的二进制文件不兼容等问题。以下是详细的解决方案: #### 1. 检查并修复代码签名问题 如果问题是由于 MonoMac 或其他框架的签名错误引起的,则需要重新签署应用程序以确保其符合 Mac App Store 的规定。 ```bash # 移除现有签名 codesign --remove-signature /path/to/your.app # 使用正确的证书重新签名 codesign --force --sign "Developer ID Application: Your Company Name" /path/to/your.app ``` 这一步骤可以解决因签名不当而导致的应用程序加载器上传后状态变为 “Invalid Binary”的情况[^2]。 #### 2. 验证构建设置 确认 Xcode 中项目的架构和 SDK 设置正确无误。对于 macOS 应用来说,应该只包含支持的目标架构(如 x86_64 和 arm64),并且应使用最新的稳定版 SDK 进行编译。 #### 3. 清理项目缓存数据 有时旧版本残留的数据可能会干扰新版本的正常工作。可以通过清理 Derived Data 文件夹来尝试解决问题。 ```bash rm -rf ~/Library/Developer/Xcode/DerivedData/* ``` #### 4. 更新工具链至最新版本 保持开发环境中使用的命令行工具、Xcode 及相关依赖项处于最新状态有助于减少潜在冲突的可能性。 #### 5. 测试本地安装包的有效性 在正式提交之前,在本机上先测试打包好的 .app 是否能够顺利启动运行,并利用 `spctl` 命令检查应用的安全性和完整性。 ```bash spctl --assess -vvv /path/to/your.app ``` 以上措施可以帮助排查并修正导致 MacOS 平台上二进制文件失效的各种原因,从而提高通过 Apple 审核的成功率[^1]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

iOS研究院

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值