Xcode 10.1 ImageRow问题
Xcode 10.1 ImageRow issue
在 Xcode 升级到 10.1 后,是否还有其他人在构建过程中遇到错误?我日以继夜地尝试出了什么问题,似乎 ImageRow 与最新的 Xcode?
不兼容
Swift 4.2
Xcode10.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
所有 pods 已安装和更新 (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
搜索ImageRow已知问题,轻松找到答案:https://github.com/EurekaCommunity/ImageRow/issues/51
For Swift 4.2 use the master branch. There is no release for that yet
因此,在您的 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+ 时正常构建。
在 Xcode 升级到 10.1 后,是否还有其他人在构建过程中遇到错误?我日以继夜地尝试出了什么问题,似乎 ImageRow 与最新的 Xcode?
不兼容Swift 4.2
Xcode10.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
所有 pods 已安装和更新 (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
搜索ImageRow已知问题,轻松找到答案:https://github.com/EurekaCommunity/ImageRow/issues/51
For Swift 4.2 use the master branch. There is no release for that yet
因此,在您的 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+ 时正常构建。