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

Carthage installation not working "The file “GPUImage.framework” couldn’t be opened because there is no such file." #2573

Closed
shtnkgm opened this issue May 26, 2018 · 6 comments · May be fixed by #2577

Comments

@shtnkgm
Copy link

shtnkgm commented May 26, 2018

I can not install GPUImage using carthage. When you execute the carthage update command, the following error is output to the console.

$ carthage update --platform ios
*** Fetching GPUImage
*** Checking out GPUImage at "0.1.7"
*** xcodebuild output can be found in /var/folders/62/nrp34pc96t550_hhml86hmwrr_q2rc/T/carthage-xcodebuild.RYlDnC.log
*** Building scheme "GPUImageFramework" in GPUImage.xcodeproj
Failed to write to /Users/snakagam/Desktop/CameraApp/Carthage/Build/iOS/GPUImage.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “GPUImage.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/snakagam/Desktop/CameraApp/Carthage/Checkouts/GPUImage/build/ArchiveIntermediates/GPUImageFramework/BuildProductsPath/Release-iphoneos/GPUImage.framework, NSFilePath=/Users/snakagam/Desktop/CameraApp/Carthage/Checkouts/GPUImage/build/ArchiveIntermediates/GPUImageFramework/BuildProductsPath/Release-iphoneos/GPUImage.framework, NSUnderlyingError=0x7fb41db08460 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

My development environment is as follows.

$ carthage version 
0.29.0
$ xcodebuild -version 
Xcode 9.3
Build version 9E145
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.3
BuildVersion:	17D102
@shtnkgm
Copy link
Author

shtnkgm commented May 26, 2018

The folder called ArchiveIntermediates does not exist under the Carthage / Build folder.

@shtnkgm
Copy link
Author

shtnkgm commented May 26, 2018

My problem is simmilar to Carthage/Carthage#2389

@psegalen
Copy link

I have the same issue, seems to have something to do with SYMROOT according to Carthage/Carthage#2220

@IHNEL
Copy link

IHNEL commented Nov 16, 2018

Hi I have same issue but couldn't resolved by removing SYMROOT as Carthage/Carthage#2220
It always throw below error:
Failed to write to /Users/admin/Documents/Projects/ilinus/Carthage/Build/iOS/GPUImage.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “GPUImage.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/admin/Documents/Projects/ilinus/Carthage/Checkouts/GPUImage/build/ArchiveIntermediates/GPUImageFramework/BuildProductsPath/Release-iphoneos/GPUImage.framework, NSFilePath=/Users/admin/Documents/Projects/ilinus/Carthage/Checkouts/GPUImage/build/ArchiveIntermediates/GPUImageFramework/BuildProductsPath/Release-iphoneos/GPUImage.framework, NSUnderlyingError=0x7f96d3e49a20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I'm using XCode 10.1, Swift 4.2, Carthage 0.31.2
Could anyone please help?

@IHNEL
Copy link

IHNEL commented Nov 17, 2018

Finally I resolved this problem.
I used to change the Derived Data path in my application's Project Settings and Xcode Preference, which didn't work.

Now I open the file GPUImage.xcodeproj under Carthage/Checkouts/GPUImage/framework/ folder in my XCode, go to menu File > Project Settings, under Derived Data section, select Advanced..., change the Build Location from Legacy to Xcode Default.

Go back to Terminal and run carthage update --platform iOS, it works like charm!

@RickeyXiao
Copy link

Finally I resolved this problem.
I used to change the Derived Data path in my application's Project Settings and Xcode Preference, which didn't work.

Now I open the file GPUImage.xcodeproj under Carthage/Checkouts/GPUImage/framework/ folder in my XCode, go to menu File > Project Settings, under Derived Data section, select Advanced..., change the Build Location from Legacy to Xcode Default.

Go back to Terminal and run carthage update --platform iOS, it works like charm!

It works, but it's means that i will do this operation every time update carthage ?

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

Successfully merging a pull request may close this issue.

4 participants