Re: [Xcode-users] Odd behavior of static objc strings in 10.3
Re: [Xcode-users] Odd behavior of static objc strings in 10.3
- Subject: Re: [Xcode-users] Odd behavior of static objc strings in 10.3
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 10 Jan 2008 16:40:14 +0100
Le 10 janv. 08 à 16:20, Alexander von Below a écrit :
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
Maybe an object compilation transcript may help use to find an
inconstency in the settings. Which version of Xcode are you using ?
_______________________________________________
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