Antonio realmente no he hecho NADA . Al conectar el dispositivo al xcode se me registra sin ningun tipo de problema .( ojo que tiene jailbreak ) .
EL hb_vmInit ( true) lo llamo en el mismo sitio que se hacia en la version anterior , de hecho he usado un programa ya generado con la plantilla que creamos para xcode 3.2
Ojo que los archivos son ya existentes , no son generados por xcode 4.1 sino por xcode 3.2 ... tengo que probar con unos de 4.1 y mirar si son iguales ...
llamada en main :
- Code: Select all Expand view
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
hb_vmInit( TRUE );
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
y cambio en el fichero Delegate que genera xcode :
- Code: Select all Expand view
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
SetWndMain( self.window );
// Add the view controller's view to the window and display.
[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
PHB_SYMB symMain = hb_dynsymSymbol( hb_dynsymFindName( "MAIN" ) );
// app = self;
hb_vmPushSymbol( symMain );
hb_vmPushNil();
hb_vmDo( 0 );
return YES;
}