I have this message when I build my static library with Xcode "Error: META-INF/ANE/iPhone-ARM/libTest.a are required to have universal iOS libraries. Please contact the ANE developer(s)"
I selected "standard architecture" in build settings
lipo -info libtest.a return only ARM64
I use MacOS Mojave 10.14.3
You need to make sure you have specified all the valid architectures and are building them all in your build settings:
If you are using the command line tools to build you need to make sure you specify: ONLY_ACTIVE_ARCH=NO to ensure all architectures get built.
My build settings
How are you building your lib file?
Product > Build (my lib file is in the Release folder)
Do you use Xcode 10.1 ?
my ANE work if I add in the app description : iPhone > InfoAdditions
Check your target iOS version in Xcode project.
If is set to 11.0 then it will only produce arm64 as only arm64 devices can run 11.
Set it to 9.0 or 10.0 to get armv7 + arm64
It should match what you want to use in your infoAdditions.
I don't see target iOS version in Xcode project when I use a static library, where is-it in Xcode ?
It's the "iOS Deployment Target" on your project's "Info" tab.
When I create a Single View App, it's possible to change "iOS Deployment Target" but "General" tab is missing for a Static Library
Single View App project :
Static Library project :
Check the Build Settings tab.
I have only baseSDK "iOS" in the Build Settings, it's the latest version
You've got a "test" target selected, change that to your project and you should see the info tab.
In the top left of the centre window
You're right, it work, thanks.