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

Dependency not detected, build fails #1317

Closed
dfclark opened this Issue May 21, 2016 · 9 comments

Comments

Projects
None yet
4 participants
@dfclark

dfclark commented May 21, 2016

I'm running carthage 0.16.2 on OS X 10.11.4 and am seeing this behavior.
My cart file looks like this:

Dons-MBP:Project$ cat cartfile
github "CocoaLumberjack/CocoaLumberJack" ~> 2.0
github "Alamofire/Alamofire" ~> 3.3
github "SwiftyJSON/SwiftyJSON" ~> 2.3
git "git@gitserver.foobar.com:repositories/HMLoggerServicesFramework.git" "master"

But carthage update --platform iOS attempts to build HMLoggerServicesFramework before SwiftyJSON and the dependency on SwiftyJSON in HMLoggerServices causes this to fail.

The cartfile.resolved looks like this:

Dons-MBP:Project$ cat cartfile.resolved
github "Alamofire/Alamofire" "3.3.1"
github "CocoaLumberjack/CocoaLumberJack" "2.3.0"
git "git@gitserver.foobar.com:repositories/HMLoggerServicesFramework.git" "6ca53078005e7853f962f78e1ea90d3a59f4470b"
github "SwiftyJSON/SwiftyJSON" "2.3.3"

It tried the trick of editing cartfile.resolved, to this:

Dons-MBP:Project$ cat cartfile.resolved
github "SwiftyJSON/SwiftyJSON" "2.3.3"
github "Alamofire/Alamofire" "3.3.1"
github "CocoaLumberjack/CocoaLumberJack" "2.3.0"
git "git@gitserver.foobar.com:repositories/HMLoggerServicesFramework.git" "6ca53078005e7853f962f78e1ea90d3a59f4470b"

and then running the command carthage build --platform iOS but that made no difference, the build ordering stayed the same, and failed:

Dons-MBP:Project$ carthage build --platform iOS
*** xcodebuild output can be found in /var/folders/46/vq47kpz909jfv8j4vml8c63h0000gp/T/carthage-xcodebuild.p6ZV8p.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
*** Building scheme "CocoaLumberjackSwift-iOS" in Lumberjack.xcworkspace
*** Building scheme "CocoaLumberjack" in Lumberjack.xcworkspace
*** Building scheme "CocoaLumberjackSwift" in Lumberjack.xcworkspace
*** Building scheme "CocoaLumberjack-iOS" in Lumberjack.xcworkspace
*** Building scheme "HMLoggerServices" in HMLoggerServices.xcworkspace
** BUILD FAILED **

The following build commands failed:
CompileSwift normal arm64 /Users/dfclark/Dev/HoboHH/Project/Carthage/Checkouts/HMLoggerServicesFramework/HMLoggerServices/WebServiceManager.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
/Users/dfclark/Dev/HoboHH/Project/Carthage/Checkouts/HMLoggerServicesFramework/HMLoggerServices/WebServiceManager.swift:16:8: error: no such module 'SwiftyJSON'
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/dfclark/Dev/HoboHH/Project/Carthage/Checkouts/HMLoggerServicesFramework/HMLoggerServices.xcworkspace -scheme HMLoggerServices -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
CompileSwift normal arm64 /Users/dfclark/Dev/HoboHH/Project/Carthage/Checkouts/HMLoggerServicesFramework/HMLoggerServices/WebServiceManager.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
@mdiep

This comment has been minimized.

Member

mdiep commented May 22, 2016

What does the Cartfile for HMLoggerServicesFramework look like? Is it located in the root directory of that repository?

@dfclark

This comment has been minimized.

dfclark commented May 22, 2016

The Cartfile in the HMLoggerServices top-level folder (a peer of the Xcode project file) contains:
github "Alamofire/Alamofire" ~> 3.3
github "SwiftyJSON/SwiftyJSON" ~> 2.3

@mdiep

This comment has been minimized.

Member

mdiep commented May 24, 2016

Is 6ca53078005e7853f962f78e1ea90d3a59f4470b the most recent revision of HMLoggerServicesFramework?

@dfclark

This comment has been minimized.

dfclark commented May 24, 2016

Yes

@mdiep

This comment has been minimized.

Member

mdiep commented Jun 8, 2016

The Cartfile in the HMLoggerServices top-level folder (a peer of the Xcode project file) contains:

Is that the root directory of the repository?

What's the output of git show 6ca53078005e7853f962f78e1ea90d3a59f4470b:Cartfile <path-to-HMLoggerServices-repository>?

@ikesyo ikesyo added the question label Nov 16, 2016

@ikesyo

This comment has been minimized.

Member

ikesyo commented Nov 16, 2016

Closing this due to inactivity. Feel free to reopen if you have any updates on this.

@ikesyo ikesyo closed this Nov 16, 2016

@ajaykoppisetty

This comment has been minimized.

ajaykoppisetty commented Oct 23, 2017

Same error. Deleted carthage folder and retried again. No success :(

Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/user1/Documents/Bitbucket/operator-ios/project.xcodeproj -scheme core-operator -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/user1/Documents/Bitbucket/operator-ios)

** BUILD FAILED **

The following build commands failed:
CompileSwift normal arm64 /Users/user1/Documents/Bitbucket/core-operator-ios/project/Controllers/Inspections/InspectionsVC.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

Xcode build was successful. When tried to build with carthage these errors are showing up.

@mdiep

This comment has been minimized.

Member

mdiep commented Oct 26, 2017

Please open a new issue if you're looking for help.

@ikesyo

This comment has been minimized.

Member

ikesyo commented Oct 26, 2017

Looks like @ajaykoppisetty's issue was resolved: #2226.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment