从xcode 4.02 - 4.3运输项目

时间:2012-06-30 11:32:35

标签: xcode version transfer

美好的一天 - 我试图将我的xcode 4.02项目(从mac os x 6)转移到xcode 4.3(mac os x lion)几天过去了 所以它完全失败((问题是[Apple Mach-o Linker id Error]

添加

时问题开始了
   - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:      (NSDictionary *)launchOptions
{
 //This one   BaseView* testView = [[BaseView alloc] initWithFrame:CGRectMake(0.0f, 20.0f,     320.0f, 460.0f)];

 //   [self.window addSubview:testView];    

    [self.window makeKeyAndVisible];
    return YES; 

}

它给了我这个错误

Ld "/Users/alex/Library/Developer/Xcode/DerivedData/Табло_Аэропортов-eijvojjtdhkznwhcqentolpelkxm/Build/Products/Debug-iphonesimulator/Табло Аэропортов.app/Табло Аэропортов" normal i386 cd "/Users/alex/Desktop/Табло Аэропортов" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/alex/Library/Developer/Xcode/DerivedData/Табло_Аэропортов-eijvojjtdhkznwhcqentolpelkxm/Build/Products/Debug-iphonesimulator -F/Users/alex/Library/Developer/Xcode/DerivedData/Табло_Аэропортов-eijvojjtdhkznwhcqentolpelkxm/Build/Products/Debug-iphonesimulator -filelist "/Users/alex/Library/Developer/Xcode/DerivedData/Табло_Аэропортов-eijvojjtdhkznwhcqentolpelkxm/Build/Intermediates/Табло Аэропортов.build/Debug-iphonesimulator/Табло Аэропортов.build/Objects-normal/i386/Табло Аэропортов.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -framework QuartzCore -o "/Users/alex/Library/Developer/Xcode/DerivedData/Табло_Аэропортов-eijvojjtdhkznwhcqentolpelkxm/Build/Products/Debug-iphonesimulator/Табло Аэропортов.app/Табло Аэропортов"

Undefined symbols for architecture i386: "_OBJC_CLASS_$_BaseView", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

看起来像夸脱核心或mac os x版本的一些问题。邓娜知道该怎么做(

1 个答案:

答案 0 :(得分:0)

这个:“_ OBJC_CLASS _ $ _ BaseView”表示您的BaseView类尚未编译到项目中。选择目标,单击构建阶段选项卡,打开名为compile sources的部分,然后添加缺少的.m文件。