xcode 4.02
美好的一天 - 当我试图将我的项目(从 mac os x 6)传输到(mac os x lion)时已经过去了几天xcode 4.3
所以它完全失败((问题是 [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)
似乎 quarts core 或 mac os x 版本有问题。不知道该怎么办(