我正在按照使用 Carthage 安装 SwiftyDropbox 的步骤进行操作。我的购物车文件是:
# SwiftyDropbox
github "https://github.com/dropbox/SwiftyDropbox" ~> 5.1.0
当我运行“carthage update --platform iOS”时,我得到:
third_party (master) $ carthage update --platform iOS
*** Fetching SwiftyDropbox
*** Fetching Alamofire
*** Checking out Alamofire at "4.9.1"
*** Checking out SwiftyDropbox at "5.1.0"
*** xcodebuild output can be found in /var/folders/gk/1sxbjcg969d6k1lc945cvz2m0000gn/T/carthage-xcodebuild.jD6xnh.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
Failed to write to /.../third_party/Carthage/Build/iOS/Alamofire.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Alamofire.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///.../third_party/Carthage/Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire%20iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework, NSFilePath=/.../third_party/Carthage/Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework, NSUnderlyingError=0x7f92c9407d60 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
我看到路径有所不同,其中 UserInfo 路径有一个转义字符:Alamofire%20iOS 而 NSFilePath 没有(Alamofire iOS)。我正在使用 macOS 10.15.2、Xcode 11.3、迦太基 0.34.0。为什么有转义字符,我该如何解决?