compilation warning: no rule to process file for architecture i386

Objective CXcodeCocoa TouchCompiler Construction

Objective C Problem Overview


How can I resolve this warning?

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

Objective C Solutions


Solution 1 - Objective C

Click on your project, and check that this file is not present in the tab Build Phases. Normally no header files should stay here. Clean and build it again, it should work!

Solution 2 - Objective C

Graphical guide for Xcode 4.x to remove this warning:

http://joytek.blogspot.tw/2011/09/xcode-4-warning-no-rule-to-process-file.html

Solution 3 - Objective C

We can resolve this issue by simply following the steps below:- Some .md, .mdown .h files are included in the Compile Sources
Step 1) Select Project Navigator
Step 2) Select your project
Step 3) Select your targetStep
Step 4) Select Build PhasesStep
Step 5) Move files which we don't want the compiler to process from Compile Sources to Copy Bundle Resources

Check this

Solution 4 - Objective C

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"

Solution 5 - Objective C

My problem was't header files because under Target > Build Phases > Compile Resources there weren't any .h files to begin with. The system was complaining about some other files. I followed this link which basically said delete the files the system was complaining about but instead I cntrl + dragged them to Copy Bundle Resources.

The easiest way to search for the files is to use the Filter in the upper right hand corner:

enter image description here

Here are the directions from the link:

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSheehan AlamView Question on Stackoverflow
Solution 1 - Objective CGiuseppeView Answer on Stackoverflow
Solution 2 - Objective Ctzuchien.chiuView Answer on Stackoverflow
Solution 3 - Objective CSudheeshView Answer on Stackoverflow
Solution 4 - Objective CJon VogelView Answer on Stackoverflow
Solution 5 - Objective CLance SamariaView Answer on Stackoverflow