2014-06-20 5 views
-1

이 오류를 해결하는 방법을 모르겠다.
아무에게도 해결책을 알려주시겠습니까?해결 방법이 오류를 해결하는 방법

Ld /Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Products/Debug-iphonesimulator/SHY.app/SHY normal i386 
cd /Users/BSE-Pothi/Desktop/SHY 
export IPHONEOS_DEPLOYMENT_TARGET=7.0 
export 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/iPhoneSimulator7.1.sdk -L/Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Products/Debug-iphonesimulator -F/Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Products/Debug-iphonesimulator -filelist /Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Intermediates/SHY.build/Debug-iphonesimulator/SHY.build/Objects-normal/i386/SHY.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Intermediates/SHY.build/Debug-iphonesimulator/SHY.build/Objects-normal/i386/SHY_dependency_info.dat -o /Users/BSE-Pothi/Library/Developer/Xcode/DerivedData/SHY-bvernmxskqctscfrkgfpzjxkwywb/Build/Products/Debug-iphonesimulator/SHY.app/SHY 

Undefined symbols for architecture i386: 
    "_aspectFit", referenced from: 
     -[BSE_Add_Pro renderPageAtIndex:inContext:] in BSE_Add_Pro.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

프레임 워크 라이브러리가 누락되었다고 생각합니다. –

답변

1

시뮬레이터로 컴파일 된 구성 요소가없는 응용 프로그램에서 프레임 워크/라이브러리를 사용하고있는 것 같습니다.

시뮬레이터 용으로 빌드 할 때 앱은 i386 아키텍처 용으로 컴파일됩니다 (64 비트를 사용하는 경우 x86_64). 즉, 사용하려는 모든 라이브러리 또는 프레임 워크는 빌드하려는 각 아키텍처에 대해 바이너리 컴파일 버전에 포함해야합니다.

는 기호에서있는 프레임 워크를 찾아 터미널에서 다음 명령을 실행

lipo -i /path/to/framerwork/binary 

그리고 바이너리로 컴파일 된 아키텍처를 인쇄합니다. i386이 포함되어 있지 않으면 시뮬레이터에서 사용할 수 없습니다. 프레임 워크라면 시뮬레이터 용으로 다시 컴파일하고 ARM 및 i386 바이너리가 포함 된 '뚱뚱한'바이너리를 만들 수 있습니다. 프레임 워크가 아닌 경우 배포자에게 시뮬레이터와 함께 작동하는 버전을 요청해야합니다.