I'm new to flutter/iOS.
I'm using:
Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9b2d32b605 • 2021-01-22 14:36:39 -0800 Engine • revision 2f0af37152 Tools • Dart 2.10.5 and Xcode 11.0
Im trying to release a flutter app in iOS.
It runs perfectly using xcode or command line (flutter run). But when I execute flutter build ios or try to Product--> archive (in xcode).
I have an error:
Warning: unable to build chain to self-signed root for signer "Apple Development: Jhon Doe (65XXJY9XXX)"
/Users/dev/Library/Developer/Xcode/DerivedData/Runner-cuuvcuiymjgpxmhlfvkgvijzzyls/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/App.framework/App: errSecInternalComponent Command PhaseScriptExecution failed with a nonzero exit code
I tried many ways to solve it, such as: Flutter Clean, pod install, Legacy Build, pod deintegrate, run script only when installing (in Build Pashes), deleting derivedData folder.. with no success.
Any ideas? Please help me, I'm stuck.
Thanks.