openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 127 forks source link

IPAs build with Xcode 10.1 result in 'Invalid Swift Support' #401

Closed renep closed 5 years ago

renep commented 5 years ago

The embedded swift support libraries now are build with the archs armv7, arm64 and arm64e but the app itself is only build for armv7 and arm64. Therefor the arm64e architecture must be removed from the embedded libraries in the Payload/AppName.app/Frameworks directory.

This is done with e.g.: lipo libswiftsimd.dylib -remove arm64e -output libswiftsimd.dylib

So add that every arch is remove from the dylib that is not in the app binary.

To get the app binary archs run: lipo -info AppBinary