Flutter] No valid code signing certificates were found

Flutter 기본가이드대로 앱프로젝트를 생성후에 아이폰 연결 후 실행하면 아래와 같이 에러가 발생한다. 


Launching lib/main.dart on homin의 iPhone in debug mode...

════════════════════════════════════════════════════════════════════════════════

No valid code signing certificates were found

You can connect to your Apple Developer account by signing in with your Apple ID

in Xcode and create an iOS Development Certificate as well as a Provisioning 

Profile for your project by:

  1- Open the Flutter project's Xcode target with

       open ios/Runner.xcworkspace

  2- Select the 'Runner' project in the navigator then the 'Runner' target

     in the project settings

  3- Make sure a 'Development Team' is selected. 

     - For Xcode 10, look under General > Signing > Team.

     - For Xcode 11 and newer, look under Signing & Capabilities > Team.

     You may need to:

         - Log in with your Apple ID in Xcode first

         - Ensure you have a valid unique Bundle ID

         - Register your device with your Apple Developer Account

         - Let Xcode automatically provision a profile for your app

  4- Build or run your project again

  5- Trust your newly created Development Certificate on your iOS device

     via Settings > General > Device Management > [your new certificate] > Trust


For more information, please visit:

  https://developer.apple.com/library/content/documentation/IDEs/Conceptual/

  AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html


Or run on an iOS simulator without code signing

════════════════════════════════════════════════════════════════════════════════

Finished with error: No development certificates available to code sign app for device deployment


1번에 ios/Runner.xcworkspace 링크를 클릭하면 xcode가 실행된다. 


xcode에서 좌측 runner를 클릭하면 우측에 Signing&Capabilites 탭이 보인다 .


거기서 Team을 선택하고 Bundle identifier를 중복되지않게 작성후 왼쪽 상단 재생버튼같이 생긴 build버튼을 누르면 아이폰에 설치가 완료된다.


아이폰 -> 일반 -> 기기관리에 들어가서 신뢰할수 있는 기기를 추가해줘야 실행이 가능하다.



'Programming > Flutter' 카테고리의 다른 글

[flutter] 프로젝트 생성 & HELLO WORLD  (0) 2023.08.07
[flutter] mac 환경설정~  (0) 2023.08.06