You have two errors in your first line. First change
NSString *dirName1 = @"~'Desktop/ProjAlleleData";
to
NSString *dirName1 = @"~/Desktop/ProjAlleleData";
then you have to expand the ~
:
NSString *dirName1 = [@"~/Desktop/ProjAlleleData" stringByExpandingTildeInPath];
That should give you a string like /Users/yourname/Desktop/ProjAlleleData