apollo-ios: Compiler error with Xcode 10.2 (10E125) with Apollo cocoapod 0.9.5
Compiler error:
/Users/amanda/Playpen/Fresh/Pods/Apollo/Sources/Apollo/Collections.swift:65:42: Cannot assign value of type 'EnumeratedSequence<[Key]>.Iterator' to type 'EnumeratedSequence<IndexingIterator<Array<Key>>>.Iterator'
Repro steps:
- Update to Xcode 10.2 (10E125)
- Create a fresh Xcode project
pod init
- Add
pod Apollo
to the Podfile pod install
- See that cocoapods installed
Apollo (0.9.5)
- Open the .xcworkspace
- Attempt to compile the project
- See the compiler error
I tried setting the Swift language version to 4, 4.2, or 5, and also tried setting the same on the Apollo project, but I still got the compiler error.
Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Fresh' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Fresh
pod 'Apollo'
end
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 20
- Comments: 29 (7 by maintainers)
When I point my podfile at the latest from master at github instead of using the most recent release, the compiler error is fixed.
pod 'Apollo', :git => 'https://github.com/apollographql/apollo-ios.git'
I think this means a new release is due?This is great news. Is the release going to be out today?
@niteshtak I just released it!
We’re waiting for Travis to update to Xcode 10.2, so we can land #475.
@victormihaita I merged #475, but I wanted to get #466 in before publishing a new release.
@martijnwalraven Update is out! https://blog.travis-ci.com/2019-03-29-xcode-10-2-gm-is-now-available
GitHub supports watching only for releases:
Thanks for all the hard work you put in it @martijnwalraven and others. Likewise @philipengberg unfortunately I am not in a position to help troubleshoot at the moment. I will also roll back to Xcode 10.1. Keep up the good work though!
Yep, but it doesn’t help me for transient dependencies. In other words, I have a pod that uses Apollo, but then I have an application that depends on that pod. So that application just uses the podspec to manage the dependency, therefore it pulls the latest version. Everytime I do a pod update, I need to change the code myself. It’s also a bit of a pain when attempting to document how to set up the project for the rest of our co-workers 😄. Glad that it will be officially released soon. Thanks!
@MaxDesiatov I don’t think that is Xcode 10.2 final yet, see https://travis-ci.community/t/update-to-xcode-10-2-release/2809/2. As far as I know, that’s why #475 is still failing.