0

I am working on a project in which i imported external libraries but i endup with 169 erros when i run on simulator but this works perfect when i connect my iphone and build for it.

this

This is the screenshot of few errors i see in my xcode, I saw few questions here where they asked to change Architectures settings in Build setting

this is screenshot of my architecture setting

xcode architecture screenshot

As i am not able to run app on simulator due to this issues inspite trying various solutions on stack i still this many errors.

Please guide me.

Thank You

niravdesai21
  • 4,818
  • 3
  • 22
  • 33
  • Clear Derived data folder and try. – Wolverine Dec 06 '16 at 07:32
  • It is the problem with the library. It is built only for the `Device Specific Arch`. Check this link for more details http://stackoverflow.com/questions/18992840/how-to-check-if-a-static-library-is-built-for-64-bit second answer. – Sachin Vas Dec 06 '16 at 07:38
  • @New16 I saw few of my framework shows (armv7, armv7s, arm64) and some showing (i386, x86_64, armv7, armv7s, arm64), So how can i fix this to run in simulator. – niravdesai21 Dec 06 '16 at 07:53
  • You can't fix this, whoever built the framework should have done this. Check with them to get the proper framework. – Sachin Vas Dec 06 '16 at 07:55
  • @New16 you sure about this, that there is no other way that i can atleast make my app work in simulator ignoring (without removing them) the libraries which is causing trouble – niravdesai21 Dec 06 '16 at 08:08
  • Yeah, since you depend on those libs, your source code will contain those symbols. Create a new target to remove the source files where you use these symbols and remove those libs in this target. – Sachin Vas Dec 06 '16 at 08:12
  • @New16 Do you mean, that in a new git branch i remove this problem causing library and also its reference in my code? – niravdesai21 Dec 06 '16 at 08:15
  • Not in the git. XCode targets check this link https://www.raywenderlich.com/3716/unit-testing-tutorial-for-ios-xcode-4-quick-start-guide/ghunitsetup_006. – Sachin Vas Dec 06 '16 at 08:18
  • @New16 i will check this, but here how will i be able to do this as you mentioned in previous comment "to remove the source files where you use these symbols and remove those libs in this target." – niravdesai21 Dec 06 '16 at 08:22
  • You don't have to remove it manually. Just don't add those source files in build phases and don't add those frameworks to this particular target. – Sachin Vas Dec 06 '16 at 08:23

0 Answers0