2011-12-15 2 views
0

안녕하세요. 저는 아이폰 앱을 개발하기 시작했습니다. 첫날입니다. 그리고 동료가 준 코드 (xcode 4.1 또는 4.2)를 사용하여 신속하게 시험해보아야합니다. 그러나 컴파일되지 않으며 이유를 이해할 수 없습니다. 나는 아이폰 SDK 3.1 및 xcode 3.2 (나는 생각한다). 다른 버전으로 업데이트하는 것은 문제가되지 않으므로 이러한 컴파일 오류를 수정할 수있는 방법이 있습니까? 내가 컴파일하려고 프로젝트를 오픈하고 iphoneos에 대해 뭔가가 발견되지 말했고, 나는 지금 내가 가지고있는 SDK를 중 하나를 변경했을 때 나는 iLikeItAppDelegate.m다른 xcode 버전 간의 iphone 컴파일?

@synthesize window=_window; 
!synthesized property 'window' must either be named the same as a compatible iva or must  
explicitly name an ivar 
@synthesize viewController=_viewController; 
!kind of similar comment here 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: 

(NSDictionary *)launchOptions 
{ 
// Override point for customization after application launch. 

self.window.rootViewController = self.viewController; 
[self.window makeKeyAndVisible]; 
return YES; 
} 

에 다음과 같은 오류를 얻을 난 이 이상한 오류를. 나는 기타에 의해 일부 직원을 대체하기 위해 관리하고 지금은이 클래스가 : 사람이 감사에게 나에게

편집을 도와주세요

#import "iLikeItAppDelegate.h" 

#import "iLikeItViewController.h" 

@implementation iLikeItAppDelegate 


@synthesize window; 

@synthesize viewController; 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: 

(NSDictionary *)launchOptions 
{ 
// Override point for customization after application launch. 
//self.window.viewController 

//self.window.rootViewController = self.viewController; 
[window addSubview:viewController.view]; 
[self.window makeKeyAndVisible]; 
return YES; 
} 

- (void)applicationWillResignActive:(UIApplication *)application 
{ 
/* 
Sent when the application is about to move from active to inactive state. This can  occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 
*/ 
} 

- (void)applicationDidEnterBackground:(UIApplication *)application 
{ 
/* 
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 
*/ 
} 

- (void)applicationWillEnterForeground:(UIApplication *)application 
{ 
/* 
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 
*/ 
} 

- (void)applicationDidBecomeActive:(UIApplication *)application 
{ 
/* 
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 
*/ 
} 

- (void)applicationWillTerminate:(UIApplication *)application 
{ 
/* 
Called when the application is about to terminate. 
Save data if appropriate. 
See also applicationDidEnterBackground:. 
*/ 
} 

- (void)dealloc 
{ 
[window release]; 
[viewController release]; 
[super dealloc]; 
} 

@end 

을하지만 지금은 다른 컴파일 오류가있어 사람들은 내가도 이해가 안 :

,691 :에서 참조

___destroy_helper_block_1 in iLikeItViewController.o 


    ___destroy_helper_block_3 in iLikeItViewController.o 


    ___destroy_helper_block_4 in iLikeItViewController.o 


    ___destroy_helper_block_2 in iLikeItViewController.o 

"__Block_object_assign":에서 참조

"__Block_object_dispose"

__NSConcreteStackBlock$non_lazy_ptr in iLikeItViewController.o 


(maybe you meant: __NSConcreteStackBlock$non_lazy_ptr) 

LD :에서 참조

___copy_helper_block_1 in iLikeItViewController.o 


    ___copy_helper_block_3 in iLikeItViewController.o 


    ___copy_helper_block_4 in iLikeItViewController.o 


    ___copy_helper_block_2 in iLikeItViewController.o 

"__NSConcreteStackBlock"찾을 수 없습니다 기호 (들)

collect2 : 신분증이 종료 상태 일 반환

누구의 도움이 PLZ 내가 필요 없습니다 Snow Leopard를 가지고 있기 때문에이 기본 단계를 통해 xcode 4 projetcs를 3로 변환하면 시스템에서 설치할 수있는 최신 버전이됩니다.

답변

1

rootViewController 속성은 iOS 4.0 버전에서 사용할 수 이상 read here

내 조언 : 나는 마침내 당신이 볼 수있는 유일한 엑스 코드 3에서 작동 일부 직원을 해결하기 위해 관리 당신의 답변을

+0

thks 최신 SDK를 얻을 수 내 편집하지만 지금은 또 다른 문제가 있습니다. (죄송하지만 xcode4로 업데이트 할 수 없습니다) – vallllll