Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
184 views
in Technique[技术] by (71.8m points)

ios - Cannot run flutter project after add any package

if I create a new flutter project and run the app on the physical device, I find no problem and it works normally But when I add the package on the pubspec.yaml file It does not work after it and remains the same problem and message

Error Message Details

Unable to install "Runner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620392
Recovery Suggestion: The certificate used to sign "Runner" has either expired or has been revoked. An updated certificate is required to sign and install the application.
--
The identity used to sign the executable is no longer valid.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620392
User Info: {
    DVTRadarComponentKey = 487925;
    MobileDeviceErrorCode = "(0xE8008018)";
    "com.apple.dtdevicekit.stacktrace" = (
  0   DTDeviceKitBase                     0x000000012ca15c8f DTDKCreateNSErrorFromAMDErrorCode + 220
  1   DTDeviceKitBase                     0x000000012ca54241 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
  2   DVTFoundation                       0x000000010ee9d64b DVTInvokeWithStrongOwnership + 71
  3   DTDeviceKitBase                     0x000000012ca53f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
  4   IDEiOSSupportCore                   0x000000012c8c4a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
  5   DVTFoundation                       0x000000010efcc17e __DVT_CALLING_CLIENT_BLOCK + 7
  6   DVTFoundation                       0x000000010efcdda0 __DVTDispatchAsync_block_invoke + 1191
  7   libdispatch.dylib                   0x00007fff6c7d353d _dispatch_call_block_and_release + 12
  8   libdispatch.dylib                   0x00007fff6c7d4727 _dispatch_client_callout + 8
  9   libdispatch.dylib                   0x00007fff6c7da55e _dispatch_lane_serial_drain + 606
  10  libdispatch.dylib                   0x00007fff6c7db02b _dispatch_lane_invoke + 375
  11  libdispatch.dylib                   0x00007fff6c7e4bab _dispatch_workloop_worker_thread + 819
  12  libsystem_pthread.dylib             0x00007fff6ca644f2 _pthread_wqthread + 314
  13  libsystem_pthread.dylib             0x00007fff6ca634c3 start_wqthread + 15
);
}
--


System Information

macOS Version 11.0 (Build 20A5343j)
Xcode 12.3 (17715) (Build 12C33)
Timestamp: 2021-01-25T01:27:20-08:00
question from:https://stackoverflow.com/questions/65877554/cannot-run-flutter-project-after-add-any-package

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

after update code_signing_required = NO in the SDKSettings.plist file, get me this problem I solved this problem by re-correct value to YES


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...