ios - Xcode compiler keeps crashing on a class that has a dictionary with a lot of elements -


compiler keeps crashing "segmentation fault 11" on class has dictionary on 40 thousand value pairs defined. if reduce amount of lines works. there no duplicate keys.

i understand it's xcode bug, perhaps there known workaround?

class rates {     let array:[int:double] = [         99502:0.1730,         99503:0.1730,         99504:0.1730, // 42000 lines, defining other value pairs here         83414:0.0837     ]      subscript(index: int) -> double? {         return self.array[index]     } } 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -