Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

App failed to launch in time #153

Closed evfemist closed 4 years ago

evfemist commented 10 years ago

I am using version 2.1.4 and I found that app could not be loaded on iPhone 4 with iOS 7 with "App failed to launch in time reason". Here is Time Profiler screenshot with the "button in storyboard" and "button scss" sceenshots. Unfortunately I didn't found exactly steps to reproduce. Would appreciate any help.

screenshot 2014-10-13 16 22 51 screenshot 2014-10-13 16 36 46 screenshot 2014-10-13 16 38 41

evfemist commented 10 years ago

Update: This happens on iOS7, even in Simulator

pcolton commented 10 years ago

If you remove the font styling, does it work? (i.e. is it font related?)

evfemist commented 10 years ago

nope, but I have tried oldest version in cocoapods - 2.1 and same issue here, but earlier same code works. So this issue related to Xcode or Yosemite

evfemist commented 10 years ago

Have spend some time again. Here what I found: Here is the test class which generates app freeze and kill. But if I remove first two lines or last two lines app works fine.

.test {
    background-color: red;
    border-radius: 3;

    font-family: $button-text-font;
    font-size: $button-text-size;
}

In the storyboard I have two viewControllers, first has 3 buttons, second has 2 buttons. All buttons has styleClass='test'. By tap on button in first controller - second controller appears modally. Issue reproduced if I show/hide controller several times. Here is the video: https://www.dropbox.com/s/8jexoz1oeq4kscx/FreezeIssue.mov?dl=0

JoeMatt commented 10 years ago

I have a linke similiar to *{ font-family: $font-family-base; }

This started locking up startup with iOS 8.1 only. I'm building with XCode 6.0.1 on 10.9.4 I have other font-family entries such as

view {
    font-family: $font-family-base;
}

This isn't locking up our app.

pcolton commented 10 years ago

@JoeMatt It's not appropriate to use * { } with freestyle, that tries to style every single view type the app creates, even private views. It is never recommended to use this approach. Style your individual views by id or class.

On Mon, Oct 20, 2014 at 2:27 PM, Joe Mattiello notifications@github.com wrote:

I have a linke similiar to

  • { font-family: $font-family-base; }

This started locking up startup with iOS 8.1 only. I'm building with XCode 6.0.1 on 10.9.4 I have other font-family entries such as

view { font-family: $font-family-base; }

This isn't locking up our app.

— Reply to this email directly or view it on GitHub https://github.com/Pixate/pixate-freestyle-ios/issues/153#issuecomment-59842702 .

pcolton commented 10 years ago

@evfemist if you hit pause in the debugger when it locks up, what does it show?

evfemist commented 10 years ago

@pcolton here is the debug video https://www.dropbox.com/s/a1s19b3kpehpbi4/PixateDebug.mov?dl=0 Seems like problem in +[UIView(PXStyling) updateStyles:recursively:] *video looks better if you save them to disk