kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
781 stars 240 forks source link

zbarlight throwing error during build #922

Open subhashsharma opened 6 months ago

subhashsharma commented 6 months ago

Versions

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 commented 5 months ago

Hello,

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

cederom commented 5 months ago

The same here ;-)

cederom commented 5 months ago

What I noticed so far about recent Apple stuff:

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 :-)