Comments (9)
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).
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.
I have the same problem
from swifticons.
same for me
from swifticons.
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.
@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:
from swifticons.
@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.
@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.
any update for production release with xCode 10.2 ?
from swifticons.
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)
- Icons showing as "?"
- Add padding or Margin icon HOT 1
- Why is text centered when setting icon to UILabel?
- Terminal Warnings for UIButton
- Any planned support for adding custom fonts?
- Why icon position on top for UILabel with postfix text.?
- setting barbuttonItems cuts off icon
- CocoaPods could not find compatible versions for pod "SwiftIcons": on Xcode 10 HOT 8
- Update for Swift 4.2 HOT 5
- Add Interface Builder support
- _
- Attempt to include SwiftIcons as a static library yields a crash in loadFontIfNeeded() HOT 3
- Rounded Corner HOT 2
- Move icons to different pods HOT 3
- Different constants not resizing for iPad
- Rounded border corners for UIButton
- How does this project work?
- Update Podspec HOT 3
- Bold font not staying
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swifticons.