• 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 3 + 10.3.9 + NSStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 3 + 10.3.9 + NSStrings


  • Subject: Xcode 3 + 10.3.9 + NSStrings
  • From: Rudy Richter <email@hidden>
  • Date: Thu, 10 Apr 2008 13:46:58 -0400

We recently switched over to using Xcode 3 for our build system and ran into a problem with globally defined NSStrings and CFStringRefs in frameworks on 10.3.9.  On 10.4 and 10.5 the built product works fine, but when we run it on 10.3.9 it crashes when it tries to reference the globally defined strings.  If I build the project using Xcode 2.5 everything runs fine on 10.3.9, 10.4 and 10.5.  I've looked at the commands the two versions of Xcode are passing down to gcc and ld and there don't seem to be any significant differences between the two.

The strings are currently defined as:
#define someString @"someString"

but it also fails the same way if they're defined as:
extern NSString *someString; with the corresponding NSString *someString = @"someString;

the crashed thread that shows an invalid object reference:
Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000020

Thread 0 Crashed:
0   libobjc.A.dylib                0x908611ec objc_msgSend + 0xc
1   com.apple.Foundation           0x90a251d0 -[NSString rangeOfString:options:range:] + 0x44
2   com.apple.Foundation           0x90a2e3d8 -[NSString rangeOfString:] + 0x70
3   ...siasw.frameworks.foundation 0x002731c0 -[NSString(ASWString) hasSubstring:] + 0x64
4   com.AmbrosiaSW.ASWFramework  0xc00105cc -[NSString(Additions) hasAnyKeys] + 0x84
5   com.AmbrosiaSW.ASWFramework  0xc0012c48 -[NSTextField(Additions) replaceKeys] + 0xb4
6   com.AmbrosiaSW.ASWFramework 0xc0017650 -[ASWSheet awakeFromNib] + 0xe8
7   com.apple.Foundation           0x90a5ef70 -[NSSet makeObjectsPerformSelector:] + 0xa4
8   com.apple.AppKit               0x92ea1cbc -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 0x358
9   com.apple.AppKit               0x92f937b0 loadNib + 0xfc
10  com.apple.AppKit               0x92eea990 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 0x2e8
11  com.apple.AppKit               0x92f698a0 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 0x9c
12  com.apple.AppKit               0x92f706a4 -[NSWindowController loadWindow] + 0xcc
13  com.apple.AppKit               0x92f24da0 -[NSWindowController window] + 0x5c
14  com.AmbrosiaSW.ASWFramework  0xc0005c58 -[ASWFrameworkController(PrivateMethods) prepareInitialState] + 0x60
15  com.AmbrosiaSW.ASWFramework  0xc0002b50 -[ASWFrameworkController runModal] + 0x5c
16  com.AmbrosiaSW.ASWFramework  0xc0002a24 -[ASWFrameworkController applicationDidFinishLaunching] + 0x6c
17  com.AmbrosiaSW.ASWFramework  0xc001a6c8 -[ASWFramework didFinishLaunching] + 0x9c
18  ...ASWFrameworkCarbonBridge  0x000c8f2c didFinishLaunching + 0x130
19  ...ASWFrameworkCarbonBridge  0x000c9800 _ASWFrameworkCarbonBridgeLaunchTrampoline + 0xcc
20  com.apple.HIToolbox            0x92882e50 DispatchEventToHandlers + 0x150
21  com.apple.HIToolbox            0x928830c4 SendEventToEventTargetInternal + 0x174
22  com.apple.HIToolbox            0x92887544 SendEventToEventTargetWithOptions + 0x28
23  com.apple.HIToolbox            0x92893ba0 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 0x2b8
24  com.apple.HIToolbox            0x92882f0c DispatchEventToHandlers + 0x20c
25  com.apple.HIToolbox            0x928830c4 SendEventToEventTargetInternal + 0x174
26  com.apple.HIToolbox            0x92895530 SendEventToEventTarget + 0x28
27  com.apple.HIToolbox            0x9289944c ToolboxEventDispatcher + 0x5c
28  com.apple.HIToolbox            0x928b677c HLTBEventDispatcher + 0x10
29  com.apple.HIToolbox            0x928ac618 RunApplicationEventLoop + 0x98
30  ...ASWFrameworkCarbonBridge 0x000c86e8 InitializeFramework + 0x310
31  com.yourcompany.TestCarbonApp  0x00008afc ASW_Initialization + 0xa0
32  com.yourcompany.TestCarbonApp  0x00008974 main + 0x3c (main.cp:50)
33  com.yourcompany.TestCarbonApp  0x00001e68 _start + 0x154 (crt.c:272)
34  com.yourcompany.TestCarbonApp  0x00001d10 start + 0x3c

any help would be greatly appreciated.

thanks,
-rudy
--
Rudy Richter / C-4 & Demolitions Expert / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/

 _______________________________________________
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 3 + 10.3.9 + NSStrings
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Crash in dylib on Leopard, only on 64bit Intel
  • Next by Date: Re: Relative user path problem
  • Previous by thread: Re: Crash in dylib on Leopard, only on 64bit Intel
  • Next by thread: Re: Xcode 3 + 10.3.9 + NSStrings
  • Index(es):
    • Date
    • Thread