Post

Replies

Boosts

Views

Activity

Reply to Xcode previews stop working in packages after adding a dependency
Similar issue with the same error message for me. From a first library named "MyViews", I need to access a resource that is in a second library named "MyResources". If I run my app, it is working but the Xcode Preview produces this error: build aborted due to an internal error: planningFailed("multiple configured targets of \'MyResources\' are being created for iOS Simulator") SchemeBuildError: Failed to build the scheme "ResourcesInAnotherModule" unexpected service error: build aborted due to an internal error: planningFailed("multiple configured targets of \'MyResources\' are being created for iOS Simulator") Build system information: error: unexpected service error: build aborted due to an internal error: planningFailed("multiple configured targets of \'MyResources\' are being created for iOS Simulator") My package is: // swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package(     name: "MyPackage",     platforms: [SupportedPlatform.iOS(.v14)],     products: [         .library(             name: "MyViews",             targets: ["MyViews"]),         .library(             name: "MyResources",             targets: ["MyResources"]),     ],     targets: [         .target(             name: "MyViews",             dependencies: ["MyResources"]),         .target(             name: "MyResources",             dependencies: []),     ] ) I have open a bug in Apple's Feedback Assistant for that issue with my project sample, number FB8930185.
Dec ’20