mercoledì 21 aprile 2010

Code Sign error

Se quando compilate la vostra applicazione su iPhone vi viene restituito
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

è probabile che vi siano dei problemi con i vostri certificati di provisioning.

Ecco alcuni consigli:

  1. Controllate se nel file plist è settato il corretto certificato di provisioning (generalmente è il reverse domain del vostro dominio più nome dell'app o * se è un certificato generico)

  2. Se avete cambiato macchina di sviluppo, oppure sviluppate con più macchine, assicuratevi che tutte abbiano la stessa chiave privata che avete utilizzato per generare certificati con Apple.

  3. Controllate che i certificati stiano sotto il portachiavi "Login" e non "Root si sistema", altrimenti XCode non riuscirà a reperirli

  4. Controllate che i certificati non siano scaduti

  5. Createne di nuovi utilizzando l'Assistente alla creazioni di certificati presente sul Provisioning Portal


Ciao

P

martedì 6 aprile 2010

Wordpress: Facebook Connect and Role Scope issue

Recently I've developed a very funny website with wordpress and a lots of plugins.
With my surprise, after a coupe of week of correct working, some users told me that, after the login with facebook connect, all the site contents, such as menus and posts, aren't accessible.

That's is caused by an incompatibility issue between Role Scoper and wp-facebookconnect plugins.
I think that after login Role Scoper don't recognize the user level of the registred Facebook Users, and so revoke all the permission to them.

My solution consists to decrease the Wp Facebook Connect hooks execution priority to zero:

  • Open wp-contents/plugins/wp-facebookconnect/fbconnect.php

  • Find the line 93

    add_action('init', 'fbc_init_auth');

    this line add an action to wordpress init hook

  • Decrese the priority of the action adding the priority option after the action name

    add_action('init', 'fbc_init_auth', 0);

  • Save and now everything is working fine :)