我的机器上的swift版本为5.0.1。该项目的快速版本是4.0。
我的xcode版本是10.4
我跑步carthage bootstrap --platform ios
在根目录中。
*** Checking out CocoaAsyncSocket at "7.6.3"
*** Checking out papertraillumberjack at "0.1.8"
*** Checking out AFNetworking at "3.2.1"
*** Checking out fmdb at "2.6"
*** Checking out objective-c at "v4.8.1"
*** Checking out CocoaLumberjack at "3.4.2"
*** xcodebuild output can be found in /var/folders/7m/bb7zj_yj0_zfgjvv3lgntr040000gn/T/carthage-xcodebuild.wjVbNA.log
*** Downloading CocoaAsyncSocket.framework binary at "Version 7.6.3"
*** Building scheme "AFNetworking iOS" in AFNetworking.xcworkspace
*** Building scheme "CocoaLumberjack-iOS" in Lumberjack.xcworkspace
*** Building scheme "CocoaLumberjackSwift-iOS" in Lumberjack.xcworkspace
*** Building scheme "FMDB iOS" in fmdb.xcodeproj
*** Building scheme "Framework (iOS)" in PubNub.xcworkspace
Build Failed
Task failed with exit code 1:
/usr/bin/xcrun dsymutil /Users/benjaminlee/repositories/glass_planner/glass-planner/Carthage/Build/iOS/PubNub.framework/PubNub -o /Users/benjaminlee/repositories/glass_planner/glass-planner/Carthage/Build/iOS/PubNub.framework.dSYM
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/7m/bb7zj_yj0_zfgjvv3lgntr040000gn/T/carthage-xcodebuild.wjVbNA.log这似乎表明,在PubNub中构建方案“框架()iOS”时,它可能失败了。
我转到日志的底部,下面是最后几行:
/usr/bin/codesign --force --sign - --timestamp=none /Users/benjaminlee/Library/Caches/org.carthage.CarthageKit/DerivedData/10.3_10G8/objective-c/v4.8.1/Build/Products/Release-iphonesimulator/PubNub.framework
** BUILD SUCCEEDED **发布于 2019-08-01 09:49:10
解决了这个问题:
https://medium.com/wolox-driving-innovation/how-to-carthage-efficiently-4913b8378898
carthage update --no-use-binaries --platform iOS
成功了。现在成功构建。
https://stackoverflow.com/questions/57275216
复制相似问题