J'utilise Xcode 8.1 sur macOS Sierra. La cible de déploiement de mon application est définie sur 10.8, elle utilise Core Plot 2.2, qui devrait être compatible avec 10.8. L'application fonctionne sur ma machine de développement, mais quand je la démarre sur OS X 10.8.5 (machine virtuelle VMware Fusion), elle plante à l'ouverture de la fenêtre principale qui contient un CPTGraph
.Core Plot 2.2 se bloque sous OS X 10.8 avec l'exception "Unrecognized Selector"
Trace de la pile:
OS Version: Mac OS X 10.8.5 (12F2560)
Report Version: 10
Interval Since Last Report: 227946 sec
Crashes Since Last Report: 8
Per-App Interval Since Last Report: 87 sec
Per-App Crashes Since Last Report: 3
Anonymous UUID: 25357976-7739-B0C4-594A-D7FC51D4A1F3
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString boundingRectWithSize:options:attributes:context:]: unrecognized selector sent to instance 0x1012ab910'
abort() called
terminate called throwing an exception
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff81e7fb06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff856073f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff81f1640a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3 CoreFoundation 0x00007fff81e6e02e ___forwarding___ + 414
4 CoreFoundation 0x00007fff81eb3dad __forwarding_prep_1___ + 237
5 CorePlot 0x000000010139d96e -[NSString(CPTTextStyleExtensions) sizeWithTextStyle:] + 93
6 CorePlot 0x00000001013858e9 -[CPTTextLayer sizeThatFits] + 198
7 CorePlot 0x00000001013859b2 -[CPTTextLayer sizeToFit] + 93
8 CorePlot 0x0000000101384df0 -[CPTTextLayer initWithText:style:] + 295
9 CorePlot 0x000000010134ee14 -[CPTGraph setTitle:] + 448
10 RehaSport Desktop 0x0000000101266dcd RehaSport Desktop + 331213
Il est évident que boundingRectWithSize:options:attributes:context:
est appelé, mais cela est uniquement disponible sur macOS 10.11 et plus récent.
Des idées?