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)
需要將名爲AppTemplateViewController.m的文件添加到編譯源文件中!現在,該應用程序的構建沒有問題。非常感謝您指點我正確的方向! – mejim707
請將此答案標記爲正確。如果沒有,請寫下您自己的回覆並加入您的解決方案並標記爲已回答。真誠的,你的友好鄰居堆疊花。 – ezekielDFM