-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FYI: SwiftGen 0.7.1 generated UIColor.Name type causes linker errors when WMO is enabled #56
Comments
Note: this issue is only present in the new
|
Ah, interesting, thanks for logging. |
FYI I tested your sample project in the radar and it still fails with Xcode 7.1.1 (7B1005). You might want to update your radar. |
Done. This issue is also present in Xcode 7.2 beta 3 (7C62) |
For reference: https://twitter.com/jckarter/status/668500028269326340 For the Colors I found another workaround (using a switch instead of a dictionary) I'll commit that soon, but for storyboard I'm not sure that'll work |
nice! |
I can't reproduce this issue in an app using SwiftGen by switching from the |
Ah, I have a run script in the example project that is running SwiftGen and changing the I get the same linker error now in Xcode 7.3 in the example project as long as I don't let SwiftGen 0.8 run to update that file. Using v0.8 and the default color template does not cause any issues. |
Updated to SwiftGen 0.7.1 today and started seeing build failures from our app's Release config (which has WMO enabled). Using 0.6 last week the source for the UIColor extension was different and didn't cause this issue.
I'm not expecting a fix as this certainly looks like a compiler issue, but thought I'd log the issue for others to find in case they run across it.
Here is an example project where these errors can be observed.
https://github.com/phatblat/SwiftGenWMO
This has been filed as rdar://23472326
The text was updated successfully, but these errors were encountered: