Xlpagertabstrip: Segmentation fault: 11 after upgrade to XCode 9.3

Created on 5 Apr 2018  路  3Comments  路  Source: xmartlabs/XLPagerTabStrip

! 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

Most helpful comment

Can build successfully once I remove the target 'XLPagerTabStrip' manually from TwitterPagerTabStripViewController.swift

On device this is not necessary.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ta7an picture Ta7an  路  4Comments

dkononenko picture dkononenko  路  4Comments

dowhilenet picture dowhilenet  路  4Comments

luminkhant picture luminkhant  路  4Comments

emrecanozturk picture emrecanozturk  路  5Comments