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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build OS X target w. Carthage #17

Closed
carloe opened this issue Jul 31, 2015 · 7 comments
Closed

Unable to build OS X target w. Carthage #17

carloe opened this issue Jul 31, 2015 · 7 comments

Comments

@carloe
Copy link

carloe commented Jul 31, 2015

I am just starting to transition from pods to carthage, so it is highly possible I am doing something wrong 馃槃

Running carthage update fails with the following error while building the os x target:

The following build commands failed:
    CompileSwift normal x86_64 /Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/Alamofire/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/ObjectMapper/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/Alamofire/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/ObjectMapper/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/Alamofire/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/ObjectMapper/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/Alamofire/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/Carthage/Checkouts/ObjectMapper/build/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/dev/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
/Users/dev/Documents/Projects/swift/PGW-OSX/Carthage/Checkouts/AlamofireObjectMapper/AlamofireObjectMapperTests/AlamofireObjectMapperTests.swift:11:8: error: no such module 'ObjectMapper'
A shell task failed with exit code 65

My Carthage file is bare-bones:

github "tristanhimmelman/AlamofireObjectMapper" ~> 0.7

I am getting the same no such module 'ObjectMapper' error in the IDE when I clone the AlamofireObjectMapper repo, run carthage update, open the workspace and then set the target to AlamofireObjectMapper OS X. Hitting build makes the error disappear, and I am able to run the tests afterwards.

I am running XCode 6.4 (6E35b)

Any ideas?

@MattesGroeger
Copy link

I'm running into the same issue

@clarisli
Copy link

Same here.

@rhunt222
Copy link

Same.

@ynnckcmprnl
Copy link

This still occurs when targeting iOS.

@tristanhimmelman
Copy link
Owner

I'm not sure what is causing this issue... however, it is not occurring on the swift-2.0 branch which will soon be merged into master.

@ynnckcmprnl
Copy link

I tried using the 0.8 version in combination with Xcode 7 GM, but am still running into related issues.

github "tristanhimmelman/AlamofireObjectMapper" ~> 0.8
*** Building scheme "AlamofireObjectMapper iOS" in AlamofireObjectMapper.xcworkspace
ld: warning: directory not found for option '-F/Users/Yannick/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/Yannick/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/Yannick/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'
ld: warning: directory not found for option '-F/Users/Yannick/Library/Developer/Xcode/DerivedData/AlamofireObjectMapper-dauotuqewdtvbqbcptlcgtwkqndr/Build/Products/Debug-iphoneos'

@tristanhimmelman
Copy link
Owner

@ynnckcmprnl These warnings should be resolved in my next release

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

6 participants