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

zbarlight throwing error during build #922

Open
subhashsharma opened this issue May 5, 2024 · 3 comments
Open

zbarlight throwing error during build #922

subhashsharma opened this issue May 5, 2024 · 3 comments

Comments

@subhashsharma
Copy link

subhashsharma commented May 5, 2024

Versions

  • Python : Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
  • MacOS version : 14.4.1 (23E224)
  • XCode Version : Version 15.3 (15E204a)
  • Cython version : 0.29.36

Describe the bug
zbarlight build fails

To Reproduce
Clone recent version of kivy-ios from GitHub
Run using: python3 ./kivy-ios/toolchain.py build zbarlight

Expected behavior
// REPLACE ME: A clear and concise description of what you expected to happen.
The build should complete and give us a zbarlight library
Logs


[DEBUG   ] Linking: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -r -o build/lib.macosx-14.4-arm64-cpython-311/zbarlight/_zbarlight.cpython-311-darwin.so.o -ios_version_min 9.0 -arch arm64 build/temp.macosx-14.4-arm64-cpython-311/src/zbarlight/_zbarlight.o
[DEBUG   ] ld: building for iOS, but linking in object file built for iOS Simulator, file 'build/temp.macosx-14.4-arm64-cpython-311/src/zbarlight/_zbarlight.o'



  STDOUT:
Biglink will create library "/Users/subhash/Development/personal/ios/Kivy/mappo/ios/build/zbarlight/iphonesimulator-arm64/zbarlight-3.0/zbarlight.a" from dirs:
/Users/subhash/Development/personal/ios/Kivy/mappo/ios/build/zbarlight/iphonesimulator-arm64/zbarlight-3.0/build/lib.macosx-14.4-arm64-cpython-311/zbarlight
Traceback (most recent call last):
  File "/Users/subhash/Development/personal/ios/Kivy/mappo/ios/kivy-ios/kivy_ios/tools/biglink", line 77, in <module>
    main()
  File "/Users/subhash/Development/personal/ios/Kivy/mappo/ios/kivy-ios/kivy_ios/tools/biglink", line 67, in main
    assert not lib_names, (
AssertionError: We should have consumed all lib_names but {'_zbarlight'} remains
@LauraneLN
Copy link

Hello,

I have the same issue since I update my MacOS and Xcode

@cederom
Copy link

cederom commented May 23, 2024

The same here ;-)

@cederom
Copy link

cederom commented May 23, 2024

What I noticed so far about recent Apple stuff:

  • iPhone Simulator is buggy while app may work fine on a real phone.
  • Buildozer automates more stuff than manual toolchain run (i.e. provides all recipes from buildozer.spec).

Can you try running the Buildozer in order to get xcode project created and then open build that project with XCode? That path works best for me :-)

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

3 participants