0
간단한 앱에서 작업 중이며 코드를 작성하는 동안 오류가 발생하지 않지만 빌드 버튼을 누르면 오류가 발생합니다. Build myProject : Failed, xCode가 두 가지 오류 경고를 표시합니다. 여기에 오류 메시지 : 여기, 뭔가를 발견하고Xcode 프로젝트 빌드 : 실패
Ld /Users/MacUser/Library/Developer/Xcode/DerivedData/Calculator-azorstixlscpikfhurtxwvvwachh/Build/Products/Debug-iphonesimulator/Calculator.app/Calculator normal i386
cd "/Users/MacUser/Downloads/Downloads/Desktop/old drop box/calc/Calculator"
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/MacUser/Library/Developer/Xcode/DerivedData/Calculator-azorstixlscpikfhurtxwvvwachh/Build/Products/Debug-iphonesimulator
-F/Users/MacUser/Library/Developer/Xcode/DerivedData/Calculator-azorstixlscpikfhurtxwvvwachh/Build/Products/Debug-iphonesimulator
-filelist /Users/MacUser/Library/Developer/Xcode/DerivedData/Calculator-azorstixlscpikfhurtxwvvwachh/Build/Intermediates/Calculator.build/Debug-iphonesimulator/Calculator.build/Objects-normal/i386/Calculator.LinkFileList
-mmacosx-version-min=10.6 -Xlinker
-objc_abi_version -Xlinker 2
-fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100
-framework UIKit -framework Foundation -framework CoreGraphics
-o /Users/MacUser/Library/Developer/Xcode/DerivedData/Calculator-azorstixlscpikfhurtxwvvwachh/Build/Products/Debug-iphonesimulator/Calculator.app/Calculator
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AxesDrawer", referenced from:
objc-class-ref in AxesView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
내 controller.m 코드 :
#import "AxesView.h"
#import "AxesDrawer.h"
@implementation AxesView
- (void)drawRect:(CGRect)rect
{
CGRect b;
b = self.bounds;
CGPoint aO;
aO = b.origin;
CGFloat pPU;
pPU = b.size.height;
[AxesDrawer drawAxesInRect:(CGRect)b originAtPoint:(CGPoint)aO scale:(CGFloat)pPU];
}
@end
난 내 AxesDrawer.h 파일에서 생각하는 문제,하지만 난 이유를 모르겠어 . AxesDrawer.h에서 AxesDrawer.m로 가져 오기를 변경하면 (내가 잘못 알고 있지만 테스트에만 적용됨) 프로젝트가 빌드되어 시뮬레이터에서 작동합니다. 누군가가 이걸 도와 줄 수 있습니까? 내가 뭘 잘못 했니?
감사합니다. iOS 개발을 처음 접했습니다. 감사. – user748634