2012-06-08 47 views
0

最近我们已经完成了一个项目并将其更名并将类名更改为通用名称,以用作未来应用程序的模板。我们现在面临的问题是项目已经重新命名,它将不再运行。我们不断收到如下所示的错误。任何帮助将是伟大的!谢谢!重命名的项目不会运行

Ld "/Users/mejim707/Library/Developer/Xcode/DerivedData/AppTemplate_HD-enipxoysstcfkqevpmxrhtkwglhy/Build/Products/Debug-iphonesimulator/AppTemplate HD.app/AppTemplate HD" normal i386 
cd "/Users/mejim707/Desktop/untitled folder/AppTemplate HD" 
setenv MACOSX_DEPLOYMENT_TARGET 10.6 
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/mejim707/Library/Developer/Xcode/DerivedData/AppTemplate_HD-enipxoysstcfkqevpmxrhtkwglhy/Build/Products/Debug-iphonesimulator -F/Users/mejim707/Library/Developer/Xcode/DerivedData/AppTemplate_HD-enipxoysstcfkqevpmxrhtkwglhy/Build/Products/Debug-iphonesimulator -filelist "/Users/mejim707/Library/Developer/Xcode/DerivedData/AppTemplate_HD-enipxoysstcfkqevpmxrhtkwglhy/Build/Intermediates/AppTemplate HD.build/Debug-iphonesimulator/AppTemplate HD.build/Objects-normal/i386/AppTemplate HD.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200 -Xlinker -no_implicit_dylibs -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework AVFoundation -framework StoreKit -o "/Users/mejim707/Library/Developer/Xcode/DerivedData/AppTemplate_HD-enipxoysstcfkqevpmxrhtkwglhy/Build/Products/Debug-iphonesimulator/AppTemplate HD.app/AppTemplate HD" 

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

回答

1

检查您的构建阶段,然后编译源代码以查看是否存在尚未被调用的任何类。当我更改类名称或删除类时,我一直都会遇到该错误。

+0

需要将名为AppTemplateViewController.m的文件添加到编译源文件中!现在,该应用程序的构建没有问题。非常感谢您指点我正确的方向! – mejim707

+0

请将此答案标记为正确。如果没有,请写下您自己的回复并加入您的解决方案并标记为已回答。真诚的,你的友好邻居堆叠花。 – ezekielDFM