0

I am working on xcode 6 and I create a static library, the application working fine on ios 8 but I got this problem Undefined symbols for architecture armv7 when I try to lunch the app on ios 7.

Can someone tell me why please?

Houssam
  • 125
  • 1
  • 12
  • 2
    It's probably because you're trying to run on a iPhone 4 or 5 that are armv7 (it does not depends on the iOS version). To run on those devices, your static library has to be compiled for both architecture. – KIDdAe May 04 '15 at 12:10
  • Clean project... delete derived data from organiser and try to build it again. – Ashok Londhe May 04 '15 at 12:34

1 Answers1

0

Select project target > Build Settings > Search for "VALID_ARCHS"

Check whether you've added armv7, if not, add it.


Further reading about "VALID_ARCHS", you can refer to THIS ANSWER.

Community
  • 1
  • 1
Kjuly
  • 34,476
  • 22
  • 104
  • 118
  • @HoussamHammoud how about the static lib u created? make sure both project & lib support the arch of ur device. – Kjuly May 04 '15 at 12:37
  • same also I added it, I used the library for many other apps but I face the problem only for this app – Houssam May 04 '15 at 12:38
  • @HoussamHammoud weird, what's ur device? – Kjuly May 04 '15 at 12:40
  • I have 2 device the iphone 5s (ios 8.2) the app work fine on it and iphone 4s (ios 7.1) here is the problem @kjuly – Houssam May 04 '15 at 12:41
  • @HoussamHammoud weird, can u offer more detail about the error? there're lots possibilities available for this type error: http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7 – Kjuly May 04 '15 at 12:44
  • Finally, it worked I only delete the Bolts.framework and the app now working fine.. I will accept your answer because you are trying helping me – Houssam May 04 '15 at 12:44
  • @HoussamHammoud cool, thx. seems the framework does not support the arch. nice catch :D – Kjuly May 04 '15 at 12:47