Code Monkey home page Code Monkey logo

Comments (3)

pepicrft avatar pepicrft commented on June 12, 2024

I cannot set the firebase/firebase-ios-sdk#11463 to ${BUILD_DIR}/../../SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/CrashlyticsInputFiles.xcfilelist in TargetScript.

Could you share the exact error that you are getting? Also, could you share a reproducible project with us?

from tuist.

mo5tone avatar mo5tone commented on June 12, 2024

Steps to reproduce:

  • cd ~/Developer && mkdir Demo && cd Demo

  • tuist init

  • edit Project.swift to below follow firebase SPM guide

    Project.swift
    import ProjectDescription
    let project = Project(
        name: "Demo",
        packages: [
            .package(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "10.26.0")),
        ],
        targets: [
            .target(
                name: "Demo",
                destinations: .iOS,
                product: .app,
                bundleId: "io.tuist.Demo",
                infoPlist: .extendingDefault(
                    with: [
                        "UILaunchStoryboardName": "LaunchScreen.storyboard",
                    ]
                ),
                sources: ["Demo/Sources/**"],
                resources: ["Demo/Resources/**"],
                scripts: [
                    .post(
                        script: "${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run",
                        name: "FirebaseCrashlytics",
                        inputFileListPaths: [
                            "${BUILD_DIR}/../../SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/CrashlyticsInputFiles.xcfilelist",
                        ]
                    )
                ],
                dependencies: [
                    .package(product: "FirebaseCrashlytics"),
                ],
                settings: .settings(
                    base: [
                        "OTHER_LDFLAGS": ["$(inherited)", "-ObjC"],
                    ]
                )
            ),
            .target(
                name: "DemoTests",
                destinations: .iOS,
                product: .unitTests,
                bundleId: "io.tuist.DemoTests",
                infoPlist: .default,
                sources: ["Demo/Tests/**"],
                resources: [],
                dependencies: [.target(name: "Demo")]
            ),
        ]
    )
  • check 'FirebaseCrashlytics' build phase, the 'Input File Lists' take wrong value.
    Screenshot 2024-05-16 at 09 10 43

  • build failed with error: "Unable to load contents of file list: '/Users/Foo/Developer/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/CrashlyticsInputFiles.xcfilelist'"

from tuist.

pepicrft avatar pepicrft commented on June 12, 2024

Thanks a lot @mo5tone. We added it to a list to prioritize it for next week

from tuist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.