Come disabilitare i backup automatici per i sistemi iOS su iTunes

MacOSX, Object-C Soft! Nessun Commento »


Un modo semplice per disabilitare/abilitare i backup automatici dei nostri dispositivi iOS su iTunes è quello di usare la mia semplicissima applicazione.

Compatibile con OS X 10.6, 10.7, 10.8, 10.9 e successivi.

Upgrade to PHP 5.4 or 5.5 on Mac OSX Mountain Lion

MacOSX, PHP Soft! Nessun Commento »

There’s a bunch of ways to upgrade the preinstalled version of PHP 5.3.15 on Mac OSX Lion using Macports, brew, etc.., but to me, this was the most simplest. I took the info from http://www.coolestguyplanettech.com/upgrade-to-php-5-4-or-5-5-on-mac-osx-10-8-mountain-lion/

OSX 10.8 Mountain Lion ships with PHP version 5.3, there is an easy upgrade method to either the current stable PHP 5.4 or beta version 5.5.

The latest PHP version in this guide is from this PHP Packaged site which is being maintained for OSX and is known as a reliable source.

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

After it’s done, put the following in one of your PHP pages and check.
phpinfo()

In terminal, type the following:

php -v

If you are still getting the old version, it’s because the installation was done in a different directory and pointing to the old one. Type the following in terminal.

cd /usr/bin
rm php
ln -s /usr/local/php5/bin/php php

Now do a
php -v

Should be showing PHP 5.5.11.

<Google> Cannot find an ad network adapter with the name(s):

iPad, iPhone, Object-C Soft! Nessun Commento »

<Google> Cannot find an ad network adapter with the name(s): (
    GADMAdapterIAd
). Remember to link all required ad network adapters and SDKs, and set -ObjC -all_load in the 'Other Linker Flags' setting of your build target.

Il problema è stato risolto aggiungendo ‘libAdapterIAd.a’ e ‘ iAds.framework’.
La prima libreria si trova qui, mentre il secondo è presente nella lista dei “Link Binary” di “Build Phases” del progetto.

Cancellare e ricompilare.

Buon lavoro.

clang: error: linker command failed with exit code 1 – library not found

iPad, iPhone, Object-C Soft! Nessun Commento »

– problema:

ld: library not found for -lDMReader
clang: error: linker command failed with exit code 1 (use -v to see invocation)

– soluzione:

aggiungere in “Library Search Paths” di “Build Settings” la cartella dove si trova la libreria.

Forzare HIDE STATUS BAR per iOS7 e iOS6

cocos2d, iPhone, Object-C Soft! Nessun Commento »


Con il nuovo rilascio del sistema operativo di Apple bisogna fare qualche aggiustamento qua e la nei vecchi progetti.
Uno di questi è quello di nascondere la status bar:

 
//viewDidload
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
// iOS 7
[self prefersStatusBarHidden];
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
} else {
// iOS 6
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
}
 
 
// Add this Method
- (BOOL)prefersStatusBarHidden
{
return YES;
}

Warning: file perso nel progetto di XCode

cocos2d, iPad, iPhone, MacOSX, Object-C Soft! Nessun Commento »

Capita di cancellare un file dal progetto di XCode e di ritrovarsi il messaggio di warning, anche se il file è stato rimosso correttamente.
Il problema è che il file è stato rimosso, ma SVN pensa che ancora ci sia.
La cosa più semplice da fare è aprire il terminale e individuare la cartella dove si trovava il file (cd / pathToYourFolder) e digitare il seguente script:

svn delete nameOfMissingFile

Se il nome contiene la “@”:

svn delete [email protected]@

Per GIT repositories:

git rm nameOfMissingFile
Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi