Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: 'NSEntityDescription' may not respond to



On May 30, 2008, at 11:16 AM, Fritz Anderson wrote:

On 30 May 2008, at 4:17 AM, Steven Hamilton wrote:

Also, any warnings or errors I get in xcode appear twice in the bubbles. Anyone know why that is?

By default, new Xcode projects are set to the "Release" configuration (because all software is ready to release when you begin coding it. That's sarcasm.).

There's a pop-up labeled "default configuration" in the Configurations tab of the project info window. As I'm sure you know, this sets the configuration used when building your project via xcodebuild without any configuration specified, e.g. when you just cd to a directory containing an Xcode project and type "xcodebuild" in Terminal.


If it does not also set the configuration users saw when they first opened a project, one might argue that it's broken, because that's what users who don't use xcodebuild from the command line may interpret "default" to mean.

In that configuration, Xcode compiles and links the application twice, once for Intel and once for PowerPC. Two compilations, same error, two reports of the error.

Keep in mind as well that the Release configuration is not "special" - it just has the appropriate build settings to build two-way Universal.


One place where this is actually really useful is when building four- way Universal. You may get different errors and warnings when building for PowerPC 32-bit than when building for Intel 64-bit; for one thing, the latter has differently-sized "int" and "long" types. Similarly, if you're building for PowerPC with a deployment target of 10.3, but for Intel with a deployment target of 10.4, you will get deprecation warnings for the latter architecture that don't apply to the former.

 -- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >warning: 'NSEntityDescription' may not respond to (From: Steven Hamilton <email@hidden>)
 >Re: warning: 'NSEntityDescription' may not respond to (From: Fritz Anderson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.