Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 需要解决方案如何解决此错误_Iphone_Xcode_Ios7_Ios5_Ios6 - Fatal编程技术网

Iphone 需要解决方案如何解决此错误

Iphone 需要解决方案如何解决此错误,iphone,xcode,ios7,ios5,ios6,Iphone,Xcode,Ios7,Ios5,Ios6,我不知道如何解决这个错误。 谁能告诉我解决办法吗 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 expor

我不知道如何解决这个错误。
谁能告诉我解决办法吗

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)

很可能您在应用程序中使用的框架/库没有模拟器编译组件

当您为模拟器构建应用程序时,您的应用程序是针对i386体系结构编译的(如果您使用64位,则为x86_64)。这意味着您使用的任何库或框架都必须包含在您希望为其构建的每个体系结构的二进制编译版本中

查找符号所在的框架,并在终端中运行此命令:

lipo -i /path/to/framerwork/binary

它将打印出编译成二进制的体系结构。如果i386不包括在内,您将无法在模拟器中使用它。如果它是您的框架,您可以为模拟器重新编译它,并创建一个包含ARM和i386二进制文件的“fat”二进制文件。如果不是您的框架,那么您必须向分销商索要一个与模拟器配合使用的版本。

我认为您缺少一些框架库