Swinject / SwinjectStoryboard

Swinject extension for automatic dependency injection via Storyboard
MIT License
268 stars 141 forks source link

Carthage Build Failed #138

Open cagatayemekci opened 4 years ago

cagatayemekci commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@gilroykilroy can you open PR please?

gilroykilroy commented 4 years ago

@marekpridal Done

igielskv commented 4 years ago

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?