我正在尝试使用Travis运行我的项目,但由于Alamofire的一个问题,我无法编译。我不清楚为什么它不能工作...我使用的是alamofire 4.8版本,它应该支持Xcode 11和Swift 5.1,没有任何问题(另外,我可以使用Xcode 11.2在本地编译和运行应用程序,唯一的问题是尝试使用travis编译它)
这是我在Travis上看到的错误消息
module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler: /Users/travis/build/MyUser/app-ios/app-ios/Carthage/Build/iOS/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule这是我当前的配置:
osx_image: xcode11
language: swift
branches:
only:
- master
script: xcodebuild test -workspace apps.xcworkspace -scheme Travis -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' | xcpretty && exit ${PIPESTATUS[0]}我也尝试过使用Xcode11.2和ios 13.2的模拟器
发布于 2019-11-20 01:59:55
你需要使用像carthage update --no-use-binaries --platform iOS这样的东西重新编译你的迦太基依赖。
https://stackoverflow.com/questions/58937043
复制相似问题