SwiftUI preview not building for different scheme: error: no such module 'MyApp'

My preview scheme was working perfectly in my production scheme, so I duplicated it  but when I try to build preview the new scheme shows me this error "Compiling file failed: no such module  'MyApp' "

no such module 'Safes'



----------------------------------------



CompileDylibError: Failed to build NotificationCellView.swift



Compiling failed: no such module 'Safes'



/Users/amin/Library/Developer/Xcode/DerivedData/Parental_Control-axokgvhejpgnmeftompkijzbbsin/Build/Intermediates.noindex/Previews/Development/Intermediates.noindex/Parental Control.build/Development-iphonesimulator/Parental Control.build/Objects-normal/arm64/NotificationCellView.1.preview-thunk.swift:1:60: error: no such module 'Safes'

@_private(sourceFile: "NotificationCellView.swift") import Safes

how can I fix this issue for breaking preview?

SwiftUI preview not building for different scheme: error: no such module 'MyApp'
 
 
Q