rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
422 stars 66 forks source link

0.18.x makes app crash in iOS5.0/5.1 #32

Closed n-studio closed 11 years ago

n-studio commented 11 years ago

App crashes at startup and displays this message:

dyld: Symbol not found: _NSBackgroundColorAttributeName
  Referenced from: /Users/me/Library/Application Support/iPhone Simulator/5.1/Applications/E7B7E873-43E7-46A2-81F9-E540AF42EAC1/MyApp.app/MyApp
  Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit
n-studio commented 11 years ago

I'm not sure if SugarCube is really the source of the crash, I close the issue until I'm 100% it comes from Sugarcube.

n-studio commented 11 years ago

Well, everything is working now, all I did was switching between 0.14.0 and 0.18.3, and magically everything worked again. This issue occurred on another project, but this time the trick didn't work. I'm stuck with 0.16.9...

colinta commented 11 years ago

Can you try and find the latest version that works? I don't have much to go on...

Also, what frameworks are you using?

On Feb 17, 2013, at 10:27 AM, n-studio notifications@github.com wrote:

Well, everything is working now, all I did was switching between 0.14.0 and 0.18.3, and magically everything worked again. This issue occurred on another project, but this time the trick didn't work. I'm stuck with 0.16.9...

\ Reply to this email directly or view it on GitHub.

n-studio commented 11 years ago

Upgrade from 0.16.9 to 0.18.0 fails. I use no additional iOS framework. But I use bubble-wrap and nanostore. Tomorrow I'll try with an empty app.

colinta commented 11 years ago

I know what's up - the NSAttributedString additions. I'll make those optional until I can figure out what's up.

colinta commented 11 years ago

K, try version 0.18.6

n-studio commented 11 years ago

Everything works perfectly, great job, many thanks!

yestoall commented 11 years ago

the problem is that NSKernAttributeName is not compatible with iOS6 :(

colinta commented 11 years ago

ahh, ok thx! I'll just drop that one.

yestoall commented 11 years ago

thanks to you. i'm learning a lot with your code ;)

On 11/03/2013, at 15:32, "Colin T.A. Gray" notifications@github.com wrote:

ahh, ok thx! I'll just drop that one.

— Reply to this email directly or view it on GitHubhttps://github.com/rubymotion/sugarcube/issues/32#issuecomment-14716147 .

colinta commented 11 years ago

@yestoall where did you see that NSKernAttributeName is not available? It appears in the documentation here: NSKernAttributeName

yestoall commented 11 years ago

testing and compiling.

On 11/03/2013, at 15:43, "Colin T.A. Gray" notifications@github.com wrote:

@yestoall https://github.com/yestoall where did you see that NSKernAttributeName is not available? It appears in the documentation here: NSKernAttributeNamehttp://developer.apple.com/library/ios/#documentation/uikit/reference/NSAttributedString_UIKit_Additions/Reference/Reference.html%23//apple_ref/doc/uid/TP40011688-CH1-DontLinkElementID_24

— Reply to this email directly or view it on GitHubhttps://github.com/rubymotion/sugarcube/issues/32#issuecomment-14716753 .

colinta commented 11 years ago

K, I reverted the commit for now... I don't think this is related to the background color error.