Reputation: 1638
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.
Upvotes: 1
Views: 589
Reputation: 8685
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.
Upvotes: 3