大佬教程收集整理的这篇文章主要介绍了objective-c – 编译pod时“在框架模块中包含非模块化头”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我使用命令编译我的pod时:
pod repo push myCocoapodsRepo myPodspec.podspec --allow-warnings --verbose
In file included from /var/folders/mx/cg3cmvh14wl2f3mnq0sc_cd00000gn/T/CocoaPods/Lint/Pods/RestKit/Code/ObjectMapping.h:21: /var/folders/mx/cg3cmvh14wl2f3mnq0sc_cd00000gn/T/CocoaPods/Lint/Pods/RestKit/Code/ObjectMapping/RKObjectMapping.h:23:9: error: include of non-modular header inside framework module 'RestKit.RKObjectMapping' [-Werror,-Wnon-modular-include-in-framework-module] #import "RKValueTransformers.h" ^
如果我依赖其他StackOverflow线程来解决这个错误,比如
> Swift compiler error: “non-modular header inside framework module”
> Include of non-modular header inside framework module
> XCode6: Receiving error “Include of non-modular header inside framework module”
他们都会说将CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES设置为YES和/或将有问题的头文件放在Public部分而不是Project部分,它将解决问题.但对我来说,事实并非如此.这些线程也有Swift语言的共同点,但我不使用它.我仍然只使用Objective-C,但我不知道它是否会对我的问题产生影响.
pod repo push myCocoapodsRepo myPodspec.podspec --allow-warnings --verbose --use-libraries
以上是大佬教程为你收集整理的objective-c – 编译pod时“在框架模块中包含非模块化头”全部内容,希望文章能够帮你解决objective-c – 编译pod时“在框架模块中包含非模块化头”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。