Thursday, January 26, 2012

XCode/Archiving: Uploading Archive Problem

How's going, everybody?


Well, here's a quick tip on what can help you when you get the dreadful error while you're uploading your archive to the store:




'iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present'



This is a error that really sucks because, dudes! The last thing after 120 hours working on your code is an error for uploading the thing. But here is what you do:




1)Select your project "stuff" up there;
2)Select the "PROJECT" option;
3)Go to "Architectures";
4)Press on top of the up-and-down arrow;
5)Inserting the "armv6" thing:
    5.1) Delete any option that you have there:
        5.1.1)Select the option;
        5.1.2)Press the "-";
    5.2) Press the "+";
    5.3) Insert the "armv6";
    5.4) Probably you'll need to press some type of confirmation.




That's it.
Cheers.

Friday, January 20, 2012

Cocos2D/Orientation: How to get the orientation you want.


Yo, dudes,

How's it going? Kind of shitty, hun? No Megaupload, no FBI, no WhiteHouse.
What else to do? Well, here goes a fast topic for orientation issues.
Know when you have that real cool game that you're using Cocos2D but want to use Portrait Orientation?
Just do This:


1) Go to "RootViewController.m";
2) Find this piece of code:



#elif GAME_AUTOROTATION == kGameAutorotationUIViewController
//
// EAGLView will be rotated by the UIViewController
//
// Sample: Autorotate only in landscpe mode
//
// return YES for the supported orientations
return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );

3)Change the "UIInterfaceOrientationIsLandscape" to "UIInterfaceOrientationIsPortrait", or any other that you would like. (Just try not using "PortraitUpSideDown" if would be kind of awkward.

Now your code should be something like this:

#elif GAME_AUTOROTATION == kGameAutorotationUIViewController
//
// EAGLView will be rotated by the UIViewController
//
// Sample: Autorotate only in landscpe mode
//
// return YES for the supported orientations
return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );


Any problems, get in contact.
Cheers.

Tweet