I'm migrating my project from Carthage to SPM. I'm using Xcode 12.0. Building the main app works without any problems but I cannot run my unit tests anymore. I use the same framework SwiftDate v6.2.0 in both my App target (SPMD) and my App test target (SPMDTests).
I already resolved the Swift package product 'your library' is linked as a static library by 'your project' and 'your widget'. This will result in duplication of library code.. I followed the tutorial Swift Package Manager Static Dynamic Xcode Bug.
I can run my app but I cannot run my unit tests. The error says
Unexpected duplicate tasks:
1) Target 'SPMDTests' (project 'SPMD') has copy command from 'xxx/DerivedData/xxx/Build/Products/Debug-iphonesimulator/SwiftDate_SwiftDate.bundle' to 'xxx/DerivedData/xxx/Build/Products/Debug-iphonesimulator/SPMD.app/PlugIns/SPMDTests.xctest/SwiftDate_SwiftDate.bundle'
2) Target 'SPMDTests' (project 'SPMD') has copy command from 'xxx/DerivedData/xxx/Build/Products/Debug-iphonesimulator/SwiftDate_SwiftDate.bundle' to 'xxx/DerivedData/xxx/Build/Products/Debug-iphonesimulator/SPMD.app/PlugIns/SPMDTests.xctest/SwiftDate_SwiftDate.bundle'
I tried the same setup with Realm and it works without any problems. Is this a bug with SwiftDate or am I missing anything?
I already posted this bug on StackOverflow Swift Package Manager - Unexpected duplicate tasks: Target AppTests (project App) has copy command - SwiftDate. I don't really know if SwiftDate SPM isn't setup correctly or if it is a bug with SPM but I do know that I cannot run my unit tests.
I'm migrating my project from Carthage to SPM. I'm using Xcode 12.0. Building the main app works without any problems but I cannot run my unit tests anymore. I use the same framework SwiftDate v6.2.0 in both my App target (SPMD) and my App test target (SPMDTests).
I already resolved the
Swift package product 'your library' is linked as a static library by 'your project' and 'your widget'. This will result in duplication of library code.
. I followed the tutorial Swift Package Manager Static Dynamic Xcode Bug.I can run my app but I cannot run my unit tests. The error says
I tried the same setup with Realm and it works without any problems. Is this a bug with SwiftDate or am I missing anything?