2

I am having trouble trying this project to iOS Simulator.

this is the screenshot of errors:

enter image description here

I have modified in Build Settings -> Build Active Architecture Only -> No

but nothing change...

I did not make this framework, but the person who did it, also sent me his Xcode's project where he says that everything works well.

I'm not noticing any difference between his and my project, and in fact if I try to start its project in the simulator encounter the same mistakes.

What am I missing? Thanks

Ilario
  • 5,979
  • 2
  • 32
  • 46
  • Could you provide output of this command: lipo -info ? – John Tracid Jul 29 '15 at 10:25
  • I would check your build phases/compile sources to make sure everything that should be compiled at run time is listed. – Mike Jul 29 '15 at 10:29
  • @JohnTracid terminal give me this error: can't map input file: ... (Invalid argument) – Ilario Jul 29 '15 at 10:33
  • @Mike what should I check in build phases/compile sources? Each framework is in – Ilario Jul 29 '15 at 10:34
  • How you execute lipo command? For example if I have MyFramework.framework I execute command like this: lipo -info MyFramework.framework/MyFramework. – John Tracid Jul 29 '15 at 10:35
  • @JohnTracid ok here: Architectures in the fat file: ... are: armv7 arm64 x86_64 – Ilario Jul 29 '15 at 10:39
  • @JohnTracid but I know that he use this framework on its simulator.. (i don't know what version of Xcode he has) how it is possible??? – Ilario Jul 29 '15 at 10:43

2 Answers2

1

You don't have i386 architecture in framework's fat library.

John Tracid
  • 3,836
  • 3
  • 22
  • 33
0

You should probably check the Build Phases of your project and check the Compile Sources in there. It should contain all your .m files. This might be the issue.

And also try to clean up the derived data of the project by going to Windows -> Projects, and select you project from the left pane and delete its derived data by clicking the delete button in the right pane of project details.

Asad Javed
  • 273
  • 4
  • 17
  • thanks for your answer, but in Build Phases i do't have any files .m relative to that framework, but i don't know how to get this file because in header of framework i can see only file .h – Ilario Jul 29 '15 at 11:07
  • Yep. The frameworks are never shipped with .m files. Because they contain the code. They are shipped with header files (.h) and a lib file (.a) perhaps. That is the binary and contains all the code which can't be viewed like normal .m files. So, what you should check here perhaps is that, in "Build Phases", under "Link Binary With Libraries" check if the framework is added in the list or that (.a) file that may be present in the framework. Also if there is any (.bundle) file, drag and drop it in the "Copy Bundle Resources" list in the project's "Build Phases". See if that helps. – Asad Javed Jul 30 '15 at 06:29