Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build under Titanium 11.1.1 fails with: binaries with multiple platforms are not supported #13

Open
narbs opened this issue Mar 3, 2023 · 0 comments

Comments

@narbs
Copy link

narbs commented Mar 3, 2023

This module hasn't been built in a while - the manifest is set to 8.0.0.GA.

Building the ti.testfairy module under Titanium 11.1.1 with:

ti build -b -p ios

fails with "binaries with multiple platforms are not supported" during the -create-xcframework step of the xcodebuild:

[INFO] Creating universal library
[INFO] Looking for /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/iphoneos.xcarchive/Products/usr/local/lib/libcom.testfairy.titestfairy.a
[INFO] Looking for /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/iphonesimulator.xcarchive/Products/usr/local/lib/libcom.testfairy.titestfairy.a
[DEBUG] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -create-xcframework -library /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/iphoneos.xcarchive/Products/usr/local/lib/libcom.testfairy.titestfairy.a -headers /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/dummyheader/ -library /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/iphonesimulator.xcarchive/Products/usr/local/lib/libcom.testfairy.titestfairy.a -headers /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/dummyheader/ -output /Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/com.testfairy.titestfairy.xcframework
[ERROR] Failed to generate universal binary (code 70):
[ERROR] error: binaries with multiple platforms are not supported '/Users/someuser/Downloads/ti.testfairy-2.60.0/ios/build/iphonesimulator.xcarchive/Products/usr/local/lib/libcom.testfairy.titestfairy.a'

I modified the module manifest to use just the required architectures and turn off catalyst:

architectures: arm64 x86_64
mac: false

Original architectures were:
architectures: armv7 arm64 i386 x86_64

TestFairySDK/libTestFairy.a reports:
$ lipo -info TestFairySDK/libTestFairy.a
Architectures in the fat file: TestFairySDK/libTestFairy.a are: armv7 i386 x86_64 arm64 arm64e

Error still happens after modifying manifest.

Tried removing unused architectures from libTestFairy.a:
armv7
i386
arm64e

After removing architectures:

$ lipo -info libTestFairy.a
Architectures in the fat file: libTestFairy.a are: x86_64 arm64

After rebuilding, the error still happens.

Also tried this process with the most TestFairySDK available for download (replacing the library available in the ti.testfairy module)

See build log attached.

Can anyone help to resolve this issue?

testfairy-module-compile-fail.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant