Showing posts with label xcode. Show all posts
Showing posts with label xcode. Show all posts

Wednesday, April 2, 2014

how to find unused images from Xcode


#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`

for png in `find . -name '*.png'`
do
    name=`basename $png`
    if ! grep -q $name $PROJ; then
        echo "$png is not referenced"
    fi
done


Credit:
http://mfaizanshaikh.wordpress.com/2012/12/17/how-to-remove-unused-images-from-xcode-project/

Thursday, November 24, 2011

Tracking Crash Logs

To get the crash logs of the app from various OS:

Credit:
http://iphonedevelopertips.com/debugging/locating-crash-reports.html

http://aplus.rs/apple/how-to-find-crash-logs-for-iphone-applications-on-mac-vista-and-xp/

Installing multiple XCode in mac

How to configure two xCode in the single MAC.

Please follow the steps while Installing xcode other than what you have now.

- Go to Root folder there will be a Developer folder for the existing XCode tool, create new folder with name Developer2
- While installing/configuring new XCode tool, one of the installation page show info about the disk/folder going to install by default. Please change the folder to Developer2
- Just continue other steps.
- That's all, two XCode is ready for development.

Note: Unable to change the default XCode.

Happy Coding.

xcode code analyzer

Clang is the code analyzer, will direct you to fix the dirty code.

You can refer the below links to know better usage.

http://iphonedevelopertips.com/xcode/static-code-analysis-clang-and-xcode-3-2.html

http://clang-analyzer.llvm.org/xcode.html

http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html

As of now Clang complier is not available for Xcode 4 (available for Xcode 3.2), it has the default LLVM GCC 4.2 complier. We may get that in future release, to know the error code message better.

Additional:

You must build your code using this Analyzer to fix the potential memory leaks and other issues.

http://clang-analyzer.llvm.org/xcode.html

If you are using,
Xcode 3: Build > Build and Analyze
Xcode 4: Select Product > Analyze.