8

有时候真的很讨厌苹果的开发环境。说真的,有必要这么复杂吗?

我的问题是这个。我不再能够将我的项目构建到模拟器上。我收到以下错误。我意识到这是一个链接器错误 - 我不明白的是 1)为什么这突然不再工作,以及 2)它为什么不会选择正确的 SDK(这是链接器错误的原因)。

Apple Magik 非常令人沮丧。

另外,我最近刚刚升级到 Snow Leopard 和 XCode 3.2,虽然升级后它可以工作。

谢谢!布莱恩

Ld build/Debug-iphonesimulator/ChunderCats.app/ChunderCats normal i386
cd /Users/bryan/projects/iPhone/ChunderCats
setenv MACOSX_DEPLOYMENT_TARGET 10.5
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/iPhoneSimulator3.1.sdk -L/Users/bryan/projects/iPhone/ChunderCats/build/Debug-iphonesimulator -L/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib -F/Users/bryan/projects/iPhone/ChunderCats/build/Debug-iphonesimulator -F/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks -filelist /Users/bryan/projects/iPhone/ChunderCats/build/ChunderCats.build/Debug-iphonesimulator/ChunderCats.build/Objects-normal/i386/ChunderCats.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework QuartzCore -framework UIKit -framework CoreGraphics -lsqlite3 -o /Users/bryan/projects/iPhone/ChunderCats/build/Debug-iphonesimulator/ChunderCats.app/ChunderCats

ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation, missing required architecture i386 in file
ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore, missing required architecture i386 in file
ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit, missing required architecture i386 in file
ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics, missing required architecture i386 in file
ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/libsqlite3.dylib, missing required architecture i386 in file
ld: warning: in /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/libSystem.dylib, missing required architecture i386 in file
Undefined symbols:
  ".objc_class_name_UIApplication", referenced from:
      literal-pointer@__OBJC@__cls_refs@UIApplication in MenuViewController.o
  ".objc_class_name_NSNotificationCenter", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in MenuViewController.o
  ".objc_class_name_NSObject", referenced from:
      .objc_class_name_ChunderCatsAppDelegate in ChunderCatsAppDelegate.o
  "_kCAMediaTimingFunctionEaseInEaseOut", referenced from:
      _kCAMediaTimingFunctionEaseInEaseOut$non_lazy_ptr in MenuViewController.o
  "_sqlite3_free", referenced from:
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
  "_NSLog", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController didReceiveMemoryWarning] in MenuViewController.o
      -[MenuViewController applicationWillResignActive:] in MenuViewController.o
      -[MenuViewController applicationDidBecomeActive:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController checkDevice] in MenuViewController.o
      -[MenuViewController newGameButton:] in MenuViewController.o
      -[MenuViewController resumeGameButton:] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[OptionsViewController soundSwitch:] in OptionsViewController.o
      -[OptionsViewController vibrateSwitch:] in OptionsViewController.o
      -[OptionsViewController bubbleThoughtsSwitch:] in OptionsViewController.o
      -[OptionsViewController backstorySwitch:] in OptionsViewController.o
      -[HowToPlayViewController prevButton:] in HowToPlayViewController.o
      -[HowToPlayViewController nextButton:] in HowToPlayViewController.o
  "_sqlite3_prepare_v2", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
  "_objc_setProperty", referenced from:
      -[ChunderCatsAppDelegate setWindow:] in ChunderCatsAppDelegate.o
      -[MenuViewController setHowToPlayButton:] in MenuViewController.o
      -[MenuViewController setOptionsButton:] in MenuViewController.o
      -[MenuViewController setResumeGameButton:] in MenuViewController.o
      -[MenuViewController setNewGameButton:] in MenuViewController.o
      -[MenuViewController setHowToPlayViewController:] in MenuViewController.o
      -[MenuViewController setOptionsViewController:] in MenuViewController.o
      -[MenuViewController setBasedOnATrueStoryImageView:] in MenuViewController.o
      -[MenuViewController setSplashImageView:] in MenuViewController.o
      -[MenuViewController setLogoImageView:] in MenuViewController.o
      -[MenuViewController setBackgroundImageView:] in MenuViewController.o
      -[OptionsViewController setBackButton:] in OptionsViewController.o
      -[OptionsViewController setBackstorySwitch:] in OptionsViewController.o
      -[OptionsViewController setBubbleThoughtsSwitch:] in OptionsViewController.o
      -[OptionsViewController setVibrateLabel:] in OptionsViewController.o
      -[OptionsViewController setVibrateSwitch:] in OptionsViewController.o
      -[OptionsViewController setSoundSwitch:] in OptionsViewController.o
      -[HowToPlayViewController setHowToPlayImageView:] in HowToPlayViewController.o
      -[HowToPlayViewController setBackButton:] in HowToPlayViewController.o
      -[HowToPlayViewController setNextButton:] in HowToPlayViewController.o
      -[HowToPlayViewController setPrevButton:] in HowToPlayViewController.o
      -[HowToPlayViewController setNextButtonView:] in HowToPlayViewController.o
      -[HowToPlayViewController setPrevButtonView:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage7:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage6:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage5:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage4:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage3:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage2:] in HowToPlayViewController.o
      -[HowToPlayViewController setHowToPlayImage1:] in HowToPlayViewController.o
  "_sqlite3_exec", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
  "_sqlite3_column_int", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
  "_exit", referenced from:
      start in crt1.10.5.o
  ".objc_class_name_CAMediaTimingFunction", referenced from:
      literal-pointer@__OBJC@__cls_refs@CAMediaTimingFunction in MenuViewController.o
  "_sqlite3_close", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
  "_sqlite3_step", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
  ".objc_class_name_NSBundle", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSBundle in MenuViewController.o
      literal-pointer@__OBJC@__cls_refs@NSBundle in HowToPlayViewController.o
  ".objc_class_name_UIColor", referenced from:
      literal-pointer@__OBJC@__cls_refs@UIColor in MenuViewController.o
  "_sqlite3_finalize", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
  "_UIApplicationWillResignActiveNotification", referenced from:
      _UIApplicationWillResignActiveNotification$non_lazy_ptr in MenuViewController.o
  ".objc_class_name_NSString", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSString in MenuViewController.o
  "_objc_msgSendSuper", referenced from:
      -[ChunderCatsAppDelegate dealloc] in ChunderCatsAppDelegate.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController didReceiveMemoryWarning] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[OptionsViewController initWithNibName:bundle:] in OptionsViewController.o
      -[OptionsViewController viewDidLoad] in OptionsViewController.o
      -[OptionsViewController didReceiveMemoryWarning] in OptionsViewController.o
      -[OptionsViewController dealloc] in OptionsViewController.o
      -[HowToPlayViewController initWithNibName:bundle:] in HowToPlayViewController.o
      -[HowToPlayViewController viewDidLoad] in HowToPlayViewController.o
      -[HowToPlayViewController didReceiveMemoryWarning] in HowToPlayViewController.o
      -[HowToPlayViewController dealloc] in HowToPlayViewController.o
      -[IntroViewController didReceiveMemoryWarning] in IntroViewController.o
      -[IntroViewController dealloc] in IntroViewController.o
  ".objc_class_name_UIImage", referenced from:
      literal-pointer@__OBJC@__cls_refs@UIImage in MenuViewController.o
      literal-pointer@__OBJC@__cls_refs@UIImage in HowToPlayViewController.o
  ".objc_class_name_NSAutoreleasePool", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in main.o
  "_sqlite3_open", referenced from:
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
  ".objc_class_name_NSTimer", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSTimer in MenuViewController.o
  "_UIApplicationWillTerminateNotification", referenced from:
      _UIApplicationWillTerminateNotification$non_lazy_ptr in MenuViewController.o
  "_NSSearchPathForDirectoriesInDomains", referenced from:
      -[MenuViewController dataFilePath] in MenuViewController.o
  "___CFConstantStringClassReference", referenced from:
      cfstring=MenuViewController in ChunderCatsAppDelegate.o
      cfstring=Init
 in MenuViewController.o
      cfstring=Failed to open database in MenuViewController.o
      cfstring=opened database: %@ in MenuViewController.o
      cfstring=CREATE TABLE IF NOT EXISTS FIELDS (ROW INTEGER PRIMARY KEY, FIELD_DATA REAL); in MenuViewController.o
      cfstring=Error creating table: %s in MenuViewController.o
      cfstring=executed: %@ in MenuViewController.o
      cfstring=SELECT ROW, FIELD_DATA FROM FIELDS ORDER BY ROW in MenuViewController.o
      cfstring=row=%d, value=%f in MenuViewController.o
      cfstring=png in MenuViewController.o
      cfstring=background-composite-left in MenuViewController.o
      cfstring=based-on-a-true-story in MenuViewController.o
      cfstring=splash in MenuViewController.o
      cfstring=intro-screen in MenuViewController.o
      cfstring=opacity in MenuViewController.o
      cfstring=name in MenuViewController.o
      cfstring=frame0Animation in MenuViewController.o
      cfstring=fadeOutAnimation in MenuViewController.o
      cfstring=frame1Animation in MenuViewController.o
      cfstring=fadeAnimation in MenuViewController.o
      cfstring=animation stopped: %@ in MenuViewController.o
      cfstring=frame2Animation in MenuViewController.o
      cfstring=[MainViewController] Received memory warning... in MenuViewController.o
      cfstring=application will resign active in MenuViewController.o
      cfstring=[MainViewController] applicationDidBecomeActive in MenuViewController.o
      cfstring=application will terminate in MenuViewController.o
      cfstring=YES in MenuViewController.o
      cfstring=NO in MenuViewController.o
      cfstring=Saving: soundOption=%@ in MenuViewController.o
      cfstring=INSERT OR REPLACE INTO FIELDS (ROW, FIELD_DATA) VALUES (%d, %f); in MenuViewController.o
      cfstring=Error updating tables: %s in MenuViewController.o
      cfstring=Saving: vibrateOption=%@ in MenuViewController.o
      cfstring=Saving: bubbleThoughts=%@ in MenuViewController.o
      cfstring=This device is: %@ in MenuViewController.o
      cfstring=iPhone in MenuViewController.o
      cfstring=data.sqlite3 in MenuViewController.o
      cfstring=new game in MenuViewController.o
      cfstring=resume game in MenuViewController.o
      cfstring=options in MenuViewController.o
      cfstring=OptionsViewController in MenuViewController.o
      cfstring=how to play in MenuViewController.o
      cfstring=HowToPlayViewController in MenuViewController.o
      cfstring=YES in OptionsViewController.o
      cfstring=NO in OptionsViewController.o
      cfstring=toggleSwitch = %@ in OptionsViewController.o
      cfstring=vibrateSwitch = %@ in OptionsViewController.o
      cfstring=bubbleThoughtsSwitch = %@ in OptionsViewController.o
      cfstring=backstorySwitch = %@ in OptionsViewController.o
      cfstring=png in HowToPlayViewController.o
      cfstring=how-to-play-01 in HowToPlayViewController.o
      cfstring=how-to-play-02 in HowToPlayViewController.o
      cfstring=how-to-play-03 in HowToPlayViewController.o
      cfstring=how-to-play-04 in HowToPlayViewController.o
      cfstring=how-to-play-05 in HowToPlayViewController.o
      cfstring=how-to-play-06 in HowToPlayViewController.o
      cfstring=how-to-play-07 in HowToPlayViewController.o
      cfstring=prev in HowToPlayViewController.o
      cfstring=next in HowToPlayViewController.o
  "_objc_msgSend", referenced from:
      _main in main.o
      _main in main.o
      _main in main.o
      -[ChunderCatsAppDelegate applicationDidFinishLaunching:] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate applicationDidFinishLaunching:] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate applicationDidFinishLaunching:] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate applicationDidFinishLaunching:] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate applicationDidFinishLaunching:] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate dealloc] in ChunderCatsAppDelegate.o
      -[ChunderCatsAppDelegate dealloc] in ChunderCatsAppDelegate.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController initWithNibName:bundle:] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewDidLoad] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController viewTimer:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController animationDidStop:finished:] in MenuViewController.o
      -[MenuViewController didReceiveMemoryWarning] in MenuViewController.o
      -[MenuViewController didReceiveMemoryWarning] in MenuViewController.o
      -[MenuViewController viewDidUnload] in MenuViewController.o
      -[MenuViewController viewDidUnload] in MenuViewController.o
      -[MenuViewController viewDidUnload] in MenuViewController.o
      -[MenuViewController viewDidUnload] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController dealloc] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController applicationWillTerminate:] in MenuViewController.o
      -[MenuViewController checkDevice] in MenuViewController.o
      -[MenuViewController checkDevice] in MenuViewController.o
      -[MenuViewController checkDevice] in MenuViewController.o
      -[MenuViewController dataFilePath] in MenuViewController.o
      -[MenuViewController dataFilePath] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController optionsButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[MenuViewController howToPlayButton:] in MenuViewController.o
      -[OptionsViewController viewDidLoad] in OptionsViewController.o
      -[OptionsViewController viewDidLoad] in OptionsViewController.o
      ...
4

4 回答 4

3

我今天刚刚为自己解决了这个问题。在这里查看我的答案:构建错误 - 文件中缺少所需的架构 i386

于 2009-09-23T16:48:51.733 回答
2

当它应该链接到 iPhoneSimulator.platform 时,它试图链接到 iPhoneOS.platform

当您展开链接构建结果时,您应该看到以下内容:

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/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk

我只能建议使用目标构建设置和项目构建设置的Base SDKiPhone 部署目标属性。

除此之外,我猜这是您的 XCode 安装而不是您的项目的问题。

于 2009-09-21T04:13:59.313 回答
0

您是否从 Apple iPhone 开发人员中心/页面/事物下载了新的 Xcode?Snow Leopard 附带的 Xcode 不附带 iPhone 库;这些只有在下载了非常大的 2+gig 开发人员包后才可用。

于 2009-09-21T03:16:03.753 回答
0

这是非常令人沮丧的。您可以将其他项目编译到模拟器吗?

在一个案例中,我最终开始了一个全新的项目,并把我所有的资产和文件都带了进去。这听起来很糟糕,但与试图隔离我为破坏它所做的一切相比,这并不痛苦。

于 2009-09-21T01:08:03.153 回答