Widget is not showing in widget gallery and preview is also having issue in iOS 14

I was trying to implement widget in my existing project.It was working fine at the beginning.Now suddenly it stop working and I am not able to see the widget preview as well as widget is not coming in widget gallery as well.

Can you guys help me out regarding same.

Error: RemoteHumanReadableError



ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (Foundation._GenericObjCError error 0.)
Have the same issue,

RemoteHumanReadableError

ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (Foundation._GenericObjCError error 0.)
YourApp Target -> Build Phases -> Embed App Extensions
Uncheck [Copy only when installing].

And click [try again] in your AppWidget.swift
Widget is not showing in widget gallery and preview is also having issue in iOS 14
 
 
Q