Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read file or folder Error for IBAnimatable #1218

Closed
amitayd opened this issue Mar 27, 2016 · 2 comments
Closed

Failed to read file or folder Error for IBAnimatable #1218

amitayd opened this issue Mar 27, 2016 · 2 comments

Comments

@amitayd
Copy link

amitayd commented Mar 27, 2016

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.

@ikesyo
Copy link
Member

ikesyo commented Mar 27, 2016

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. 😉 Closing.

@JakeLin
Copy link

JakeLin commented Mar 27, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants