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:
pod initpod Apollo to the Podfilepod installApollo (0.9.5)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
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?
Pointing to the master branch certainly works, but for me at least, it results in insanely slow compile times (from normally 15 seconds 馃憠 8-10 minutes). Now, I of course cannot say for sure that this is caused by Apollo specifically, but this is literally the only change I've made to get my project to compile in Xcode 10.2.
Yes, and pointing at master is never fun in the long run. It would really be great to have an official release that works with Swift 5!
We're waiting for Travis to update to Xcode 10.2, so we can land #475.
... The intricate dependency graph of the World Wide Web 馃槄
What's your ETA on this? I need this to work because I have a dependency that is failing. Thanks!
If you're in a really tight spot, @GiantBlue76, you can either point at master or do a temporary local fix - just change the type of the variable that it's complaining about in the 0.9.5 code to match what the compiler expects. I did so, and everything worked just fine.
FIY Travis does support Xcode 10.2, I'm using it in graphql-community/ApolloAlamofire#3 test builds. I've just added created draft #491 in Apollo repository, but not sure how to start Travis build for that PR, can anyone help please?
@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.
Time to start using CircleCI perhaps? Travis has historically been quite slow in their support of new macOS/Xcode versions. CircleCI as of right now already supports Xcode 10.2!
@vandadnp Nope, CircleCI is still on beta 3 of Xcode 10.2. I'm waiting on them to get the GM too.
@commanda you're right. They didn't explicitly state that it's a beta but they did provide the build number of 10P99q which is in fact beta!
I contacted Travis' support and this is their reply:
Thank you for getting in touch!
We're hopefully aiming to have the GA version of Xcode 10.2 available by the end of the week. I'd recommend keeping an eye on https://blog.travis-ci.com/ as we'll most likely make an announcement when it's available.
Hopefully, this helps. Don't hesitate to get in touch if you have any questions or concerns. We'd be happy to help.
Sincerely,
Carla
馃
If you're in a really tight spot, @GiantBlue76, you can either point at master or do a temporary local fix - just change the type of the variable that it's complaining about in the 0.9.5 code to match what the compiler expects. I did so, and everything worked just fine.
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 :D. Glad that it will be officially released soon. Thanks!
Is there any way I can be notified on an update for this release? I got Apollo as an dependent in my podspec and it fails when I do pod repo push
GitHub supports watching only for releases:

@martijnwalraven Update is out! https://blog.travis-ci.com/2019-03-29-xcode-10-2-gm-is-now-available
Since the update for travis is out, do we have any news for the new pod version?
@victormihaita I merged #475, but I wanted to get #466 in before publishing a new release.
This is great news. Is the release going to be out today?
This should be fixed in 0.10.0.
when the release will go out for XCode 10.2 support ?
@niteshtak I just released it!
@martijnwalraven I noticed the build time increased significantly after the 0.10.0 release :(
Exactly as I noted with the pre-release https://github.com/apollographql/apollo-ios/issues/485#issuecomment-477130636
@niteshtak @philipengberg I have no idea what could be causing this, so all insight is welcome!
Me neither, and I don't know if Xcode 10.2 itself has equal fault in it. I've reverted to Xcode 10.1, since I won't have time to troubleshoot in a foreseeable future 馃槥
Me neither, and I don't know if Xcode 10.2 itself has equal fault in it. I've reverted to Xcode 10.1, since I won't have time to troubleshoot in a foreseeable future 馃槥
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!
I haved the build time issue too with Xcode 10.2 but It's fixed for me with Xcode 10.2.1, in debug.
When I try to archive, It's still too slow 馃槥
Most helpful comment
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?