Illep
Illep

Reputation: 16841

Sending email in an iPhone application

I am getting this warning

MessageUI.framework/MessageUI, file was built for unsupported file format which is not the architecture being linked (i386)

What does it say ?

I have added the Message Framework by drag and dropping to my resources folder (I also selected the tick where it says copy the files or something). Is this the correct way to add a framework ? I tired R-clicking the resource folder, but I couldn't find any menu option that says add framework or anything similar. (I am using xcode 4.2)

Upvotes: 2

Views: 277

Answers (2)

rohan-patel
rohan-patel

Reputation: 5782

You have to manually add MessageUI framework in your project.

To do that follow this step:

1) Click on your main project --> Go to Target ---> Select Build Phases --> Select Link Binary With Libraries.

enter image description here

2) Click on + sign and add framework named MessageUI.framework.

enter image description here

Upvotes: 1

Allen
Allen

Reputation: 6505

you should add the framework through target setting, under build phases, under link binary with libraries, add messageUI.framework there, DO NOT drag and drop and COPY into the resource folder.

Upvotes: 2

Related Questions