FAQ

Products / Plugins
Platform / Framework

How to deal with the error that occurred when archiving your app in Xcode?

Products / Plugins:AI Effects

Platform / Framework:iOS

Last updated:2021-09-26 15:15


How to deal with this error Undefined symbols for architecture armv7: "_OBJC_CLASS_$_ZegoEffects when archiving your app in Xcode?

Causes:

The Zego Effects SDK for iOS doesn't support the 32-bit armv7 architecture and only supports the 64-bit arm64 and x86_64 architectures. The following are the considerations behind this design decision.

  • Currently, the only three types of armv7 iOS devices that can be upgraded to iOS 10 are iPhone 5, iPhone 5c, and iPad (the 4th Generation). But running AI applications on these 32-bit devices is not ideal due to their low computing power.
  • The April 2021 iOS market share survey shows that the combined share of these 32-bit devices is less than 0.1%.
  • It's expected that Xcode will no longer support building 32-bit iOS apps in 2022.

Solutions:

  • If your app only needs to support iOS 11.0 or later, set the deployment target (the lowest iOS version that can run your app) to iOS 11.0 by doing the following:

    1. Select the project target
    2. Click Genaral > Depolyment info
    3. Change the deployment target to iOS 11.0.

    /Pics/ZegoEffects/Apple/effects_ios_target_os.png

  • If your app has to support iOS 10 or earlier:

    1. Select the project target
    2. Click Build Settings > Architectures
    3. Set Release to arm64.

    /Pics/ZegoEffects/Apple/effects_ios_release_arch.png

Page Directory
Download PDF