! Happens only on simulator !
XLPagerTabStrip-Version: 8.0.1
XCode 9.3
iOS 11.3
MacOS High Sierra (Version 10.13.4)
cocoapods: 1.4.0 + 1.5.0
Command failed due to signal: Segmentation fault: 11
While emitting IR SIL function "@_T015XLPagerTabStrip012TwitterPagerbC14ViewControllerC12observeValueySSSg10forKeyPath_ypSg2ofs10DictionaryVySC05NSKeyi6ChangeK0VypGSg6changeSvSg7contexttF".
for 'observeValue(forKeyPath:of:change:context:)' at /Users/randy_kittinger/Documents/Projekte/joyclub-ios/Pods/XLPagerTabStrip/Sources/TwitterPagerTabStripViewController.swift:113:19
Can build successfully once I remove the target 'XLPagerTabStrip' manually from TwitterPagerTabStripViewController.swift
On device this is not necessary.
For me it's only a problem on iphone 5 simulator. Wonder if it has anything to do with 32 vs 64 bit architecture.
The error is caused in TwitterPagerTabStripViewController.swift lines 116, 117
let oldRect = (change![NSKeyValueChangeKey.oldKey]! as AnyObject).cgRectValue
let newRect = (change![NSKeyValueChangeKey.oldKey]! as AnyObject).cgRectValue
specifically .cgRectValue is causing the error.
But as you can see this code is not doing much because both variables are assigned the old value so the next line:
if (oldRect?.equalTo(newRect!))! {
is always being true.
Most helpful comment
Can build successfully once I remove the target 'XLPagerTabStrip' manually from TwitterPagerTabStripViewController.swift
On device this is not necessary.