Have been testing our current project quite regularly by making development builds for our Apple Devices without any issues until now when I attempted to build for distribution via testFlight.
It reaches the final few steps of the build process and I get an error that swift libraries required by some plugins could not be bundled and the build fails. I have tried both Metal and non-Metal builds with the latest Solar2D build and an older one to no avail. With my development profile, the build goes through without issues.
The output on console where the process exits is below. I donât know much about native iOS development so any help will be appreciated.
Codesigning libswiftDispatch.dylib at /Users//Desktop/Zombie Escape.app/Frameworks
/usr/bin/xcrun ââtoolchainâ â/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchainâ âcodesignâ ââforceâ ââsignâ âD46917ED42B7A0E4F3B49E97AEA7DC6D2539CA37â ââverboseâ '/Users//Desktop/Zombie Escape.app/Frameworks/libswiftDispatch.dylibâ
Warning: unable to build chain to self-signed root for signer âiPhone Distribution: (***)â
/Users/shashwat/Desktop/Zombie Escape.app/Frameworks/libswiftDispatch.dylib: errSecInternalComponent
*** error: Couldnât codesign /Users//Desktop/Zombie Escape.app/Frameworks/libswiftDispatch.dylib: codesign failed with exit code 1
ERROR: build command failed: $(xcrun -f swift-stdlib-tool) --copy --verbose --sign D46917ED42B7A0E4F3B49E97AEA7DC6D2539CA37 --scan-executable "/Users//Desktop/Zombie Escape.app/Zombie Escape" --scan-folder â/Users//Desktop/Zombie Escape.app/Frameworks" --platform iphoneos --toolchain â/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchainâ --destination "/Users//Desktop/Zombie Escape.app/Frameworksâ --strip-bitcode --unsigned-destination â/var/folders/hh/c_kr1hs552q0jb07nngfr18h0000gn/T/CLtmpXXXXXX_SwiftSupport.Gpw6XGhI/SwiftSupportâ && find â/Users/______/Desktop/Zombie Escape.app/Frameworksâ -iname âlibSwift*.dylibâ -exec $(xcrun -f lipo) {} -remove arm64e -output {} ;
ERROR: with exit code 1 and output:
captureCommandOutput: cat /tmp/lua_GR2NWp
BUILD ERROR: ERROR: bundling Swift libraries required by plugins failed:
iOS build failed (2) after 88 seconds
ERROR: Build Failed: ERROR: bundling Swift libraries required by plugins failed: