在Xcode升级到10.1之后,在构建过程中是否还有其他人出错?我整夜都在尝试什么地方出了问题,看来ImageRow与最新的Xcode不兼容?
Swift 4.2
Xcode 10.1
尤里卡4.3.0
ImageRow 3.1.0
Pod文件:
platform :ios, '9.0'
target 'My cashflow' do
use_frameworks!
pod 'ImageRow', '~> 3.0'
end
编译后出现错误:
错误:
Cannot subscript a value of type '[String : Any]' with an index of type 'UIImagePickerController.InfoKey'
'UIImagePickerControllerSourceType' has been renamed to 'UIImagePickerController.SourceType'
Missing argument label 'rawValue:' in call
所有已安装和更新的Pod(Podfile.lock):
PODS:
- Eureka (4.3.0)
- ImageRow (3.1.0):
- Eureka (~> 4.0)
DEPENDENCIES:
- ImageRow (~> 3.0)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Eureka
- ImageRow
SPEC CHECKSUMS:
Eureka: 6d711cb30ca333b4bc893110285a722ae3840114
ImageRow: 1ea483078bfa3d880a7fc76fdfcddfd5f29a9e6b
PODFILE CHECKSUM: 0bae1aabb456725a8d30797929aa85ea96da832c
COCOAPODS: 1.5.3
答案 0 :(得分:0)
搜索ImageRow的已知问题,即可轻松找到答案:https://github.com/EurekaCommunity/ImageRow/issues/51
对于Swift 4.2,请使用master分支。还没有发布
因此,在您的Podfile中,使用:
pod 'ImageRow', :git => 'https://github.com/EurekaCommunity/ImageRow', :branch => 'master'
pod update
之后,您的Podfile.lock将更新后的依赖项显示为:
PODS:
- Eureka (4.3.0)
- ImageRow (3.1.0):
- Eureka (~> 4.0)
DEPENDENCIES:
- ImageRow (from `https://github.com/EurekaCommunity/ImageRow`, branch `master`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Eureka
EXTERNAL SOURCES:
ImageRow:
:branch: master
:git: https://github.com/EurekaCommunity/ImageRow
CHECKOUT OPTIONS:
ImageRow:
:commit: 6e75b9408bd3393daea467afa73c07cc021a87ae
:git: https://github.com/EurekaCommunity/ImageRow
SPEC CHECKSUMS:
Eureka: 6d711cb30ca333b4bc893110285a722ae3840114
ImageRow: 1ea483078bfa3d880a7fc76fdfcddfd5f29a9e6b
PODFILE CHECKSUM: 0e94ba74cfd5e7ee8120ee7410f3045c8e2cbcfc
COCOAPODS: 1.5.3
它将在Xcode 10+中很好地构建。