Xcode 8 - 无法在 ios10 中构建模块“CoreFoundation”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40524452/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8 - Could not build module 'CoreFoundation' in ios10
提问by Pramod
using Xcode 8
.iOS 10
使用Xcode 8
.iOS 10
Objective-C
目标-C
Pod file consist :- pod 'XMPPFramework'
Pod 文件包括:- Pod 'XMPPFramework'
i want to integrate XMPPFramework
in my project.
installed pods.
after installing pods when i open xWorkspace
. these errors comes.
我想集成XMPPFramework
到我的项目中。安装的豆荚。当我打开时安装 pods 后xWorkspace
。这些错误来了。
podfile :-
播客文件:-
Uncomment the next line to define a global platform for your project
取消注释下一行,为您的项目定义一个全球平台
platform :ios, ‘8.0'
平台:ios,'8.0'
target 'Roj' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks!
target 'Roj' do # 如果您使用 Swift 或想使用动态框架,请取消注释下一行 # use_frameworks!
# Pods for Roj
# Roj 的 Pod
pod 'XMPPFramework'
吊舱'XMPPFramework'
target 'RojTests' do inherit! :search_paths # Pods for testing end
目标“RojTests”确实继承了!:search_paths # 测试用的 Pods 结束
target 'RojUITests' do inherit! :search_paths # Pods for testing end
目标“RojUITests”确实继承了!:search_paths # 测试用的 Pods 结束
end
结尾
these are the errors which comes in my project see this image
这些是我的项目中出现的错误,请参阅此图片
回答by Ninja_Coder
You can resolve this issue by implementing following changes.
您可以通过实施以下更改来解决此问题。
1) Change the following flags in you Project's Build Settings.
1) 在项目的构建设置中更改以下标志。
2) Rename your module.modulemap files. Name them anything except module and then change the path of this renamed file in your Xcode.
2) 重命名你的 module.modulemap 文件。将它们命名为 module 以外的任何名称,然后在 Xcode 中更改此重命名文件的路径。
Clean it, Build it, it will resolve the issue.
清理它,构建它,它将解决问题。
P.S - Other compilation issues will get resolved automatically.
PS - 其他编译问题将自动解决。
回答by Nicolas Sturm
This may help:
这可能有帮助:
- Go to Build Settings
- Search for Compile Source As
- Set it to Objective-C++
- 转到构建设置
- 搜索编译源为
- 将其设置为 Objective-C++
See this issue: https://github.com/react-native-community/react-native-google-signin/issues/361#issuecomment-379013147
看到这个问题:https: //github.com/react-native-community/react-native-google-signin/issues/361#issuecomment-379013147