naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

libtool argument error #3

Closed sbeckeriv closed 9 years ago

sbeckeriv commented 9 years ago

Sorry I am very new to swift/xcode. I installed Timepiece via cocoapods. I went to build without changing any code or anything in xcode and I get this error.

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker

Its my first app. I am building a swift iphone app if that matters. Is there some tool a new system would need to configure or install? Is this a cocoapod issue? I cant seem to find any configs or code on my system about it. I found a few different issues about libtool in cocoapads but I dont think they were related.

Thanks for any help!

System details and full error: OSX 10.10.1 xcode Version 6.1.1 (6A2008a)

Libtool /Users/becker/Library/Developer/Xcode/DerivedData/HungerZone-gmzvspvrbhkznafqlbjwnrtnpobg/Build/Products/Debug-iphonesimulator/libPods-Timepiece.a normal x86_64
    cd /Users/becker/trash/HungerZone/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/becker/Library/Developer/Xcode/DerivedData/HungerZone-gmzvspvrbhkznafqlbjwnrtnpobg/Build/Products/Debug-iphonesimulator -filelist /Users/becker/Library/Developer/Xcode/DerivedData/HungerZone-gmzvspvrbhkznafqlbjwnrtnpobg/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-Timepiece.build/Objects-normal/x86_64/Pods-Timepiece.LinkFileList -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/becker/Library/Developer/Xcode/DerivedData/HungerZone-gmzvspvrbhkznafqlbjwnrtnpobg/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-Timepiece.build/Objects-normal/x86_64/Pods_Timepiece.swiftmodule -framework Foundation -o /Users/becker/Library/Developer/Xcode/DerivedData/HungerZone-gmzvspvrbhkznafqlbjwnrtnpobg/Build/Products/Debug-iphonesimulator/libPods-Timepiece.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
naoty commented 9 years ago

@sbeckeriv It seems that this is caused by missing some tools, not by CocoaPods and Timepiece. You should make sure that something is missing or the versions of tools is wrong.

naoty commented 9 years ago

@sbeckeriv I see. You should make sure that the version of CocoaPods is 0.36.0.*, which supports Swift.

sbeckeriv commented 9 years ago

thanks. I upgraded cocoapods and now i get more errors. I think i will just copy and past the code until cocoapods are working.

Is there anyway to force a version of cocoapods from your podfile?

naoty commented 9 years ago

You can do with Gemfile, not Podfile.