tristanhimmelman/AlamofireObjectMapper

Unable to build OS X target w. Carthage

Closed this issue ยท 7 comments

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?

I'm running into the same issue

Same here.

Same.

This still occurs when targeting iOS.

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.

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'

@ynnckcmprnl These warnings should be resolved in my next release