Carthage: Build fails: Failed to read file or folder

Created on 4 Feb 2016  Â·  4Comments  Â·  Source: Carthage/Carthage

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.

question

Most helpful comment

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.

All 4 comments

That's quite weird. :confused:

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.

@ikesyo So should it be BNDL or FMWK?

Setting it to FMWK works. Thanks!

Was this page helpful?
0 / 5 - 0 ratings