zoukankan      html  css  js  c++  java
  • 导入oc动态库(framework)到C++项目中混编出现的问题

    1.Could Not build module 'xxx'

    解决:change In target setting the "Allow Non-modular Includes in Framework modules" setting to YES.

    2.Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modul

    解决:在target-build settings - Apple Clang - Custom Compiler Flags ,将Other C++ Flags选项debug和release加上-fcxx-modules

    3.'string' file not found:

    解决:在target-build settings - Apple Clang - Language,将Compile Sources As改为Objective-C++

    4. [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `xxxxxx` to `Target Support Files/Pods-xxxxxx/Pods-xxxxxx.debug.xcconfig` or include the `Target Support Files/Pods-xxxxxx/Pods-xxxxxx.debug.xcconfig` in your build configuration (`ios/UserConfigIOS.debug.xcconfig`).

    解决:修改debug.xcconfig文件,增加

    #include "../Pods/Target Support Files/Pods-xxxxxx/Pods-xxxxxx.debug.xcconfig",xxxxx为targets名。

    release文件同样方式修改。

     

    5. Cannot synthesize weak property in file using manual reference counting

     解决:Weak Reference In Manual Retain Release 改为 YES

    6.Xcode fails to build: “Unable to resolve build file: XCBCore.BuildFile”

    解决:XCode > Preferences > Locations > Derived Data目录,删除模拟器缓存文件,退出xcode重新打开再编译

  • 相关阅读:
    性能学习总结
    xpath的不稳定性
    jenkins 打包时,提示字符不可映射字符
    jenkins 远程部署失败 控制台部署成功
    QTP ExecuteFile应用外部脚本时报“无效字符”错误_Ealge_新浪博客
    Tips:getroproperty调试可以通过,但是运行不可以
    在mac上搭建octopress+github pages博客
    SDWebImage源码分析
    提高XCode编译速度
    iOS app调试
  • 原文地址:https://www.cnblogs.com/hadyt/p/12419738.html
Copyright © 2011-2022 走看看