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

tvOS build fail saying lipo errors, but iOS and macOS pass, on Xcode 12 #3120

Closed
liuxuan30 opened this issue Jan 29, 2021 · 5 comments
Closed

Comments

@liuxuan30
Copy link

liuxuan30 commented Jan 29, 2021

  • carthage install method: [ ] .pkg, [X] homebrew, [ ] source
  • which carthage:homebrew
  • carthage version: 0.36.1
  • xcodebuild -version: Xcode12.0.1 & Xcode 12.4
  • Are you using --no-build? no
  • Are you using --no-use-binaries? yes, via carthage.sh
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no
  • Are you using --new-resolver? no

Hi there,

We have been using the cathrage.sh since Xcode 12 and it seems working great, but suddenly the tvOS failed starting in this month, but we changed nothing about the process.

And furthermore, iOS and CI passed at the same time, with same code and setup. It's really confusing for us how to fix it.

The full travis build record:https://travis-ci.org/github/danielgindi/Charts/builds/756550941

The error for tvOS build:

Processing Info.plist
▸ Running script 'Copy Carthage Frameworks'
❌  error: /Applications/Xcode-12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: one of -create, -thin <arch_type>, -extract <arch_type>, -remove <arch_type>, -replace <arch_type> <file_name>, -verify_arch <arch_type> ... , -archs, -info, or -detailed_info must be specified
Testing failed:
	/Applications/Xcode-12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: one of -create, -thin <arch_type>, -extract <arch_type>, -remove <arch_type>, -replace <arch_type> <file_name>, -verify_arch <arch_type> ... , -archs, -info, or -detailed_info must be specified
	Testing cancelled because the build failed.
** TEST FAILED **
The following build commands failed:
	PhaseScriptExecution Copy\ Carthage\ Frameworks /Users/travis/Library/Developer/Xcode/DerivedData/ChartsDemo-iOS-aeselevbqicktffmzvanvfzicpzm/Build/Intermediates.noindex/Charts.build/Debug-appletvsimulator/ChartsTests.build/Script-6BA68666BDA3FCF79C2A6801.sh
(1 failure)
rake aborted!

iOS passed: https://travis-ci.org/github/danielgindi/Charts/jobs/756550942
tvOS constantly fail: https://travis-ci.org/github/danielgindi/Charts/jobs/756550943

Our carthage script: https://github.com/danielgindi/Charts/blob/master/carthage.sh

the script we use: https://github.com/danielgindi/Charts/blob/master/.travis.yml

We have a script to run copy frameworks:https://github.com/danielgindi/Charts/blob/master/scripts/copy-carthage-frameworks.sh

Could anyone shed some lights?

@liuxuan30
Copy link
Author

liuxuan30 commented Feb 1, 2021

turning off xcpretty gives below:

    ......
    export XCODE_VERSION_MINOR\=1240
    export XPCSERVICES_FOLDER_PATH\=ChartsTests.xctest/XPCServices
    export YACC\=yacc
    export arch\=undefined_arch
    export diagnostic_message_length\=133
    export variant\=normal

/bin/sh -c /Users/xl/Library/Developer/Xcode/DerivedData/ChartsDemo-iOS-aumclvnnjijknmfjqpwftsmkrchx/Build/Intermediates.noindex/Charts.build/Debug-appletvsimulator/ChartsTests.build/Script-6BA68666BDA3FCF79C2A6801.sh
A shell task (/usr/bin/xcrun lipo /Users/xl/Development/GitHub/ios-charts/Carthage/Build/tvOS/FBSnapshotTestCase.framework//FBSnapshotTestCase -output /var/folders/8v/6dg7d6mx2850sv1gp8ts9thm0000gn/T/carthage-lipo-VZRwrb/FBSnapshotTestCase) failed with exit code 1:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: one of -create, -thin <arch_type>, -extract <arch_type>, -remove <arch_type>, -replace <arch_type> <file_name>, -verify_arch <arch_type> ... , -archs, -info, or -detailed_info must be specified
usage: lipo <input_file> <command> [<options> ...]
  command is one of:
    -archs
    -create
    -detailed_info
    -extract <arch_type> [-extract <arch_type> ...]
    -extract_family <arch_type> [-extract_family <arch_type> ...]
    -info
    -remove <arch_type> [-remove <arch_type> ...]
    -replace <arch_type> <file_name> [-replace <arch_type> <file_name> ...]
    -thin <arch_type>
    -verify_arch <arch_type> ...
  options are one or more of:
    -arch <arch_type> <input_file>
    -hideARM64
    -output <output_file>
    -segalign <arch_type> <alignment>



Test session results, code coverage, and logs:
	/Users/xl/Library/Developer/Xcode/DerivedData/ChartsDemo-iOS-aumclvnnjijknmfjqpwftsmkrchx/Logs/Test/Run-ChartsTests-2021.02.01_09-34-11-+0800.xcresult

Testing failed:
	/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: one of -create, -thin <arch_type>, -extract <arch_type>, -remove <arch_type>, -replace <arch_type> <file_name>, -verify_arch <arch_type> ... , -archs, -info, or -detailed_info must be specified
	Testing cancelled because the build failed.

** TEST FAILED **

it seems this error comes from carthage cannot run the command correctly for tvOS, but iOS is totally fine. Don't know why.

I wonder who is creating

A shell task (/usr/bin/xcrun lipo /Users/xl/Development/GitHub/ios-charts/Carthage/Build/tvOS/FBSnapshotTestCase.framework//FBSnapshotTestCase -output /var/folders/8v/6dg7d6mx2850sv1gp8ts9thm0000gn/T/carthage-lipo-VZRwrb/FBSnapshotTestCase)

@daveklotz
Copy link

Seeing the exact same thing, though it did not start until we moved to 0.37.0.

@danielrbrowne
Copy link

danielrbrowne commented Feb 11, 2021

I've seen this issue too - I flagged this on the (seemingly) related issue: #3112 (comment)

@liuxuan30
Copy link
Author

@danielrbrowne any idea why iOS is fine, tvOS suffers?

@elliottwilliams
Copy link
Contributor

I think this should be fixed as of #3155 and v0.38.0. Feel free to reopen if you're still having issues.

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

No branches or pull requests

4 participants