Post

Replies

Boosts

Views

Activity

Reply to Xcode Previews doesn't work when used in a package that imports other packages.
Steps to reproduce this error: Git clone TestPackage1 - https://github.com/iamlogiq/TestPackage1.git & TestPackage2 - https://github.com/iamlogiq/TestPackage2.git at the same level in a directory Open TestPackage2 and go to Sources/TestPackage2/SwiftUIView2.swift and try to start an Xcode preview You get the error I mentioned above Remove the TestPackage1 dependency in TestPackage2/Package.swift change line 33 from: dependencies: ["TestPackage1"] to: dependencies: [] 5. Repeat step 2 and this time Xcode preview builds with no error
Jun ’20