compilation warning: no rule to process file for architecture i386

前端 未结 5 1802
清酒与你
清酒与你 2020-12-07 08:14

How can I resolve this warning?

[WARN]warning: no rule to process file \'$(PROJECT_DIR)/MyApp/MessageCell.h\' of type sourcecode.objj.h for archit

5条回答
  •  春和景丽
    2020-12-07 08:26

    If you are getting this warning from your cocoapod you ned to make sure the s.source_files is set correctly in the .podspec.

    For example I originally included all files with this line in my .podspec

    s.source_files = "MyUIElements/**/*"
    

    I was getting this compilation warning for some font files I had in the pod. You control which files show up in BuildPhases -> CompileSources on pod consumption like this:

    s.source_files = "MyUIElements/**/*.swift", "MyUIElements/**/*.h"
    

提交回复
热议问题