Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/99.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.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
iOS5中的Json显示错误_Ios_Json_Compiler Errors - Fatal编程技术网

iOS5中的Json显示错误

iOS5中的Json显示错误,ios,json,compiler-errors,Ios,Json,Compiler Errors,我从下载的示例中获得了JSON框架文件。示例工作正常,但我的项目显示了上述错误。未找到架构i386的符号 上述错误发生在以下情况下: 您试图在iPhone/iPad模拟器中运行应用程序 该库仅构建为在物理设备上运行,不支持在模拟器中运行 要解决此问题,您需要将i386添加到SBJSON库构建目标的有效体系结构中,或者使用物理设备测试您的应用程序。未找到体系结构i386的符号 上述错误发生在以下情况下: 您试图在iPhone/iPad模拟器中运行应用程序 该库仅构建为在物理设备上运行,不支持在模拟

我从下载的示例中获得了JSON框架文件。示例工作正常,但我的项目显示了上述错误。

未找到架构i386的符号

上述错误发生在以下情况下:

  • 您试图在iPhone/iPad模拟器中运行应用程序
  • 该库仅构建为在物理设备上运行,不支持在模拟器中运行
  • 要解决此问题,您需要将
    i386
    添加到SBJSON库构建目标的有效体系结构中,或者使用物理设备测试您的应用程序。

    未找到体系结构i386的
    符号

    上述错误发生在以下情况下:

  • 您试图在iPhone/iPad模拟器中运行应用程序
  • 该库仅构建为在物理设备上运行,不支持在模拟器中运行

  • 要解决此问题,您需要将
    i386
    添加到SBJSON库构建目标的有效体系结构中,或者使用物理设备测试应用程序。

    您没有将SBJSON.m文件添加到目标中。选中此文件的“属性”面板,应该有一个复选框,指示将其分配给哪个目标。您可能根本忘了将SBJSON.m复制到项目中。

    您没有将SBJSON.m文件添加到目标中。选中此文件的“属性”面板,应该有一个复选框,指示将其分配给哪个目标。您可能根本忘了将SBJSON.m复制到项目中。

    转到Projectapp->Buildphases->compileSources

    这里添加带有+图标的JSON的所有.m文件。问题将得到解决

    转到Projectapp->Buildphases->compileSources


    这里添加带有+图标的JSON的所有.m文件。问题将得到解决

    此问题主要出现在您的类没有以正确的方式复制时。然后删除旧的并再次复制此问题主要出现在您的类没有以正确的方式复制时。然后删除旧的并再次复制如何将i386添加到SBJSON库的有效架构中?我刚刚复制并粘贴了JSON仅来自其他示例的框架文件..有问题吗?@darvidsOn非常感谢您..这对我来说有点奏效。问题是我没有使用ARC更新JSON框架..但现在我解决了我的问题。如何将i386添加到SBJSON库的有效架构中?我只是复制并粘贴了来自其他示例的JSON框架文件..有问题吗问题?@darvidsOn非常感谢你们……这对我来说有点奏效。问题是我没有用ARC更新JSON框架。但现在我解决了我的问题。
    "_OBJC_CLASS_$_SBJSON", referenced from:
    
    Objc-class-ref in JparseViewController.o
    
    Symbol(s) not found for architecture i386
    
    Clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    Ld /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator/Jparse.app/Jparse_armv7 armv7 i386
        cd "/Users/mag1/Documents/Xcode Projects/Jparse"
        setenv MACOSX_DEPLOYMENT_TARGET 10.6
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator -F/Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator -filelist /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Intermediates/Jparse.build/Debug-iphonesimulator/Jparse.build/Objects-armv7/i386/Jparse.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator/Jparse.app/Jparse_armv7
    
    Undefined symbols for architecture i386:
      "_OBJC_CLASS_$_SBJSON", referenced from:
          objc-class-ref in JparseViewController.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)