zoukankan      html  css  js  c++  java
  • library not found for -lstdc++.6.0.9

     

    d: warning: directory not found for option '-L/Users/whpc/Library/Developer/Xcode/DerivedData/InstallationPlatform-emxgvbriadwmiscbajbvqtdytnps/Build/Products/Debug-iphonesimulator/React'

    ld: library not found for -lstdc++.6.0.9

    clang: error: linker command failed with exit code 1 (use -v to see invocation)


    原因:Xcode10取消了6.0.9的支持

    最后贴一个最简单的办法,下一个lstdc++.6.0.9然后导入进去

     

    下载地址:链接:https://pan.baidu.com/s/1BxIiD0dUV23niB5kveLzpw  密码:fesb

    真机运行库

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

    模拟器运行库

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib

     

    然后重新编译

     

     

     

     

    运行之后又报这个:

    Thread 1: signal SIGABRT

    运行app卡在启动业

    dyld: Library not loaded: /usr/lib/libstdc++.6.dylib

      Referenced from: /Users/whpc/Library/Developer/CoreSimulator/Devices/4351BA96-06B3-4A2A-A77E-C919B58D6F52/data/Containers/Bundle/Application/428E07A1-CF1E-429A-96EA-D6070B64D60A/InstallationPlatform.app/InstallationPlatform

      Reason: no suitable image found.  Did find:

    /usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator

     

    链接:https://pan.baidu.com/s/1FXzljYn09ImZ8uE08uUH2Q  密码:ceij

     

    将下载的libstdc++.6.dylib和libstdc++.dylib文件放到下面目录中

     

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

     

  • 相关阅读:
    jmeter实现multipart/form-data类型请求
    jmeter(正则提取器、json提取器)做接口关联
    windows使用ubuntu启动linux服务
    Jmeter+Ant+Jenkins环境搭建
    ubuntu网卡驱动的安装
    Ubuntu 挂载U盘
    Linux下安装jdk8步骤详述(转载)
    springboot项目:项目部署
    springboot项目:Redis缓存使用
    springboot项目:Redis分布式锁的使用(模拟秒杀系统)
  • 原文地址:https://www.cnblogs.com/gznuhaoge/p/10108941.html
Copyright © 2011-2022 走看看