Code Monkey home page Code Monkey logo

Comments (9)

vitalii-tym avatar vitalii-tym commented on September 28, 2024

I have the same problem while building production. Haven't compared it, but my subjective feeling is that building time wasn't that big before updating Xcode (and switching to Swift 5).

Screenshot 2019-06-06 14 25 18

Xcode Version 10.2.1 (10E1001)
SwiftIcons from my fork, which is 2.3.2 with a few fixes (https://github.com/vitalii-tym/SwiftIcons)
The whole project uses Swift 5

from swifticons.

davidho720 avatar davidho720 commented on September 28, 2024

I have the same problem

from swifticons.

Mau04 avatar Mau04 commented on September 28, 2024

same for me

from swifticons.

dionc avatar dionc commented on September 28, 2024

In Xcode 10.2 and higher the i386 compiler is very slow at processing unicode string literals (eg "\u{1234}" and this is why it takes so long to compile SwiftIcons.swift. I found that I could fix it by removing i386 from the valid architectures in my project.

from swifticons.

vitalii-tym avatar vitalii-tym commented on September 28, 2024

@dionc , good point! But in my project there is no i386 anywhere, as well as the library itself doesn't list i386 in its Valid Architectures. The only place where I can find i386 mentioned is in the Pods project, which is not used - the resolved values are taken from the lib's settings:

Screenshot 2019-06-19 12 52 57

from swifticons.

hammadzz avatar hammadzz commented on September 28, 2024

@vitalii-tym your fork doesn't seem to help. Maybe it is slightly faster. But I am still experiencing and extremely slow build purely because of SwiftIcons. The real problem is sadly compiler or configuration for it in XCode 10.

from swifticons.

vitalii-tym avatar vitalii-tym commented on September 28, 2024

@hammadzz, I never said my fork worked better. It is as slow as the main repo.
However, the problem is only applicable to my Release configuration (which has optimization turned on). If you have troubles in your Debug config, which is a real pain I believe - make sure you have optimization turned off for it (Optimization Level: "-Onone")

from swifticons.

MinaFSedrak avatar MinaFSedrak commented on September 28, 2024

any update for production release with xCode 10.2 ?

from swifticons.

vitalii-tym avatar vitalii-tym commented on September 28, 2024

a quick workaround I currently use is to unlock the pod and remove all icons from the sets I don't use at all, leaving them almost empty. Like this:

public enum WeatherType: Int {
    public static var count: Int {
        return weatherIcons.count
    }

    public var text: String? {
        return weatherIcons[rawValue]
    }

    case alien
}

private let weatherIcons = ["\u{f075}"]

This speeds up build time dramatically.
Haven't had time to fix it properly in the lib itself yet.

from swifticons.

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.