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
Mutiple crash due to swift optimization setting. #92
Comments
Hi @buguibu, I just tried this with XCode 9.3 on the latest release and am not able to reproduce. Can you attach a stack trace? Thanks. |
Hi @mchoe this is strange, so i've just reproduce it again even cleaning derived data and reseting simulator, so more details:
Hope it helps! |
I have the same problem, but @buguibu I believe that you meant
Also, I've found that compilation mode needs to be set to Whole Module |
I found a way of creating a temporary fix that you can commit to the project # Temporary fix for SwiftSVG Crash
post_install do |installer|
swiftSVG = installer.pods_project.targets.find { |target| target.name == 'SwiftSVG' }
swiftSVG.build_configurations.each do |config|
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = "-Onone"
end
end |
Just wanted to say I'm running into the exact same issue. It's an important one because it's a bug that only shows up in release builds. @Robuske solution worked for me. |
FYI, here's a very simple macOS project which illustrates the crash. Oddly it doesn't crash all the time and not always in the same place, but it does crash most of the time |
+1, just found this issue today when distributing a build to stakeholders |
+1. Found that turning off swift optimizations with @Robuske addition to the project's Podfile worked. |
Hi! We have the same problem with our project. Maybe this crashlog can help you: The app with SwiftSVG works fine when we launch it on our devices with xCode. But when we make a build and distribute it with TestFlight we have this error (from Crahslytics). #0Crashed: com.straussmade.swiftsvgEXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000018 Raw Text0 | SwiftSVG | Identifiable.swift line 74_T08SwiftSVG12IdentifiablePA2A19SVGContainerElementRzrlE8identifyySS10identifier_tFAA8SVGGroupC_Tg5 Line number 74 in Identifiable.swift is self.containerLayer.name = identifier |
This doesn't use to happen me again. |
Just download the recent master release, run on whatever device with release scheme or enable "Optimize for Speed" optimization level swift setting, and you will get different crashes based on which demo you try.
The text was updated successfully, but these errors were encountered: