Pages

Showing posts with label iphone. Show all posts
Showing posts with label iphone. Show all posts

Thursday, August 26, 2010

Git newbie: Fatal : Cannot use user as an exclude file

So I started using Github. Since everyone is using it I thought, well just go ahead and use it. Should not be that hard right? Oh well, I guess people forgot to mention that you will loose some hair first before you can upload things - specially if it is related to iphone / xcode.

So after initial git commit etc, I have happily created a new xcode and tried to upload. Terminal says, sorry cant upload some items. So I Googled and found that you got to put .gitignore for iphone / xcode things.

But the problem is, I dont know where to add the ignore file. And to make it worse, I have NO IDEA how to create it. After many many search I found, to create - I got to use

nano .gitignore

And vola, now I can create a gitignore file. So I added those and saved it and then I tried to git it and there you go, a new error popped up.

fatal : cannot use /users/avi/ as an exclude file

I searched high and low what might have caused it. Tried all sorts of command only to find more and more errors. Here are a few : 
1.  fatal: bad revision 'HEAD'
2.

After many many tries, I finally found the solution 

nano ~/.gitconfig

This will bring you to the main config file which has these 

[user]
your user details

[core]
exclude users/avi/

Once I deleted those lines, I could commit and upload it right away. 

Tuesday, June 8, 2010

iTunes automatically deletes from iPod, iPad or iPhone

This articles shows how to prevent iTunes automatically delete your apps in 4 simple and easy steps from iTunes itself without any codes etc.

After purchasing your app and downloading, a lot of times iTunes tend to delete apps that you have bought. And in case you have jailbroken with sprit / cydia, the moment you connect and sync your iPod or iPhone with iTunes, it is bound to delete your apps. And if you ask not to sync your apps, iTunes threatens to delete all apps from your touch or phone. 

Fortunately the solution is right inside iTunes. 

Step 1 : To stop automatically sync itunes with ur iPod or iPhone, first go to "Preference" in iTunes. 


Step 2: In Preference window, go to "Devices"
Step 3: Check / tick"Prevent ipods, iPhones and iPads from Syncing Automatically. 
Step 4: Now connect your iPod / iPhone / iPad. Once connected go to File > Transfer purchases from your ipod / iphone / ipad. 


Once you do that, now your apps will never get deleted. Now you can sync it back. 
If you wish to enable auto-sync, you can uncheck from step 3 now. But I recommend manual sync. 


Saturday, December 26, 2009

solution : iphone sdk not found in appcelerator titanium

This is the current solution of iphone sdk not found problem in latest titanium [as of Dec 2009]. For those of you who installed the xcode 3.1.4 from apple developer page along with iphone sdk you will face a problem with titanium.



Although xcode is installed, it thinks that it is not there. The reason probably is titanium thinks default Xcode installation directory in "/usr/bin". However, the latest xocde gets installed in xcode 3.1.4 directory. So the solution is (from the forum)

simply create a symlink to the default Xcode installation directory in "/usr/bin". In Terminal:
cd /usr/bin
sudo ln -s /Developer/usr/bin/xcodebuild xcodebuild
Once restarted Titanium, the green tick appeared.

In picture


Once done, you should see the iphone part getting green. For Android, I am using eclipse