我正在尝试使用OAuthSwift Cocoapod构建一个在swift中开发的xcode项目。我收到一个错误,编译器正在创建一个静态库。错误发布在下面..
Libtool /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator/libPods-OAuthSwift.a normal x86_64
cd "/Users/Josh/Desktop/MOB 01/whistle/whistle/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/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator -filelist /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-OAuthSwift.build/Objects-normal/x86_64/Pods-OAuthSwift.LinkFileList -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-`OAuthSwift`.build/Objects-normal/x86_64/Pods_OAuthSwift.swiftmodule -framework Foundation -o /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator/libPods-OAuthSwift.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]
任何建议??
更新:下面的Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'LayerKit'
pod 'SwiftyJSON'
pod 'OAuthSwift'