Please help me asap, since i have a project due tomorrow (the app.) I can't manage to build after I added a lot of views. It all worked perfectly before, but ever since I used this code on the iPad app:
int y = 0;
-(IBAction) changeText
id)sender
{
y++;
if (y>8) y=0;
[self updateText];
}
- (void)updateText {
switch (y) {
case 0: [userText setText
"1"]; break;
case 1: [userText setText
"10"]; break;
case 2: [userText setText
"8"]; break;
case 3: [userText setText
"6"]; break;
case 4: [userText setText
"4"]; break;
case 5: [userText setText
"7"]; break;
case 6: [userText setText
"5"]; break;
case 7: [userText setText
"9"]; break;
case 8: [userText setText
"3"]; break;
case 9: [userText setText
"2"]; break;
}
}
on each of the ViewController, it told me that the symbols were duplicated or something, so I chacnged the "y" in every ViewController (except the original) to random letters that don't repeat. Well, now I get this error:
Ld build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame normal i386
cd /Users/pato/Documents/ESBoardGame
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -F/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -filelist /Users/pato/Documents/ESBoardGame/build/ESBoardGame.build/Debug-iphonesimulator/ESBoardGame.build/Objects-normal/i386/ESBoardGame.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -prebind -o /Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have no idea why? The thing isn't letting me compile. i am pissed so much, due to the fact this is my science report due tomorrow!!!!!!
Please help me, I am in great despair!!!!!
int y = 0;
-(IBAction) changeText
{
y++;
if (y>8) y=0;
[self updateText];
}
- (void)updateText {
switch (y) {
case 0: [userText setText
case 1: [userText setText
case 2: [userText setText
case 3: [userText setText
case 4: [userText setText
case 5: [userText setText
case 6: [userText setText
case 7: [userText setText
case 8: [userText setText
case 9: [userText setText
}
}
on each of the ViewController, it told me that the symbols were duplicated or something, so I chacnged the "y" in every ViewController (except the original) to random letters that don't repeat. Well, now I get this error:
Ld build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame normal i386
cd /Users/pato/Documents/ESBoardGame
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -F/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -filelist /Users/pato/Documents/ESBoardGame/build/ESBoardGame.build/Debug-iphonesimulator/ESBoardGame.build/Objects-normal/i386/ESBoardGame.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -prebind -o /Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have no idea why? The thing isn't letting me compile. i am pissed so much, due to the fact this is my science report due tomorrow!!!!!!
Please help me, I am in great despair!!!!!