Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: Signing for "Runner" requires a development team

I get the below error when trying to build my Flutter APP for iOS using Codemagic. I have set the signing to automatic and given all the credentials required as mentioned in this medium article

❌  error: Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Runner' from project 'Runner')

Can someone please let me know where to set the development team. I am building this on a Windows machine with dev editor as VS code.

Thanks

like image 805
Sampat Avatar asked Oct 16 '19 18:10

Sampat


3 Answers

If you already set an account but still give a signing error try to switch between Debug and Release. Follow the attached image. enter image description here

like image 94
BC TUBE Avatar answered Oct 16 '22 18:10

BC TUBE


Its best to use xcode for ios development, but there is a possible workaround . There is a file ios/Runner.xcodeproj/project.pbxproj, where you could add the following lines in order to add a development team ``

diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 16710ed..2ea1638 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -157,6 +156,7 @@
                                TargetAttributes = {
                                        97C146ED1CF9000F007C117D = {
                                                CreatedOnToolsVersion = 7.3.1;
+                                               DevelopmentTeam = BCG58GM5FG;
                                        };
                                };
                        };
@@ -437,6 +438,7 @@
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
                                CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+                               DEVELOPMENT_TEAM = BCG58GM5FG;
                                ENABLE_BITCODE = NO;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
@@ -460,6 +462,7 @@
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
                                CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+                               DEVELOPMENT_TEAM = BCG58GM5FG;
                                ENABLE_BITCODE = NO;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",

The positioning of the lines is not important, but should be in that order.

like image 25
Rimante Valancauskaite Avatar answered Oct 16 '22 18:10

Rimante Valancauskaite


I had the same problem and hope my solution will resolve yours.

1. Go the Project Navigator.
2. Go the Signing & Capabilities tab.
3. Add a team and try to build the app again.

enter image description here

Best regards.

like image 17
Xrio Avatar answered Oct 16 '22 18:10

Xrio