博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
'config.h' file not found 解决过程
阅读量:4662 次
发布时间:2019-06-09

本文共 1337 字,大约阅读时间需要 4 分钟。

最近将ReactNative业务集成进现有APP项目中,出现了几个具有代表性的问题,下面记录一下

问题1、

[!] CocoaPods could not find compatible versions for pod "React/RCTText":
  In Podfile:
    React/RCTText (from `./RN/node_modules/react-native`)
Specs satisfying the `React/RCTText (from `./RN/node_modules/react-native`)` dependency were found, but they required a higher minimum deployment target.
 
解决:将 platform :ios, '8.0' 改成:platform :ios, '9.0' 即可。
 
问题2、
[!] Unable to find host target(s) for *****Extension. Please add the host targets for the embedded targets to the Podfile.
Certain kinds of targets require a host target. A host target is a "parent" target which embeds a "child" target. These are example types of targets that need a host target:
- Framework
- App Extension
- Watch OS 1 Extension
- Messages Extension (except when used with a Messages Application)
 
解决过程1:网上有人说将cocoapods 降低一个版本,可以解决问题
 
$ gem list  查看安装的cocoapods 版本都有哪些
cocoapods (1.5.3, 1.3.1, 1.1.1)
$ pod _1.3.1_ install (无效)
$ pod _1.1.1_ install   (有效解决,但是会带来'config.h' file not found问题,并且无论怎么配置都没有用,项目始终报错。解决方案可以参考:)
 
解决过程2:经过思考问题应该不在podfile,想从Extension 入手解决。
 
   1、 打开XCode ,选择HOST target
   2、打开 target's 'General' 
   3、向下找到'Embedded Binaries',确定下 Extension target 是不是存在,如果存在的话,将其删掉,重新添加。如果不存在的话,需要添加。

 

 
之后,重新pod install 安装即可,一直困扰的'config.h' file not found 问题也解决了。

转载于:https://www.cnblogs.com/richard-youth/p/10345210.html

你可能感兴趣的文章
JS,JQ实现模拟暂停FOR循环,间隔几秒后再继续执行
查看>>
【转】MegaSAS RAID卡 BBU Learn Cycle周期的影响
查看>>
scrollLeft滚动(用animate替代)
查看>>
线段树 Raw code
查看>>
SQL点滴33—SQL中的字符串操作
查看>>
echo print() print_r() var_dump()的区别
查看>>
电子病历相关内容
查看>>
使用Astah Community建UML类图之总结
查看>>
Linux---more命令学习
查看>>
CentOS7使用firewalld打开关闭防火墙与端口
查看>>
线程池ThreadPool的初探
查看>>
flutter setInitialRoute: 不生效
查看>>
【bzoj3567】江南乐
查看>>
[每日电路图] 6、看一个步进电机驱动电路【转】
查看>>
5分钟让你掌握css3阴影、倒影、渐变小技巧!
查看>>
perl中的grep函数介绍
查看>>
OBS源码编译开发
查看>>
[jQuery]使用jQuery.Validate进行客户端验证(初级篇)——不使用微软验证控件的理由...
查看>>
试玩汇编语言 3:基础知识
查看>>
[导入]林志颖——为什么受伤的总是我 320k/mp3 (亲传)
查看>>