Skip to content

carthage copy-frameworks seems to be broken with 0.36.1 #3118

@benjohnde

Description

@benjohnde
  • carthage install method: [ ] .pkg, [x] homebrew, [ ] source
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.36.1
  • xcodebuild -version: Xcode 12.4, Build version 12D4e
  • Are you using --no-build? No.
  • Are you using --no-use-binaries? Yes.
  • Are you using --use-submodules? No.
  • Are you using --cache-builds? No.
  • Are you using --new-resolver? Yes.

Cartfile

github "SVProgressHUD/SVProgressHUD" ~> 2.2
github "ivanbruel/MarkdownKit" ~> 1.5
github "pocketsvg/PocketSVG" ~> 2.5.0

Carthage Output

*** Checking out PocketSVG at "2.5.0"
*** Checking out MarkdownKit at "1.6"
*** Checking out SVProgressHUD at "2.2.5"
*** Building scheme "MarkdownKit" in MarkdownKit.xcworkspace
*** Building scheme "PocketSVG (iOS)" in Demos.xcworkspace
*** Building scheme "SVProgressHUD-Framework" in SVProgressHUD.xcodeproj

Actual outcome
carthage copy-frameworks fails with the following error message:

In attempt to read NSBundle «file:///Users/john/git/appsmono/ios/Apps/Calprotectin/Carthage/Build/iOS/PocketSVG.framework/»'s binary url, could not relativize «file:///Users/john/git/appsmono/ios/Carthage/Build/iOS/PocketSVG.framework/PocketSVG» against «file:///Users/john/git/appsmono/ios/Apps/Calprotectin/Carthage/Build/iOS/PocketSVG.framework/».

You can replace the framework with an arbitrary one. It does not solve the problem.

Expected outcome
Carthage should copy the frameworks correctly.

I could trace that back the problem to the changes in the current version. Rolling carthage version back to 0.36.0 fixes the problem.

0.36.0...0.36.1

We are using the recommended shell script since a few weeks and updated the contents with the ones in the Documentation/Xcode12Workaround.md. Did also not help! Caches were cleared accordingly and we also used a brand-new machine to simulate a build from scratch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions