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 Build Failed #138

Open
cagatayemekci opened this issue Jan 6, 2020 · 5 comments
Open

Carthage Build Failed #138

cagatayemekci opened this issue Jan 6, 2020 · 5 comments

Comments

@cagatayemekci
Copy link

When I try to update Carthage, I get the following error. I cleaned Carthage cache and it didn't work.

Carthage version 0.34.0 (Latest)
Xcode Version 11.2.1

`*** Fetching SwinjectStoryboard
*** Fetching Swinject
*** Checking out Swinject at "2.7.1"
*** Checking out SwinjectStoryboard at "2.2.0"
*** xcodebuild output can be found in /var/folders/2j/z4yzxgjd3kjcp06wb58t0hvc0000gn/T/carthage-xcodebuild.uLVwgr.log
*** Building scheme "Swinject-iOS" in Swinject.xcodeproj
*** Building scheme "SwinjectStoryboard-iOS" in SwinjectStoryboard.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/..../Documents/development/testcarthage/Carthage/Checkouts/SwinjectStoryboard/SwinjectStoryboard.xcodeproj -scheme SwinjectStoryboard-iOS -configuration Release -derivedDataPath /Users/..../Library/Caches/org.carthage.CarthageKit/DerivedData/11.2.1_11B500/SwinjectStoryboard/2.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/2j/z4yzxgjd3kjcp06wb58t0hvc0000gn/T/SwinjectStoryboard SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/..../Documents/development/testcarthage/Carthage/Checkouts/SwinjectStoryboard)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/2j/z4yzxgjd3kjcp06wb58t0hvc0000gn/T/carthage-xcodebuild.uLVwgr.log`

@ghost
Copy link

ghost commented Jan 16, 2020

carthage version 0.34.0
Xcode version 11.3.1

@interface SwinjectStoryboard (SetUp)
           ^
/Users/.../Carthage/Checkouts/SwinjectStoryboard/Sources/SwinjectStoryboard+SetUp.m:22:17: error: cannot find interface declaration for 'SwinjectStoryboard'
@implementation SwinjectStoryboard (SetUp)
                ^
/Users/...Carthage/Checkouts/SwinjectStoryboard/Sources/SwinjectStoryboard+SetUp.m:27:10: error: use of undeclared identifier 'SwinjectStoryboard'
    if ([SwinjectStoryboard conformsToProtocol:@protocol(SwinjectStoryboardProtocol)] &&
         ^
/Users/.../Carthage/Checkouts/SwinjectStoryboard/Sources/SwinjectStoryboard+SetUp.m:28:10: error: use of undeclared identifier 'SwinjectStoryboard'
        [SwinjectStoryboard respondsToSelector:@selector(setup)]) {
         ^
/Users/.../Carthage/Checkouts/SwinjectStoryboard/Sources/SwinjectStoryboard+SetUp.m:29:10: error: use of undeclared identifier 'SwinjectStoryboard'
        [SwinjectStoryboard performSelector:@selector(setup)];
         ^
5 errors generated.```

@gilroykilroy
Copy link

gilroykilroy commented Jan 24, 2020

I just ran into this too. I traced it down to a missing Product Name under Packaging in Build Settings. Setting it to SwinjectStoryboard fixes the issue locally but the Carthage build still breaks. I tried futzing with search paths to no avail so I just made the generated file part of the project.I have placed a fix for this in the master branch of my forked project. See gilroykilroy/SwinjectStoryboard.

@marekpridal
Copy link

@gilroykilroy can you open PR please?

@gilroykilroy
Copy link

@marekpridal Done

@igielskv
Copy link

Hi there, have been trying to install Swinject/SwinjectStoryboard couple times on Xcode 11.4.1 (11E503a), always getting this error after carthage update:

`*** Fetching SwinjectStoryboard
*** Fetching Swinject
*** Checking out Swinject at "2.7.1"
*** Checking out SwinjectStoryboard at "2.2.0"
*** xcodebuild output can be found in /var/folders/30/9kygf23j5dd3kmxl8x_19_680000gp/T/carthage-xcodebuild.HmVkkO.log
*** Building scheme "Swinject-macOS" in Swinject.xcodeproj
*** Building scheme "Swinject-iOS" in Swinject.xcodeproj
Build Failed
Task failed with exit code 70:
/usr/bin/xcrun xcodebuild -project /Users/Manoli/Developer/Learning\ Projects/Speedometer/Carthage/Checkouts/Swinject/Swinject.xcodeproj -scheme Swinject-iOS -configuration Release -derivedDataPath /Users/Manoli/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/Swinject/2.7.1 -sdk iphonesimulator -destination platform=iOS\ Simulator,id=F437556A-EBF6-4EA4-8851-0945C847E526 -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/Manoli/Developer/Learning Projects/Speedometer/Carthage/Checkouts/Swinject)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/30/9kygf23j5dd3kmxl8x_19_680000gp/T/carthage-xcodebuild.HmVkkO.log
`

Carthage is isntalled via pkg with option "For all users".

Any idea why this could be?

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

No branches or pull requests

4 participants