目标C:ARC错误(自动释放问题)
可能重复:
Xcode 4 Final – “armv6 armv7”问题,同时与armv6库链接
一切工作正常,直到我运行iOS 4.3.3我的实际电话configuration。 我有自动参考打开,所以我不必担心释放任何东西,但也许我做错了什么,不释放的概念对我来说是新的。 我得到这些伟大的错误:
Undefined symbols for architecture armv7: "_objc_storeStrong", referenced from: -[AppDelegate .cxx_destruct] in AppDelegate.o -[DistanceViewController .cxx_destruct] in DistanceViewController.o -[SlopeViewController .cxx_destruct] in SlopeViewController.o -[MidpointViewController .cxx_destruct] in MidpointViewController.o -[AreaViewController .cxx_destruct] in AreaViewController.o -[PerimeterViewController .cxx_destruct] in PerimeterViewController.o -[VolumeViewController .cxx_destruct] in VolumeViewController.o ... "_objc_retain", referenced from: +[__ARCLite__ load] in libarclite_iphoneos.a(arclite.o) -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o -[AppDelegate applicationWillResignActive:] in AppDelegate.o -[AppDelegate applicationDidEnterBackground:] in AppDelegate.o -[AppDelegate applicationWillEnterForeground:] in AppDelegate.o -[AppDelegate applicationDidBecomeActive:] in AppDelegate.o -[AppDelegate applicationWillTerminate:] in AppDelegate.o ... (maybe you meant: _objc_retainedObject) "_objc_release", referenced from: _main in main.o -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o -[AppDelegate applicationWillResignActive:] in AppDelegate.o -[AppDelegate applicationDidEnterBackground:] in AppDelegate.o -[AppDelegate applicationWillEnterForeground:] in AppDelegate.o -[AppDelegate applicationDidBecomeActive:] in AppDelegate.o -[AppDelegate applicationWillTerminate:] in AppDelegate.o ... "_objc_retainAutoreleasedReturnValue", referenced from: _main in main.o -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o -[ViewController alertView:clickedButtonAtIndex:] in ViewController.o -[ViewController viewDidLoad] in ViewController.o -[DistanceViewController done:] in DistanceViewController.o -[DistanceViewController solve:] in DistanceViewController.o -[DistanceViewController viewDidLoad] in DistanceViewController.o ... ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
这里是一个关于同样的事情的另一个问题的链接,它在这里解决了Stackoverflow因此,我希望这些信息将帮助你。 ARC错误