Code Monkey home page Code Monkey logo

Comments (7)

grigorye avatar grigorye commented on July 17, 2024 2

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

from rxcoredata.

bobgodwinx avatar bobgodwinx commented on July 17, 2024 1

I think we should wait for a GM before updating anything. It's still a beta version.

from rxcoredata.

grigorye avatar grigorye commented on July 17, 2024 1

@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).

from rxcoredata.

hoangtuanfithou avatar hoangtuanfithou commented on July 17, 2024

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

from rxcoredata.

bobgodwinx avatar bobgodwinx commented on July 17, 2024

@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.

from rxcoredata.

grigorye avatar grigorye commented on July 17, 2024

I'm not completely sure about that, but it looks like it was fixed in Xcode 10 beta 3.

from rxcoredata.

hoangtuanfithou avatar hoangtuanfithou commented on July 17, 2024

confirm that Xcode 10 beta 3 fixed it.

Thanks for your help, guys ! @grigorye @bobgodwinx
screen shot 2018-07-11 at 7 54 45 pm

from rxcoredata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.