firebase-ios-sdk: FirebaseInAppMessaging code sign error on Xcode 14
[REQUIRED] Step 1: Describe your environment
- Xcode version: 14.0 Beta (14A5228q)
- Firebase SDK version: 9.1.0
- Installation method:
Cocoapods - Firebase Component: InAppMessaging
- Target platform(s):
iOS
[REQUIRED] Step 2: Describe the problem
When using Xcode 14 to build an iOS project containing the InAppMessaging component, the build fails with a code signing issue:
Signing for "FirebaseInAppMessaging-InAppMessagingDisplayResources" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'FirebaseInAppMessaging-InAppMessagingDisplayResources' from project 'Pods'
Steps to reproduce:
- Add
FIrebaseInAppMessagingpod toPodfile - Run
pod install - Build iOS project in Xcode 14.
- Error is shown:
Signing for "FirebaseInAppMessaging-InAppMessagingDisplayResources" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'FirebaseInAppMessaging-InAppMessagingDisplayResources' from project 'Pods'
Quick fix
Selecting the team in the Signing & Capabilities tab of the FirebaseInAppMessaging-InAppMessagingDisplayResources project fixes the build.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
The Xcode14.0Beta2 fixed the problem.
This post_install script in podfile fixed it. As it seems setting the own developer team is necessary. Replace Your Team ID with the TeamID of your project.
@sarsonj I just checked again and it does seem this is a regression with Xcode 14 (even though the root cause might be the issue you mentioned).
Xcode 13.4.1
pod installXcode 14.0
pod installerror build: Signing for "FirebaseInAppMessaging-InAppMessagingDisplayResources" requires a development team. Select a development team in the Signing & Capabilities editor.@paulb777 Not sure what has changed in Xcode 14 that causes it to suddenly complain about this.
Thanks @yuanxun2007, works for me.
It works to me:
Reference: https://github.com/CocoaPods/CocoaPods/issues/8891