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

Build fails: Failed to read file or folder #1096

Closed
funkenstrahlen opened this issue Feb 4, 2016 · 4 comments
Closed

Build fails: Failed to read file or folder #1096

funkenstrahlen opened this issue Feb 4, 2016 · 4 comments
Labels

Comments

@funkenstrahlen
Copy link

After updating Carthage from 0.11.0 to 0.12.0 build fails with Failed to read file or folder.

➜  xenim-ios-app git:(feature/chat) ✗ rm -rf ~/Library/Developer/Xcode/DerivedData/*
zsh: sure you want to delete all the files in /Users/funkenstrahlen/Library/Developer/Xcode/DerivedData [yn]? y
➜  xenim-ios-app git:(feature/chat) ✗ carthage build
*** xcodebuild output can be found in /var/folders/8r/nl9r6g3s2j36ljrhdnky9ng40000gn/T/carthage-xcodebuild.iWEREk.log
*** Building scheme "LNPopupController" in LNPopupController.xcodeproj
Failed to read file or folder at /Users/funkenstrahlen/Library/Developer/Xcode/DerivedData/LNPopupController-ebljzheondcyzmgasaqoromitmen/Build/Products/Release-iphoneos/LNPopupController.framework

However the files and folders are actually there!

➜  xenim-ios-app git:(feature/chat) ✗ ls -al /Users/funkenstrahlen/Library/Developer/Xcode/DerivedData/LNPopupController-ebljzheondcyzmgasaqoromitmen/Build/Products/Release-iphoneos 
total 360
drwxr-xr-x  6 funkenstrahlen  staff    204 Feb  4 08:40 .
drwxr-xr-x@ 4 funkenstrahlen  staff    136 Feb  4 08:40 ..
-rw-------  1 funkenstrahlen  staff  88814 Feb  4 08:40 3BD6E988-613A-38E0-8B6C-33BE5017EAD7.bcsymbolmap
-rw-------  1 funkenstrahlen  staff  91694 Feb  4 08:40 95E0BAA5-A77A-3028-84FD-FAD577B8A4F5.bcsymbolmap
drwxr-xr-x  8 funkenstrahlen  staff    272 Feb  4 08:40 LNPopupController.framework
drwxr-xr-x  3 funkenstrahlen  staff    102 Feb  4 08:40 LNPopupController.framework.dSYM

Also the build succeeds without any errors according to the build logfile.

This also breaks building projects in XCode as copy-frameworks raises the same error during XCode build.

I just reverted my Carthage version back to 0.11.0 and the error is gone.

@mdiep
Copy link
Member

mdiep commented Feb 4, 2016

That's quite weird. 😕

@ikesyo
Copy link
Member

ikesyo commented Feb 4, 2016

This is similar to #1077. The Info.plist in that repo/framework does not have CFBundlePackageType key: https://github.com/LeoNatan/LNPopupController/blob/7a51acdf2e8ec59f678d7898e98bf031dff63e89/LNPopupController/Info.plist
So the contents of the file is insufficient.

@funkenstrahlen
Copy link
Author

@ikesyo So should it be BNDL or FMWK?

@funkenstrahlen
Copy link
Author

Setting it to FMWK works. Thanks!

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

No branches or pull requests

3 participants