Closed hoangtuanfithou closed 6 years ago
I think we should wait for a GM
before updating anything. It's still a beta version.
Just in case, I was able to mitigate it by enforcing Swift optimization (-Osize) for RxCoreData target. If you use CocoaPods, you can get it by appending the following to your Podfile:
post_install do |installer|
# Enforce optimization for Xcode 10 beta.
installer.pods_project.targets.each do |target|
if target.name =~ /^RxCoreData$/
puts("Enforcing Swift optimization for RxCoreData/Xcode 10 beta")
target.build_configurations.each do |configuration|
configuration.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Osize'
end
end
end
end
Confirm that @griforye method works for me. Thanks so much :)). Now I can use Xcode 10 with dark theme. Can you explain more why it work :D
@grigorye @hoangtuanfithou Let's see what happens later with the code size optimization option. It's pretty new and was introduced in here in Swift 4.1. If necessary we could activate it in the next version.
@bobgodwinx Just in case, "-Osize" was just quick hack - I just noticed that the crash doesn't happen in Release builds and hence I tried to enable optimization. Probably it doesn't crash with other optimization options. Anyway, I completely agree that this is just a workaround and we should wait for GM. More or less it looks like a bug in (beta of) Swift compiler that hopefully would be fixed in the upcoming betas (beta 2 still crashes).
I'm not completely sure about that, but it looks like it was fixed in Xcode 10 beta 3.
confirm that Xcode 10 beta 3 fixed it.
Thanks for your help, guys ! @grigorye @bobgodwinx
it run nicely on iOS 11. then check on iOS 12 -> crash. (mostly when fetch data) more information will be updated