Kivy-ios/buildozer ios hostlibffi compiling issues - no scheme named "libffi-Mac"

69 views
Skip to first unread message

cmdn

unread,
Jun 11, 2019, 4:28:09 AM6/11/19
to Kivy users support
Hello! 

I'm currently trying to compile my app for iOS. I've both used kivy-ios alone and buildozer ios, but no matter what I try I keep getting hung up while it's preparing hostlibffi. If it changes anything, it works perfectly fine using buildozer for android, and runs well.

Xcode version: 7.3.1
Buildozer version: 0.40.dev0
libffi version: 3.2.1
python version (for build): 2 (since kivy-ios doesn't support 3 as far as I know)

Running "buildozer ios debug", "./toolchain.py build python2 kivy", or "./toolchain.py build hostlibffi" all end with the following error (this particular run is from Buildozer):

[INFO    ] Running Shell: /usr/bin/xcodebuild ('IDEBuildOperationMaxNumberOfConcurrentCompileTasks=4', 'ONLY_ACTIVE_ARCH=NO', 'ARCHS=x86_64', 'DSTROOT=/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/dist/hostlibffi', '-sdk', 'macosx', 'clean', 'build', 'installhdrs', 'install', '-project', 'libffi.xcodeproj', '-scheme', 'libffi-Mac', '-configuration', 'Release') {'_iter': True, '_out_bufsize': 1, '_err_to_out': True}

[DEBUG   ] Build settings from command line:

[DEBUG       ARCHS = x86_64

[DEBUG       DSTROOT = /Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/dist/hostlibffi

[DEBUG       IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 4

[DEBUG       ONLY_ACTIVE_ARCH = NO

[DEBUG       SDKROOT = macosx10.11

[DEBUG   ] 

[DEBUG   ] xcodebuild: error: The project named "libffi" does not contain a scheme named "libffi-Mac". The "-list" option can be used to find the names of the schemes in the project.

Traceback (most recent call last):

  File "./toolchain.py", line 1569, in <module>

    ToolchainCL()

  File "./toolchain.py", line 1284, in __init__

    getattr(self, args.command)()

  File "./toolchain.py", line 1325, in build

    build_recipes(args.recipe, ctx)

  File "./toolchain.py", line 1161, in build_recipes

    recipe.execute()

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/toolchain.py", line 728, in execute

    self.build_all()

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/recipes/hostlibffi/__init__.py", line 22, in build_all

    self.build(arch)

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/toolchain.py", line 84, in _cache_execution

    f(self, *args, **kwargs)

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/toolchain.py", line 810, in build

    self.build_arch(arch)

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/recipes/hostlibffi/__init__.py", line 61, in build_arch

    "-configuration", "Release")

  File "/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/toolchain.py", line 67, in shprint

    for line in cmd:

  File "./tools/external/sh.py", line 565, in next

    self.wait()

  File "./tools/external/sh.py", line 500, in wait

    self.handle_command_exit_code(exit_code)

  File "./tools/external/sh.py", line 516, in handle_command_exit_code

    raise exc(self.ran, self.process.stdout, self.process.stderr)

sh.ErrorReturnCode_65: 


  RAN: '/usr/bin/xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks=4 ONLY_ACTIVE_ARCH=NO ARCHS=x86_64 DSTROOT=/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/dist/hostlibffi -sdk macosx clean build installhdrs install -project libffi.xcodeproj -scheme libffi-Mac -configuration Release'


  STDOUT:

Build settings from command line:

    ARCHS = x86_64

    DSTROOT = /Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios/dist/hostlibffi

    IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 4

    ONLY_ACTIVE_ARCH = NO

    SDKROOT = macosx10.11


xcodebuild: error: The project named "libffi" does not contain a scheme named "libffi-Mac". The "-list" option can be used to find the names of the schemes in the project.



  STDERR:


# Command failed: ./toolchain.py build python2 kivy openssl

# ENVIRONMENT:

    VERSIONER_PYTHON_PREFER_32_BIT = 'no'

    TERM_PROGRAM_VERSION = '404'

    LOGNAME = 'user'

    USER = 'user'

    PATH = '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin'

    HOME = '/Users/user'

    TERM_PROGRAM = 'user'

    LANG = 'en_US.UTF-8'

    TERM = 'xterm-256color'

    Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.nmXJ8s1Xqg/Render'

    VERSIONER_PYTHON_VERSION = '2.7'

    SHLVL = '1'

    XPC_FLAGS = '0x0'

    TMPDIR = '/var/folders/sw/gtgpdprn4ns8zpk_j_nr6d940000gn/T/'

    TERM_SESSION_ID = '56A0FB4C-6ACF-4FF8-8A90-372DC37F2398'

    XPC_SERVICE_NAME = '0'

    SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.wO9Jdhae8k/Listeners'

    SHELL = '/bin/bash'

    _ = '/usr/local/bin/buildozer'

    OLDPWD = '/Users/user/Desktop/tempcleaned/.buildozer/ios/platform/kivy-ios'

    __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'

    PWD = '/Users/user/Desktop/tempcleaned'

# 

# Buildozer failed to execute the last command

# The error might be hidden in the log above this error

# Please read the full log, and search for it before

# raising an issue with buildozer itself.

# In case of a bug report, please add a full log with log_level = 2


Buildozer.spec includes:
requirements = python2, kivy, openssl 
(had to add python2 at the beginning to fix another error from toolchain.py, which said a version of python had to be compiled before compiling anything else - requests was manually added in source due to no recipe existing at this moment) 

Recipe order, as listed at the beginning of a buildozer build:
Recipe order is ['freetype', 'hostlibffi', 'libffi', 'sdl2', 'hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'ios', 'pyobjus', 'kivy']

Imports in main.py:
kivy, requests, json    # requests is manually included, no recipe exists for kivy-ios 

I've scoured the internet for any information regarding this, but can't find anything pertaining to the libffi-Mac scheme not being found. 

I've run this on two different Macs, one being El Capitan (latest bugfix) and High Sierra (also latest bugfix). All end with the same result. I've tried completely removing everything pertaining to it and retrying, clearing out kivy-ios and buildozer directories and reinstalling, and so on - but I always get stuck here. I've tried working on it for a few hours now, and I've just about tried everything I can think of. Any help is greatly appreciated.

If any more information is needed I'd be happy to provide it.

Thanks!

cmdn

unread,
Jun 11, 2019, 4:29:26 AM6/11/19
to Kivy users support
Also, I think I should mention that using the -list flag as it says to states that there are no schemes.
Reply all
Reply to author
Forward
0 new messages