XCode 4.2. issue: Standard (armv7)

我们两清 提交于 2019-12-04 09:57:10

It's better to downgrade back to stable version of SDK for Distribution builds. Apple even wrote about that in previous beta builds notes.

I partially fixed that problem by setting Architecture to "armv6 armv7". After that i could build universal binary, but simulator builds is broken. :)

The way we fixed ours was to go into the target build settings, select the Architectures list and select other... Then hit the "+" button to add your own called "armv6" without the quotes. Hit done, clean targets and archive.

Keep in mind that nothing needs to be "selected" in the Architectures list. It is only a list of architectures supported and should contain just two entries.

this is the best solution, yeahhh!

Select a "Architectures: Standard (armv7)" Select a "Other..." Select a "+" button add a "armv6" select a "Done"

Some back story for everyone seeing duplicate symbol errors and/or warnings about armv6 is missing.

  1. armv6 is required if your apps supports deployment targets below iOS 4.3.
  2. The latest Xcode 4.2 by default has architecture = $(ARCHS_STANDARD_32_BIT) which maps to armv7.
  3. Xcode 4.1 has the same env variable, but it map to armv6 and armv7.

Doing a armv6+armv7 in Xcode 4.2 requires some trickery...

A) add in "armv6" to the list of Architectures. However this breaks builds for Xcode 4.1 since "armv6" + $(ARCHS_STANDARD_32_BIT) = armv6 armv6 armv7 -> duplicate symbol errors

B) use the variable $(VALID_ARCHS) which maps to armv6 armv6 (and i386 for simulator builds)

Pawan

Remove all architecture from xcode then it will take arm v6 and arm v7.

  1. Select a "Architectures: Standard (armv7)"
  2. Select a "Other..."
  3. Select a "+" button
  4. add a "armv6"
  5. select a "Done"

Good luck

Remove environment variable $(ARCHS_STANDARD_32_BIT) from Architectures setting. The add "armv6" and "armv7" to the list of Architectures. If you're building your own libs - they need to have those settings too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!