QUICK VERSION: I have a code library for which I create a special Cocoapods file. For this, different architecture-based compiler flags are needed. Is it possible?
Explanatory information: One of the library files contains some embedded ARM NEON code. For armv7 and armv7s flags:
s.compiler_flags = '-mfloat-abi=softfp', '-mfpu=neon', '-mcpu=cortex-a9'
The last flag causes a (completely reasonable) compilation error on arm64.
Xcode supports flags for each architecture in the Build Options area, so this was great until the podspec shell was needed.
Is there a way to customize the CocoaPods specification with flags for each architecture?
cocoapods
Graham perks
source share