1

I am using the cocos2d library. when xcode builds, it builds twice as many source files as it needs to, i.e. 162 instead of the 81 that come with the cocos2d library.

this only happens when i build in release mode on the device, i.e. not device / debug nor simulator release / debug.

I have tried clean all targets to no avail.

I am using iOS4 with the latest version of the SDK.

Anyone know where to start looking for this?

Many thanks.

1 Answer 1

3

That's normal.

When you build in Release mode, the compiler must compile each file for each architecture specified in the Build settings. If you use the Xcode template for an iPhone app, there are two architectures, armv6 and armv7, that get built.

When you're in Debug mode, it only builds the currently active architecture. This is also set in the Build settings with the appropriately named setting.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for this. but it's odd the way it doesn't do it in simulator / release mode then, or is that normal also? Also, is it normal to get duplicate compiler warning messages, i.e. same warnings duplicated for the same files - forgot to mention that was happening.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.