2014-06-20 64 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二進制文件的'fat'二進制文件。如果它不是你的框架,那麼你必須向分銷商詢問一個適用於模擬器的版本。