Fastlane Code signing required 错误

Fastlane Code signing required error

我正在尝试使用 Fastlane 和 CircleCI 来帮助自动部署到 iOS App Store。我不断收到一条错误消息 Code signing is required for product type 'App Extension' in SDK 'iOS 10.3'。我尝试过使用 Fastlane Match,但这似乎并没有什么帮助。我的 Fastfile 的重要部分如下。

desc "Deploy a new version to the App Store"
lane :release do
  match(type: "appstore")
  gym(scheme: "myapp", workspace: "myapp.xcworkspace", include_bitcode: true, export_method: "app-store") # Build your app - more options available
  deliver(force: true)
end

为了设置 Fastlane Match 我 运行 以下命令。

fastlane match init
fastlane match nuke distribution
fastlane match appstore

我还在安装配置文件之前收到以下消息。

[11:40:08]: There are no local code signing identities found.
You can run `security find-identity -v -p codesigning` to get this output.
This Stack Overflow thread has more information: 
(Check in Keychain Access for an expired WWDR certificate:  has more info.)

问题是 Stack Overflow 与推送服务有关。我的应用目前不使用推送通知。此外,我无法真正检查钥匙串访问,因为它使用的是 Circle CI.

尝试 运行 匹配以下参数

match(type: "appstore", app_identifier: "your.app.identifier", force: true, force_for_new_devices: true)

app_identifier 是您项目的标识符。 这将为 app_identifier 类型 appstore 生成一个新配置文件。

我能够通过取消选中所有目标的 Automatically manage signing 并为每个目标设置配置文件来解决这个问题。我关注了提供该信息的 this question

我在从 Xcode 8(它曾经工作过的地方)迁移到 Xcode 9 时遇到了同样的问题。

取消选中 自动管理签名 为我在 Targets 下的所有框架(Pod)是解决方案。