• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Xcode-users] Odd behavior of static objc strings in 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xcode-users] Odd behavior of static objc strings in 10.3


  • Subject: [Xcode-users] Odd behavior of static objc strings in 10.3
  • From: Alexander von Below <email@hidden>
  • Date: Thu, 10 Jan 2008 16:20:18 +0100

Hello List,

due to a request by an important customer, we need to re-establish 10.3 compatibilty for one of our apps. So far, so good.

The application consists of a Cocoa App, and a Cocoa Framework. So far, so good.

Everything seems to work, but as soon as we hit a string method WITHIN THE FRAMEWORK which involves a static string (namely, @""), the application crashes.

#0  0x908611ec in objc_msgSend ()
#1  0x90a2b01c in _NSDescriptionWithLocaleFunc ()
#2  0x901cf834 in _CFStringAppendFormatAndArgumentsAux ()
#3  0x901d559c in _CFStringCreateWithFormatAndArgumentsAux ()
#4  0x90a2d0a8 in +[NSString stringWithFormat:] ()

Needless to say, the application works fine in 10.4 and 10.5

The App is build against the 10.3.9 SDK, compiled with gcc 4. The relevant flags are probably:

MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
SDKROOT_i386 = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
SDKROOT_ppc = $(DEVELOPER_SDK_DIR)/MacOSX10.3.9.sdk

This happens whenever we pass @"" to any NSString method.

Is it unsafe to use @"" in 10.3 ?

Did we forget something in our framework settings?

Any pointers are appreciated

Alex

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Xcode-users] Odd behavior of static objc strings in 10.3
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Building framework with another framework
  • Next by Date: Re: [Xcode-users] Odd behavior of static objc strings in 10.3
  • Previous by thread: Re: XCode 3.0 and Interface Builder connection problem
  • Next by thread: Re: [Xcode-users] Odd behavior of static objc strings in 10.3
  • Index(es):
    • Date
    • Thread