
I need Eureka working because I have a very critical bug that needs to be fixed and uploaded to the App Store as an update. I also did not know that updating to Xcode 9 would break anything because I am using the Xcode 9 branch.
I've been struggling for two days with the xcode9 upgrade. My suggestion, if you are able, is to revert to xcode 8.3.3 using xcode-select to fix your bug. Then, keep a separate copy of your code forked for xcode 8 while you get everything working /w xcode 9
Some gotchas:
rm -rf ~/Library/Caches/org.carthage.CarthageKit/DerivedData/. CocoaPods may have something similar@eliburke I tried to downgrade back to 8.3.3 but I can't so I'm really depending on the repo owner to fix it quickly so I can get this update out. But thank you for the help.
Duplicate Issue of #1220
Yes, I know but that issue does not have a solution. Hence why I have made a duplicate issue.
How does that seem like a valid reason to you? Should you flood the issue section with duplicate threads until you get your answer by that logic?
You could've at least bothered to participate in it or voice your opinion.
@mattfrias Joined github on 27 September 2016 and @Laptopmini on 4 Mai 2014, who is ignorant github users 🤦♂️ .
I didn't use any of the Xcode 9 Beta or GM. Was on Xcode 8.3.3 with Swift 3.2 until this morning. Got official Xcode 9 release from App Store, and subsequent Eureka build errors. Here's how I got Eureka to compile and seems to run fine for me this morning.
Podfile:
pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'feature/Xcode9-Swift4'
Side note:
I noticed after I did another pod update, that the Eureka Swift Language Version reverts back to 3.2 and you'll get build errors again. Might be some other magic I'm missing in the Podfile? However, a quick tweak to Swift 4.0 and things build again.
@davros1970 steps worked for me.
try the following in your podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "Eureka"
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
@barteljan Thank you that worked. 😄👍
Finally, someone actually helpful.
@barteljan Not working for me

@tuantmdev Which eureka branch are you using ?
@barteljan Thanks, it works for me now after using master branch
Most helpful comment
I didn't use any of the Xcode 9 Beta or GM. Was on Xcode 8.3.3 with Swift 3.2 until this morning. Got official Xcode 9 release from App Store, and subsequent Eureka build errors. Here's how I got Eureka to compile and seems to run fine for me this morning.
Podfile:
pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'feature/Xcode9-Swift4'
Side note:
I noticed after I did another pod update, that the Eureka Swift Language Version reverts back to 3.2 and you'll get build errors again. Might be some other magic I'm missing in the Podfile? However, a quick tweak to Swift 4.0 and things build again.