美文网首页
pod出现include of non-modular head

pod出现include of non-modular head

作者: yuditxj | 来源:发表于2017-05-01 20:02 被阅读270次

    今天打包pod 的时候 出现的错误

    ->AFNetworking+RX (3.1.0.18)

    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

    - ERROR | xcodebuild:  /Users/ceshi/Library/Developer/Xcode/DerivedData/App-dcmqgoyhfqucabaynpwawmnoksav/Build/Products/Release-iphonesimulator/AFNetworking+RX/AFNetworking_RX.framework/Headers/RXNetworkingConfigManager.h:10:9: error: include of non-modular header inside framework module 'AFNetworking_RX.RXNetworkingConfigManager' [-Werror,-Wnon-modular-include-in-framework-module]

    - ERROR | [iOS] xcodebuild:  /Users/ceshi/Library/Developer/Xcode/DerivedData/App-dcmqgoyhfqucabaynpwawmnoksav/Build/Products/Release-iphonesimulator/AFNetworking+RX/AFNetworking_RX.framework/Headers/RXSimpleHttpManager.h:10:9: error: include of non-modular header inside framework module 'AFNetworking_RX.RXSimpleHttpManager' [-Werror,-Wnon-modular-include-in-framework-module]

    - ERROR | [iOS] xcodebuild:  /Users/ceshi/Library/Developer/Xcode/DerivedData/App-dcmqgoyhfqucabaynpwawmnoksav/Build/Products/Release-iphonesimulator/AFNetworking+RX/AFNetworking_RX.framework/Headers/RXBaseRequest.h:10:9: error: include of non-modular header inside framework module 'AFNetworking_RX.RXBaseRequest' [-Werror,-Wnon-modular-include-in-framework-module]

    - NOTE  | [iOS] xcodebuild:  /var/folders/wg/p99zb3dx64q5gcg2zdjwxcgw0000gp/T/CocoaPods/Lint/App/main.m:3:9: fatal error: could not build module 'AFNetworking_RX'

    解决方法是:

    pod trunk push --verbose --allow-warnings --use-libraries

    相关文章

      网友评论

          本文标题:pod出现include of non-modular head

          本文链接:https://www.haomeiwen.com/subject/cdrqtxtx.html