Carthage: Failed to read file or folder which is present

Created on 13 Mar 2017  路  5Comments  路  Source: Carthage/Carthage

  • carthage version:
    0.20.1
  • xcodebuild -version:
    Xcode 8.2
    Build version 8C38
  • Are you using --no-build?
    No
  • Are you using --no-use-binaries?
    No
  • Are you using --use-submodules?
    No
  • Are you using --cache-builds?
    No

Cartfile

github "carnivalmobile/carnival-ios-sdk"

Carthage Output
(From copy-frameworks)

Failed to read file or folder at /Users/sam/Desktop/CarthageTestIntegration/Carthage/Build/iOS/Carnival.framework

Command /bin/sh failed with exit code 1

Xcode build settings setup:
screen shot 2017-03-14 at 9 50 35 am

I'm getting the above error and I'm not too sure why, but from examining other issues with the same issue, it seemed to be a case of missing CFBundlePackageType, but this framework appears to have it. Any ideas? This is on a fresh Xcode project, too.

question

Most helpful comment

I could not reproduce this locally. That successfully works.

Could you share your project directory structures? I suspect that $(SRCROOT)/Carthage/Build/iOS/Carnival.framework is not correctly pointing the framework location.

$(SRCROOT) means a directory where an .xcodeproj file is located, so if you put the project file in a different directory from Carthage directory, that should fail.

All 5 comments

IIRC we only accept some values for CFBundlePackageType.

I can't view your plist on GitHub, and it gets deleted as soon as I try to do download it, so I can't see what value you're using. But that's what I'd check.

Unsure why it's getting deleted for you? It's set to FMWK @mdiep

I could not reproduce this locally. That successfully works.

Could you share your project directory structures? I suspect that $(SRCROOT)/Carthage/Build/iOS/Carnival.framework is not correctly pointing the framework location.

$(SRCROOT) means a directory where an .xcodeproj file is located, so if you put the project file in a different directory from Carthage directory, that should fail.

@ikesyo
screen shot 2017-03-16 at 1 43 52 pm the path is definitely there - which is odd!

I tried this on a fresh project, and it worked, so closing for now. No real idea what happened.

Was this page helpful?
0 / 5 - 0 ratings