SwiftUI Preview not working in Xcode 12

I had hopes that Xcode 12 will solve my SwiftUI Preview issues, but no..:(

I have a project where I can't see any previews.

What can be the problem?

I'm getting this error:

SchemeBuildError: Failed to build the scheme "NewWidgetExtension"

linker command failed with exit code 1 (use -v to see invocation)

Merge swiftmodule (x86_64):

Command MergeSwiftModule failed with a nonzero exit code

Merge swiftmodule (i386):

Command MergeSwiftModule failed with a nonzero exit code

Merge swiftmodule (arm64):

Command MergeSwiftModule failed with a nonzero exit code

Link <Name of app> (arm64):

ld: in /Users/avitsadok/Code/iOS/iOS/iOSClient/Pods/FBSDKMarketingKit/FBSDKMarketingKit.framework/FBSDKMarketingKit(FBSDKMarketingLogger.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/avitsadok/Code/iOS/iOS/iOSClient/Pods/FBSDKMarketingKit/FBSDKMarketingKit.framework/FBSDKMarketingKit' for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)



Answered by totalidea in 639273022
You tried the solution mentioned here: https://developer.apple.com/forums/thread/657913

?

Accepted Answer
You tried the solution mentioned here: https://developer.apple.com/forums/thread/657913

?

Actually yes! But now I have a new problem - a timeout.

TimeoutError: Timed out waiting for a thunk to build after 30.0 seconds.
SwiftUI Preview not working in Xcode 12
 
 
Q