1

My Problem is: After upgrade XCode, I found my project can't be build and run on test iPhone. I even check out my old commits in git repository, non of these commit can run on real iPhone which works before. It can build and run on simulator. It also can be archive.

enter image description here

I have checked other guys question, there is no answer can help me. I have added all dependent frameworks and static libs for my project and static lib. enter image description here

enter image description here

My Project build setting is:
enter image description here

My Targets Build Settings is:
enter image description here

Yi Jiang
  • 3,938
  • 6
  • 30
  • 62

1 Answers1

3

Your library:

libPushNotificationManager.a

Was built using another achitecture, which isn't compatible with armv7s. You need to remove the current library and rebuild it. You can also try to create a new scheme, or change the deployment target from 6.1 to 7+, although the issue is that particular library.

l'L'l
  • 44,951
  • 10
  • 95
  • 146
  • Yes, you are right. The armv7s cause the problem. I have removed arm7s from Valid Architectures. It works with iPhone 4s. But iPhone 5s got message:Undefined symbols for architecture armv7: "_OBJC_CLASS_$_PushNotificationManager", referenced from: – Yi Jiang Feb 07 '14 at 01:03
  • 1
    In that case you can try using the 6.1 SDK to build your project instead of the latest. Also, [you might want to read this](http://stackoverflow.com/a/18424373/499581) if you decide to go the route of using the older SDK. – l'L'l Feb 07 '14 at 01:13