Carthage: Failed to read file or folder Error for IBAnimatable

Created on 27 Mar 2016  路  2Comments  路  Source: Carthage/Carthage

Created a folder with the following Cartfile:
github "JakeLin/IBAnimatable"

Installed Carthage 0.15.1 via homebrew.

Getting the Failed to read file or folder when running carthage update:

amitayd@Amitays-MacBook-Pro:~/code/carthageBug$ carthage update
*** Fetching IBAnimatable
*** Checking out IBAnimatable at "2.0"
*** xcodebuild output can be found in /var/folders/mv/n3cq2bh54q70brj2g8gpbbzh0000gn/T/carthage-xcodebuild.ON7LAQ.log
*** Building scheme "IBAnimatable" in IBAnimatableApp.xcodeproj
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:27:51: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:32:70: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:15:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:19:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:23:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:27:51: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:32:70: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:15:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:19:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:23:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:27:51: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:32:70: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:15:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:19:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:23:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:27:51: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/PanInteractiveAnimator.swift:32:70: warning: use '#selector' instead of explicitly constructing a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:15:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:19:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
/Users/amitayd/code/carthageBug/Carthage/Checkouts/IBAnimatable/IBAnimatable/TableViewCellDesignable.swift:23:29: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' or explicitly construct a 'Selector'
Failed to read file or folder at /Users/amitayd/Library/Developer/Xcode/DerivedData/IBAnimatableApp-eqqkqtewnxvrasghwofhtzfrsrar/Build/Products/Release-iphoneos/IBAnimatable.framework

Seems like the build itself in carthage-xcodebuild.ON7LAQ.log completes successfully:

...
** BUILD SUCCEEDED **

Reproduced with XCode 7.2 and 7.3.

Downgrading by install Carthage 0.11 from https://github.com/Carthage/Carthage/releases resolves the issue.

duplicate question

All 2 comments

This is similar to #1077, #1096 and #1185. Carthage is now using the values included in Info.plist of frameworks. It expects that the file includes correct values of CFBundlePackageType and CFBundleExecutable keys. However, the Info.plist of JakeLin/IBAnimatable is using the one for an application target (specified here) which is inappropriate for a framework target.

I believe the issue should be addressed on the library side. I wish this (and the related issues above) would clarify the thing. :wink: Closing.

@ikesyo thanks for your info. Will fix the plist in IBAnimatable.

Was this page helpful?
0 / 5 - 0 ratings