he conseguido un iphone

Re: he conseguido un iphone

Postby mastintin » Wed Oct 20, 2010 7:31 pm

Daniel Trata de ejecutar este programa en tu iphone :
http://rapidshare.com/files/426110106/TabBar.ipa
instalalo mediante el itunes y sincronizalo.
y nos cuentas .
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Wed Oct 20, 2010 9:03 pm

he mirado como podemos "controlar" que pasa en esa aplicacion que se cierra y no se por donde tirar . La de emitir un beep para saber si se ejecuta se complica porque el framework del iphone no tiene la funcion nsbeep . Otra forma sería controlarlo por medio de NSlog pero al no ser lanzado desde consola no nos va a dar la salida por ella .Una opcion que se me ocurre es mirar si existe manera de redireccionar la salida de nslog a un archivo log concreto .
He mirado a ver si en mi iphone tengo algun crashreport y no tengo ninguno ,asi que realmente no parece que la aplicación "casque" ,solo que no hace lo que debe.
Un saludo.

-------------------------- edito para ampliar ------------------------
he encontrado esto que puede servir :
Code: Select all  Expand view


Redirect NSLog to a file on the iPhone
January 9, 200921:42 Share on Twitter

If you need to debug your app when disconnected from your Mac (and from the console), redirect all your NSLog calls to a file so you can later read it.

The method below will create a file name “console.log” in the Documents folder of your application so you can later read it.

Just call this method in your program:

- (void) redirectConsoleLogToDocumentFolder
{
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
                                                       NSUserDomainMask, YES);
  NSString *documentsDirectory = [paths objectAtIndex:0];
  NSString *logPath = [documentsDirectory
                       stringByAppendingPathComponent:@"console.log"];
  freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding],"a+",stderr);
}

The log will never be erased, so use with caution.
 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Wed Oct 20, 2010 9:23 pm

Manuel,

El CrashReporter.log deberia estar en:

~/Library/Logs/CrashReporter/MobileDevice/...

si ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Wed Oct 20, 2010 9:53 pm

Antonio Linares wrote:Manuel,

El CrashReporter.log deberia estar en:

~/Library/Logs/CrashReporter/MobileDevice/...

si ?

Si es donde yo he mirado
Mejor dicho ese path pero partiendo de la raíz y no del usuario
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Daniel Garcia-Gil » Wed Oct 20, 2010 11:45 pm

mastintin wrote:Daniel Trata de ejecutar este programa en tu iphone :
http://rapidshare.com/files/426110106/TabBar.ipa
instalalo mediante el itunes y sincronizalo.
y nos cuentas .

Manuel

me dice que la aplicacion no esta firmada
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: he conseguido un iphone

Postby Antonio Linares » Thu Oct 21, 2010 7:39 am

Daniel,

Que versión de iTunes estás usando ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby Antonio Linares » Thu Oct 21, 2010 7:47 am

Manuel,

Se me ocurre la siguiente prueba:

Suponiendo que el PRG se este ejecutando correctamente, hacer:
Code: Select all  Expand view

function Main()

   MemoWrit( "/test.txt", "ok, funciona!" )

return nil
 

Otra posibilidad es crear un bucle y ver si se queda en él:
Code: Select all  Expand view

function Main()

   while .T.
   end

return nil
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Thu Oct 21, 2010 8:55 am

con el memowrite no escribe nada ....
y con el bucle tampoco .... parece que el problrema es que no entra en main()
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Thu Oct 21, 2010 9:19 am

Daniel Garcia-Gil wrote:me dice que la aplicacion no esta firmada

Mira si tienes instalado el appsync de Cydia , si lo tienes intenta reinstalarlo , sino instalalo.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Thu Oct 21, 2010 10:42 am

Manuel,

Prueba por favor a poner la llamada a MemoWrit() en el init procedure start.

A ver si llega a arrancar... (antes de que salte a Main)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Thu Oct 21, 2010 11:42 am

no no entra en init procedure star .
Lo he probado con memowrit , y por si acaso es que no tiene permisos de escritura y por eso no coloca el archivo lo he intentado con el bucle y nada , todo igual .
Si es verdad que con memowrit da la sensación que se detiene un poco mas y da tiempo a ver una ventana con fondo negro ampliandose y cerrandose , pero puede que solo sea cuestion del iphone en ese momento .
:evil: :( :cry: :evil: :|
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Thu Oct 21, 2010 12:20 pm

Manuel,

El caso es Que construyendo en modo terminal arranca bien

Sera algo del plist ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Thu Oct 21, 2010 1:00 pm

He hecho lo siguiente .... he compilado el tutor01 nuevamente ( el del msginfo() ) . He instalado el tabBarsample que sabemos que funciona ( y lo he ejecutado) .
He colocado el tutor01 en el iphone y lo he seudofirmado ( ldid -s ) ,he ido a la aplicacion instalada ( /private/var/mobile/Applications/278205AC-FB63-4B4C-B1EA-10250EBF6CB8 ) he abierto el app y le he borrado tabBarSample y en su lugar he colocado el tutor01 renombrandolo .... mismo resultado ....
Una cosa , Hemos hecho funcionar el hola mundo compilado dentro del iphone , pero ¿ funcionaba el hola mundo compilado desde el mac ? . Yo creo que no lo llegue a conseguir compilar ...
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Thu Oct 21, 2010 1:26 pm

Manuel,

¿ funcionaba el hola mundo compilado desde el mac ?


Voy a probarlo...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby Daniel Garcia-Gil » Thu Oct 21, 2010 4:56 pm

Antonio Linares wrote:Daniel,

Que versión de iTunes estás usando ?


10.0.1

mastintin wrote:Mira si tienes instalado el appsync de Cydia , si lo tienes intenta reinstalarlo , sino instalalo.

instalada y funcionando la aplicacion que me enviaste, lo que no logro es avanzar con la construcion de harbour, estoy en el mismo sitio
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

PreviousNext

Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 4 guests