AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
164 stars 89 forks source link

[Xcode 12.5 Beta 3] Unexpected duplicated tasks: Command ProcessXCFramework #169

Closed victorBaro closed 3 years ago

victorBaro commented 3 years ago

Report

SDK Version

6.2.5

What did you do?

Added Appsflyer as SPM dependency to a local dependency. Here is the package.swift:

let package = Package(
    name: "Analytics",
    platforms: [
        .macOS(.v11), .iOS(.v13),
    ],
    products: [
        .library(
            name: "Analytics",
            type: .dynamic,
            targets: ["Analytics"]),
    ],
    dependencies: [
        // Local
        .package(path: "../Utilities"),
        // External
        .package(name: "AppsFlyerLib", url: "https://github.com/AppsFlyerSDK/AppsFlyerFramework", from: "6.2.5"),
    ],
    targets: [
        .target(
            name: "Analytics",
            dependencies: [
                // Local
                "Utilities",

                // External
                "AppsFlyerLib",
            ]),
        .testTarget(
            name: "AnalyticsTests",
            dependencies: ["Analytics"]),
    ])

What did you expect to happen?

Main project to compile.

What happened instead?

Xcode 12.4 presented no issues. Xcode 12.5 raises the following error and does not compile:

Unexpected duplicate tasks:
1) Command: ProcessXCFramework /Users/REDACTED/Library/Developer/Xcode/DerivedData/REDACTED-hhtnbyfmvrffwmetinppdcipdpzy/SourcePackages/checkouts/AppsFlyerFramework/MacCatalyst/AppsFlyerLib.xcframework ios simulator
2) Command: ProcessXCFramework /Users/REDACTED/Library/Developer/Xcode/DerivedData/REDACTED-hhtnbyfmvrffwmetinppdcipdpzy/SourcePackages/checkouts/AppsFlyerFramework/MacCatalyst/AppsFlyerLib.xcframework ios simulator

Please provide any other relevant information.

Seems like a known Xcode issue, not sure if related to all packages or just some. In our project there are 2 external dependencies presenting this issue, among 12 other dependencies that seem to be working fine.

Any help to get the project working will be appreciated.

victorBaro commented 3 years ago

Seems to be fixed in Xcode 12.5 RC