kivy-ios toolchain giving build errors

942 views
Skip to first unread message

bearnun

unread,
Oct 4, 2016, 5:19:08 PM10/4/16
to Kivy users support
Hi,

I'm getting build error messages from this previously closed bug: https://github.com/kivy/kivy-ios/issues/201 (I do have the newest version of the toolchain that has the supposed fix in it)

I'm not sure what's going on, and am still poking around, but I wanted to point out that 'iOS prerequisites/requirements" are different in these three locations:


Which list should I be following?

ZenCODE

unread,
Oct 4, 2016, 5:36:02 PM10/4/16
to Kivy users support
I doubt it's to do with the packaging. Is the message the exact same? If you check the join(build_dir, "Python") path after the fact, does it exist? Perhaps print the path and it's contents to double check that link is created?

bearnun

unread,
Oct 4, 2016, 7:33:16 PM10/4/16
to Kivy users support
It looks effectively the same to me:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
ranlib libpython2.7.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
clang -Qunused-arguments -fcolor-diagnostics -lsqlite3 -lffi -L/Users/bearnun/Code/kivy-ios/dist/hostlibffi/usr/local/lib  -o python.exe \
Modules/python.o \
libpython2.7.a -ldl  -framework CoreFoundation -L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib -lz
ld: warning: directory not found for option '-L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib'
Undefined symbols for architecture x86_64:
  "_mkostemp", referenced from:
      _open_temp_exec_file_dir in libffi.a(closures.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-ios/recipes/hostpython/__init__.py", line 86, in install
    _env=build_env)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_2:

  RAN: '/usr/bin/make -C /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1 bininstall inclinstall'

  STDOUT:
Makefile:1392: warning: overriding commands for target `Modules/posixmodule.o'
Makefile:1284: warning: ignoring old commands for target `Modules/posixmodule.o'
Makefile:1393: warning: overriding commands for target `Modules/posixmodule.so'
Makefile:1285: warning: ignoring old commands for target `Modules/posixmodule.so'
Makefile:1394: warning: overriding commands for target `Modules/errnomodule.o'
Makefile:1286: warning: ignoring old commands for target `Modules/errnomodule.o'
Makefile:1395: warning: overriding commands for target `Modules/errnomodule.so'
Makefile:1287: warning: ignoring old commands for target `Modules/errnomodule.so'
Makefile:1396: warning: overriding commands for target `Modules/pwdmodule.o'
Makefile:1288: warning: ignor... (72937 more, please see e.stdout)

  STDERR:

~~~

Yep, I am checking the join(build_dir, "Python") location afterward, and it is in fact missing.

    ls: /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1/Python: No such file or directory

bearnun

unread,
Oct 5, 2016, 10:55:54 AM10/5/16
to Kivy users support
I tried a fresh clone/build and am getting this error:

Postbuild hostlibffi for x86_64
Download libffi
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 584, in execute
    self.download()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 613, in download
    self.download_file(self.url.format(version=self.version), fn)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 414, in download_file
    urlretrieve(url, filename, report_hook)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 558, in open_ftp
    (fp, retrlen) = self.ftpcache[key].retrfile(file, type)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 906, in retrfile
    conn, retrlen = self.ftp.ntransfercmd(cmd)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 334, in ntransfercmd
    host, port = self.makepasv()
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 312, in makepasv
    host, port = parse227(self.sendcmd('PASV'))
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 830, in parse227
    raise error_reply, resp
IOError: [Errno ftp error] 200 Type set to I

~~~

If I run ./toolchain.py build kivy again, I get the same build error as previously posted.  

Any ideas?  Thanks for your help.  ^_^

bearnun

unread,
Oct 5, 2016, 10:58:34 AM10/5/16
to Kivy users support
Looks like someone else had this issue recently:

https://groups.google.com/forum/embed/#!topic/kivy-users/J6ATazOgsCw

ZenCODE

unread,
Oct 5, 2016, 12:19:03 PM10/5/16
to Kivy users support
Yes, it does not look like the same error as the fixed one you initially referenced but this one. It mentions FTP. Have you tried on different networks? Perhaps it's a well hidden connection/firewall/limited connectivity issue?

bearnun

unread,
Oct 5, 2016, 12:40:25 PM10/5/16
to Kivy users support
I'm trying to build on a personal/home network that has no firewall up.  I will try another network and get back to you.

bearnun

unread,
Oct 5, 2016, 4:58:47 PM10/5/16
to Kivy users support
Just tried building kivy-ios on a different network.  I am still getting the same errors:

bearnun

unread,
Oct 5, 2016, 5:06:35 PM10/5/16
to Kivy users support
Also, if I enter "ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz" into my web browser(Chrome), I am able to download the file that way.  

ZenCODE

unread,
Oct 6, 2016, 1:43:14 AM10/6/16
to Kivy users support
Try putting that file in the hidden '.cache' folder? Or is it there already?

bearnun

unread,
Oct 6, 2016, 10:11:08 AM10/6/16
to Kivy users support
I was able to build the toolchain on an older environment on the same network.  But I still need to build the toolchain on my new environment, so any input is still welcome. :)

I'm guessing it has something to do with my environment setup (brew/pip installs, python install/path locations...?)  Like I said, the ios build prerequisites in the links I posted are not the same, so going over exactly what it should be would help me out.  

Thanks.

bearnun

unread,
Oct 6, 2016, 10:12:43 AM10/6/16
to Kivy users support
There is a hostlibffi-libffi-3.2.1.tar.gz in the hidden .cache file already -- maybe that is why if I rebuild after the libffi connection failure it will get past that install on the second try?

bearnun

unread,
Oct 6, 2016, 10:28:53 AM10/6/16
to Kivy users support
After reading this thread I'm wondering if it has to do with XCode/iOS10?  (Also, my old environment is running XCode 7.3, while the new one is XCode 8.0.)

bearnun

unread,
Oct 6, 2016, 11:40:35 AM10/6/16
to Kivy users support
If I just keep building kivy whenever I get an error, it seems to progress a little further each time, until I get to a point where it's trying to create a symlink to a file it created on a previous run.  Error messages on each run:

Postbuild hostlibffi for x86_64
Download libffi
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 584, in execute
    self.download()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 613, in download
    self.download_file(self.url.format(version=self.version), fn)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 414, in download_file
    urlretrieve(url, filename, report_hook)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 558, in open_ftp
    (fp, retrlen) = self.ftpcache[key].retrfile(file, type)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 906, in retrfile
    conn, retrlen = self.ftp.ntransfercmd(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 334, in ntransfercmd
    host, port = self.makepasv()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 312, in makepasv
    host, port = parse227(self.sendcmd('PASV'))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 830, in parse227
    raise error_reply, resp
IOError: [Errno ftp error] 200 Type set to I

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libffi is able to download and install without a problem on the next run
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ld: warning: directory not found for option '-L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib'
Undefined symbols for architecture x86_64:
  "_mkostemp", referenced from:
      _open_temp_exec_file_dir in libffi.a(closures.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ld: warning: directory not found for option '-L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib'
Undefined symbols for architecture x86_64:
  "_mkostemp", referenced from:
      _open_temp_exec_file_dir in libffi.a(closures.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-ios/recipes/hostpython/__init__.py", line 86, in install
    _env=build_env)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_2:

  RAN: '/usr/bin/make -C /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1 bininstall inclinstall'

  STDOUT:
Makefile:1392: warning: overriding commands for target `Modules/posixmodule.o'
Makefile:1284: warning: ignoring old commands for target `Modules/posixmodule.o'
Makefile:1393: warning: overriding commands for target `Modules/posixmodule.so'
Makefile:1285: warning: ignoring old commands for target `Modules/posixmodule.so'
Makefile:1394: warning: overriding commands for target `Modules/errnomodule.o'
Makefile:1286: warning: ignoring old commands for target `Modules/errnomodule.o'
Makefile:1395: warning: overriding commands for target `Modules/errnomodule.so'
Makefile:1287: warning: ignoring old commands for target `Modules/errnomodule.so'
Makefile:1396: warning: overriding commands for target `Modules/pwdmodule.o'
Makefile:1288: warning: ignor... (2797 more, please see e.stdout)

  STDERR:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I guess symlink creation works on the second try, but the build quits anyway?  Because on the third run, the file already exists.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Install hostpython
ln: /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1/Python/hostpython: File exists
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-ios/recipes/hostpython/__init__.py", line 82, in install
    join(build_dir, "Python"))
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_1:

  RAN: '/bin/ln -s /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1/hostpython /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1/Python'

  STDOUT:
ln: /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1/Python/hostpython: File exists


  STDERR:

ZenCODE

unread,
Oct 6, 2016, 3:13:19 PM10/6/16
to Kivy users support
So, if I read right, it errors because the link already exists. What if you comment out that line that creates it. Doesit get further?

bearnun

unread,
Oct 6, 2016, 5:53:43 PM10/6/16
to Kivy users support
I grepped around for the command that generates the "file already exists" error, but they all seem to be from binary files. :/

I also just found out Skype is not connecting on my machine --- connectivity issue; I will keep exploring that.  I'll let you know where I end up with that.  :)

bearnun

unread,
Oct 7, 2016, 10:41:10 AM10/7/16
to Kivy users support
I updated my OS to macOS Sierra 10.12...Skype now connects (but Skype connecting probably doesn't have to do with the OS update...?), but kivy-ios still won't build.  Here are my errors (Still making incremental steps by just building again):

checking size of uintptr_t... configure: error: in `/Users/bearnun/Code/kivy-ios/build/python/i386/Python-2.7.1':
configure: error: cannot compute sizeof (uintptr_t)
See `config.log' for more details.
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 673, in build_all
    self.build(arch)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 660, in build
    self.build_arch(arch)
  File "/Users/bearnun/Code/kivy-ios/recipes/python/__init__.py", line 53, in build_arch
    _env=build_env)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_77:

  RAN: '/Users/bearnun/Code/kivy-ios/build/python/i386/Python-2.7.1/configure CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld CFLAGS=-arch i386 -pipe -no-cpp-precomp --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -O3 -miphoneos-version-min=6.0.0 -I/Users/bearnun/Code/kivy-ios/dist/include/i386/freetype -I/Users/bearnun/Code/kivy-ios/dist/include/i386/hostlibffi -I/Users/bearnun/Code/kivy-ios/dist/include/i386/libffi -I/Users/bearnun/Code/kivy-ios/dist/include/common/sdl2 -I/Users/bearnun/Code/kivy-ios/dist/include/common/sdl2_image -I/Users/bearnun/Code/kivy-ios/dist/include/common/sdl2_mixer -I/Users/bearnun/Code/kivy-ios/dist/include/common/sdl2_ttf LDFLAGS=-arch i386 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -L/Users/bearnun/Code/kivy-ios/dist/lib -lsqlite3 -miphoneos-version-min=6.0.0 -undefined dynamic_lookup --without-pymalloc --disable-toolbox-glue --host=i386-apple-darwin --prefix=/python --with-system-ffi --without-doc-strings'

  STDOUT:
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking EXTRAPLATDIR... $(PLATMACDIRS)
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for i386-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files.... (14157 more, please see e.stdout)

  STDERR:

  NOTE: config.log is attached
config.log

bearnun

unread,
Oct 7, 2016, 11:05:54 AM10/7/16
to Kivy users support

pierre....@gmail.com

unread,
Oct 10, 2016, 5:21:40 PM10/10/16
to Kivy users support
Hi everyone,

I am experiencing the same issue (with FTP error). Please pardon my english if it sounds weird, I am not a native.

I am on a "fresh" OS X 10.11.6 with XCode 6.1 (I lost myself a little in installation issues between Xcode 8, then Xcode 6.1 because I already managed an successful build on a VM with that version... I am pretty sure I did get that FTP error on the 8th version too). With Xcode changing I removed the command line tools with a "rm -rf /Library/Developer/CommandLineTools/" and installed it again. As my configuration was possibly getting a little bit messy I thought I messed the thing up but it seems I am not alone.

Well here comes the end of the toolchain output (and then some ideas I have on it?):

=== INSTALL HEADERS FOR TARGET libffi-Mac OF PROJECT libffi WITH CONFIGURATION Release ===

Check dependencies

** INSTALL HEADERS SUCCEEDED **


Postbuild hostlibffi for x86_64
Download libffi
Downloading ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/tjmaxgov/Desktop/kivy-ios/toolchain.py", line 584, in execute
    self.download()
  File "/Users/tjmaxgov/Desktop/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/tjmaxgov/Desktop/kivy-ios/toolchain.py", line 613, in download
    self.download_file(self.url.format(version=self.version), fn)
  File "/Users/tjmaxgov/Desktop/kivy-ios/toolchain.py", line 414, in download_file
    urlretrieve(url, filename, report_hook)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 558, in open_ftp

    (fp, retrlen) = self.ftpcache[key].retrfile(file, type)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 906, in retrfile
    conn, retrlen = self.ftp.ntransfercmd(cmd)
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 334, in ntransfercmd
    host, port = self.makepasv()
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 312, in makepasv

    host, port = parse227(self.sendcmd('PASV'))
  File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 830, in parse227

    raise error_reply, resp
IOError: [Errno ftp error] 200 Type set to I

If I understood it well, and according to http://forums.serif.com/showthread.php?p=265671, it is a file type that has changed (involving a file being an Image instead of something else). I don't know about the toolchain internals but I am not sure it is a good idea to run the toolchain again counting on the cache to give the file (which has been downloaded if I am correct, but which is also suspicious. Further error messages could be undefined behaviors?).

Even though, I also run it again and it did went well (I then made a "git clean -dxf" and ran it again to have the original error). I am running the second one to see if it matches with bearnun's one.

I personnaly don't need a specific version of Xcode, I am just bound with the OS X version I guess (computer is freshly bought by the company for me to be able to release my app on the Apple Store... that said, I am completely newbie with this OS ^^). I will probably try to install it from scratch with Xcode 7.2 tomorrow.

pierre....@gmail.com

unread,
Oct 10, 2016, 6:38:36 PM10/10/16
to Kivy users support
Hi again,

I am confused, the toolchain ran completely on second attempt... I just rebooted the computer since last attempt (directly made after installation).

I managed to run a basic hello world label app and also printed a pyobjus "hello world" string during app build (I built pyobjus alongside kivy during the toolchain).

Sorry for that,
Pierre

ZenCODE

unread,
Oct 25, 2016, 3:46:17 PM10/25/16
to Kivy users support
@bearnun. Did you manage to sort this out? Or what error are you currently getting? We've just upgraded to Sierra and it all built fine for us :-)

bearnun

unread,
Oct 25, 2016, 4:24:51 PM10/25/16
to Kivy users support
No such luck. :/  I even tried putting my OS back to El Capitan, but am still getting all the same error msgs/behaviors as before.  

I've been relying on a previously successful build in the meantime.  I've been meaning to post this somewhere on the interwebs, in case anyone else needed it for building for iOS (I had to monkey with some things to make the app app-store compliant):

WHEN BUILDING FOR iOS:
1. Build project using the kivy-ios toolchain:

Usage:
./toolchain.py create <project_name> <pwd>

2. Set "Enable Bitcode" build pref to 'No'

// The following steps are to get the app app-store compliant //

3. Delete entry in 'Code Signing Resource Rules Path'

4. Run 'python kivy_ios_clean.py' in the kivy-ios directory in terminal. (Get script here: http://stackoverflow.com/questions/37191953/kivy-xcode-7-issue-build-and-archive-works-but-validation-fails)

5. Set bundle identifier

6. Set version/build number (this pairing must be unique on itunes connect)

7. Check the checkbox saying "Requires full screen" under "Status Bar Style."

8. Set icons in menu under "App Icon Source" (Add iPad icons)

9. Replace kivy's icon.png under Resources/ with app's icon.

ZenCODE

unread,
Oct 25, 2016, 4:51:12 PM10/25/16
to Kivy users support
Sorry, this has been a long post, so let's get back to basics. What is the exact error you currently get when you build?

bearnun

unread,
Oct 26, 2016, 4:28:16 PM10/26/16
to Kivy users support
These are currently my build errors:

First attempt:

Postbuild hostlibffi for x86_64
Download libffi
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 584, in execute
    self.download()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 613, in download
    self.download_file(self.url.format(version=self.version), fn)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 414, in download_file
    urlretrieve(url, filename, report_hook)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 558, in open_ftp
    (fp, retrlen) = self.ftpcache[key].retrfile(file, type)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 906, in retrfile
    conn, retrlen = self.ftp.ntransfercmd(cmd)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 334, in ntransfercmd
    host, port = self.makepasv()
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 312, in makepasv
    host, port = parse227(self.sendcmd('PASV'))
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ftplib.py", line 830, in parse227
    raise error_reply, resp
IOError: [Errno ftp error] 200 Type set to I

~~~

Second attempt:

bearnun/Code/kivy-ios/dist/hostpython/lib -lz
ld: warning: directory not found for option '-L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib'
Undefined symbols for architecture x86_64:
  "_mkostemp", referenced from:
      _open_temp_exec_file_dir in libffi.a(closures.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-ios/recipes/hostpython/__init__.py", line 86, in install
    _env=build_env)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_2:

  RAN: '/usr/bin/make -C /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1 bininstall inclinstall'

  STDOUT:
Makefile:1392: warning: overriding commands for target `Modules/posixmodule.o'
Makefile:1284: warning: ignoring old commands for target `Modules/posixmodule.o'
Makefile:1393: warning: overriding commands for target `Modules/posixmodule.so'
Makefile:1285: warning: ignoring old commands for target `Modules/posixmodule.so'
Makefile:1394: warning: overriding commands for target `Modules/errnomodule.o'
Makefile:1286: warning: ignoring old commands for target `Modules/errnomodule.o'
Makefile:1395: warning: overriding commands for target `Modules/errnomodule.so'
Makefile:1287: warning: ignoring old commands for target `Modules/errnomodule.so'
Makefile:1396: warning: overriding commands for target `Modules/pwdmodule.o'
Makefile:1288: warning: ignor... (72937 more, please see e.stdout)

  STDERR:

  ~~~

  bearnun/Code/kivy-ios/dist/hostpython/lib -lz
ld: warning: directory not found for option '-L/Users/bearnun/Code/kivy-ios/dist/hostpython/lib'
Undefined symbols for architecture x86_64:
  "_mkostemp", referenced from:
      _open_temp_exec_file_dir in libffi.a(closures.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-ios/recipes/hostpython/__init__.py", line 86, in install
    _env=build_env)
  File "/Users/bearnun/Code/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_2:

  RAN: '/usr/bin/make -C /Users/bearnun/Code/kivy-ios/build/hostpython/x86_64/Python-2.7.1 bininstall inclinstall'

  STDOUT:
Makefile:1392: warning: overriding commands for target `Modules/posixmodule.o'
Makefile:1284: warning: ignoring old commands for target `Modules/posixmodule.o'
Makefile:1393: warning: overriding commands for target `Modules/posixmodule.so'
Makefile:1285: warning: ignoring old commands for target `Modules/posixmodule.so'
Makefile:1394: warning: overriding commands for target `Modules/errnomodule.o'
Makefile:1286: warning: ignoring old commands for target `Modules/errnomodule.o'
Makefile:1395: warning: overriding commands for target `Modules/errnomodule.so'
Makefile:1287: warning: ignoring old commands for target `Modules/errnomodule.so'
Makefile:1396: warning: overriding commands for target `Modules/pwdmodule.o'
Makefile:1288: warning: ignor... (2797 more, please see e.stdout)

  STDERR:

ZenCODE

unread,
Oct 27, 2016, 3:08:49 AM10/27/16
to Kivy users support
We had the same error and I eventually got it built as follows:

1. Do a git clean -dxf
2. Run you build, making a note which files it downloads.
3. When you get this failure, download the file manually and place it in the .cache folder.
4. Copy the .cache folder.
5. Do a 'git clean -dxf'
6. Copy back the .cache folder.
7. Go to 2.

Our connection kept breaking downloaded files, but once it's in the cache, it never de-downloads it. So one needs to manually ensure all the files in .cache are valid and complete zips/tars.

Hope that helps?

pierre....@gmail.com

unread,
Oct 27, 2016, 3:35:55 AM10/27/16
to Kivy users support
I had the same issue on Xcode 8. with _mkostemp symbol for architecture x86_64 undefined (after the FTP err 200).

Went back to 7.3.1 (cleaning kivy-ios git and xcode-select /Library/Developer/CommandLineTools) and the second part worked (although the FTP error is still there).

So seems only related to the Xcode version? Maybe the file is specific to that version?

bearnun

unread,
Oct 28, 2016, 10:29:33 AM10/28/16
to Kivy users support
@ zencode I tried copy/pasting the entire .cache/ directory from my old environment (that built kivy-ios successfully) onto my new machine, but am still getting the hostpython errors.

@pierre I will try reverting XCode to version 7.3.1 and see if it fixes the issue. 

Thanks for the input. :)

bearnun

unread,
Oct 28, 2016, 10:30:19 AM10/28/16
to Kivy users support
@zencode, I also did try rebuilding and  git clean -dxf -ing as you suggested earlier. No such luck, hostpython still raises its ugly head. :/

pierre....@gmail.com

unread,
Oct 28, 2016, 12:38:32 PM10/28/16
to Kivy users support


@pierre I will try reverting XCode to version 7.3.1 and see if it fixes the issue. 


Don't forget to remove the command line tools and re-install it (I don't know if it does matter but I did ^^) :
  - sudo rm -rf /Library/Developer/CommandLineTools
  - <installation of Xcode>
  - xcode-select --install

If you really need to have Xcode 8 you can then reinstall the 8th version after you completely built kivy. I did this and it worked even if a direct installation of Xcode8 was unsuccessful :P (but this could lead to hazardous things I guess)

bearnun

unread,
Oct 28, 2016, 4:03:53 PM10/28/16
to Kivy users support
Tried downloading XCode 7.3.1 from here, but XCode hangs every time I click 'Ok' on the "XCode is an application downloaded from the internet, are you sure you want to continue?" dialogue box XCode hangs.  :/  


pierre....@gmail.com

unread,
Oct 28, 2016, 6:03:18 PM10/28/16
to Kivy users support


Le vendredi 28 octobre 2016 22:03:53 UTC+2, bearnun a écrit :
Tried downloading XCode 7.3.1 from here, but XCode hangs every time I click 'Ok' on the "XCode is an application downloaded from the internet, are you sure you want to continue?" dialogue box XCode hangs.  :/  



That's the right place to download it ^^. How long have you waited? Know that Xcode is a large application (around 10GB decompressed) so verify can take quite some time! On the computer I was given to work it took some minutes and it's an SSD... Maybe try to let it for an hour?

ZenCODE

unread,
Oct 29, 2016, 3:22:48 PM10/29/16
to Kivy users support
Which specific recipe is failing? List them and let me see if I can build them?

bearnun

unread,
Oct 30, 2016, 5:26:08 AM10/30/16
to Kivy users support
@pierre I will try using XCode 7.3.1 again.  The way it was hanging it looked more like a crash than a wait-time, unfortunately. :/

@zencode If the recipe is in the .cache directory does that guarantee that it built successfully?  hostpython-Python-2.7.1.tar.bz2 is the last package to be put into the .cache/ directory before I get the last error: 
 
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
Traceback (most recent call last):
  File "./toolchain.py", line 1311, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1082, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1106, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 974, in build_recipes
    recipe.execute()
  File "/Users/bearnun/Code/kivy-for-ios/kivy-ios/toolchain.py", line 586, in execute
    self.build_all()
  File "/Users/bearnun/Code/kivy-for-ios/kivy-ios/toolchain.py", line 56, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/bearnun/Code/kivy-for-ios/kivy-ios/toolchain.py", line 698, in build_all
    self.install()
  File "/Users/bearnun/Code/kivy-for-ios/kivy-ios/recipes/hostpython/__init__.py", line 86, in install
    _env=build_env)
  File "/Users/bearnun/Code/kivy-for-ios/kivy-ios/toolchain.py", line 39, in shprint
    for line in command(*args, **kwargs):
  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_2:

  RAN: '/usr/bin/make -C /Users/bearnun/Code/kivy-for-ios/kivy-ios/build/hostpython/x86_64/Python-2.7.1 bininstall inclinstall'

  STDOUT:
Makefile:1392: warning: overriding commands for target `Modules/posixmodule.o'
Makefile:1284: warning: ignoring old commands for target `Modules/posixmodule.o'
Makefile:1393: warning: overriding commands for target `Modules/posixmodule.so'
Makefile:1285: warning: ignoring old commands for target `Modules/posixmodule.so'
Makefile:1394: warning: overriding commands for target `Modules/errnomodule.o'
Makefile:1286: warning: ignoring old commands for target `Modules/errnomodule.o'
Makefile:1395: warning: overriding commands for target `Modules/errnomodule.so'
Makefile:1287: warning: ignoring old commands for target `Modules/errnomodule.so'
Makefile:1396: warning: overriding commands for target `Modules/pwdmodule.o'
Makefile:1288: warning: ignor... (75030 more, please see e.stdout)

  STDERR:

bearnun

unread,
Oct 30, 2016, 5:05:46 PM10/30/16
to Kivy users support
kivy-ios builds! :D

Thank @zencode and @pierre for your guys' input.

@pierre, it did seem to be caused by the version of XCode -- reverting to 1.7.3 seems to fix the it (although I still fail on the first try, the build succeeds on a second try)

I also used your suggested commands:

ZenCODE

unread,
Oct 31, 2016, 2:05:09 AM10/31/16
to Kivy users support
Grea :-). What solved it? I was going to offer to upload the binaries (libpython.a). And do you get console output in XCode when you run it?

pierre....@gmail.com

unread,
Oct 31, 2016, 6:03:13 AM10/31/16
to Kivy users support


Le lundi 31 octobre 2016 07:05:09 UTC+1, ZenCODE a écrit :
Grea :-). What solved it? I was going to offer to upload the binaries (libpython.a). And do you get console output in XCode when you run it?

Apparently he says that it is the version of Xcode that solved the issue. It was the same for me. But now I think he can upgrade the version of Xcode but he won't be able to build kivy-ios again if he does.

The mystery of build under Xcode 8 is still intact :P

bearnun

unread,
Oct 31, 2016, 10:44:35 AM10/31/16
to Kivy users support
Yes to all the things @pierre said.

Also, bearnun is a 'she'.  ^_^

ZenCODE

unread,
Oct 31, 2016, 3:07:29 PM10/31/16
to Kivy users support
Strange, I can build everything using XCode 8, but PyObjus breaks on iOS. dl_open fails loading the Foundation classes and I thus don't even get logs (NSLog is part of the foundation framework). And I have to use 8 as we have a crash only on iOS 10, which requires at least XCode 8 to debug. Apple are merciless...

But glad you got it running.. :-)

bearnun

unread,
Oct 31, 2016, 3:58:45 PM10/31/16
to Kivy users support
Well, I may have to jump back into getting this working for XCode 8 because: 

bearnun

unread,
Oct 31, 2016, 3:59:13 PM10/31/16
to Kivy users support
"For people who would have similar problems in the future, beware that this problem is fundamentally rooted in the mismatch of your iOS version and Xcode version.

Check the compatibility of iOS and Xcode."

bearnun

unread,
Oct 31, 2016, 4:03:54 PM10/31/16
to Kivy users support
The problems, they pile: 

I've always had to disable bitcode to get my app to run on a physical device, and I'm finding that that option is gone...  Is there a workaround for this or does kivy need an update to work with bitcode enabled?

Ryan Doherty

unread,
Oct 31, 2016, 6:55:40 PM10/31/16
to Kivy users support
I can confirm that for the Python recipe error, uninstalling XCode 8 and CLI tools, then installing XCode 7.3.1 and CLI tools fixes the problem. Is this bug being tracked? I'm not sure what project is ultimately responsible for it.

ZenCODE

unread,
Nov 1, 2016, 3:28:55 AM11/1/16
to Kivy users support
@bearnun. No, the option is still there? Using 8.0, under Build settings, Build options, it should be there?

pierre....@gmail.com

unread,
Nov 1, 2016, 5:36:17 AM11/1/16
to Kivy users support
I personnaly did get Xcode 8 but this is a little unstable:

  - get Xcode 7.3.1, install it and its CLI tools
  - build kivy, pyobjus, whatever with the toolchain
  - uninstall Xcode (and CLI ? I don't remember...)
  - install Xcode 8 (and its CLI ? don't remember too but if CLI is compatible you should be able to keep 7.3.1 version)

It allowed me to have a toolchain built with Xcode 7.3.1 and open generated projects with Xcode 8. The 'unstable' part is that you can't ever to the kivy build again. Maybe I did get the Xcode 8 CLI and that's why I was unable to build again? I will try it again with 7.3.1 CLI if I have some time ^^

bearnun

unread,
Nov 1, 2016, 10:00:31 AM11/1/16
to Kivy users support
@Ryan Doherty, Should a ticket be opened for this? 

@Zencode, Aha!  Thanks -- apparently my menus were set to 'basic' instead of 'all' (-_-'') so it was hiding a ton of options (shown here).

@pierre Cool!  ...I'm afraid to try it.  :P

ZenCODE

unread,
Nov 1, 2016, 2:42:13 PM11/1/16
to Kivy users support
 @bearnun. Yay! Shout if you hit any other blocks :-)

@Ryan Doherty. Probably, but as the issue changes on builds, it's difficult to create an 'actionable' ticket. I am currently working on an iOS 10 issue which breaks dlopen on Foundation classes and will re-visit these issue once that is done. Pierre is also experiencing issues which I hope this will fix...Gee, iOS is a lot of work :-)

bearnun

unread,
Nov 1, 2016, 3:19:38 PM11/1/16
to Kivy users support
@zencode, I followed: 

"Kivy uses SDL, and as soon as the application starts the SDL main, the launch image will disappear. To prevent that, you need to have 2 files named Default.pngand Default-Landscape.png, and put them in the Resources folder in Xcode (not in your application folder)"

...Created a Default.png and Default-Landscsape.png (and Default-Portrait.png, since it was there), but I'm still not seeing the launch image I created show up in the iOS simulator...Thoughts?

bearnun

unread,
Nov 1, 2016, 5:37:29 PM11/1/16
to Kivy users support
Nvm...I may have figured it out. (I think I need to handle all the various .pngs in the 'Resources' directory.  Will post full solution when finished.

ZenCODE

unread,
Nov 2, 2016, 2:14:36 AM11/2/16
to Kivy users support
Yes, you need launch images for each device, orientation and resolution. Our looks as follows. Google will give you the resolutions in the LaunchImages folder, but rather add them through the LaunchImage dialog in XCode. It does the naming and resolution checks for you .:-)

Defaul...@2x.png
Defaul...@2x.png
Defaul...@3x.png
Default-Landscape.png
Default-...@2x.png
Default-Portrait.png
Default-Portrait@2x~ipad.png
Default-...@3x.png
Default-Portrait@3x~ipad.png
Default.png
Def...@2x.png
Def...@3x.png

bearnun

unread,
Nov 2, 2016, 12:00:25 PM11/2/16
to Kivy users support
Check, ok.  All images have been created and the load screen works properly in the simulator, but now I have black bands showing up on the top and bottom of my kivy app...Any ideas what might be causing that?  Also, going to start a new thread for this, since it is unrelated to the toolchain.  

ZenCODE

unread,
Nov 7, 2016, 3:23:13 PM11/7/16
to Kivy users support
@bearnun. Sorry to resurrect an old issue, but it looks like this pull request may fix the building. https://github.com/kivy/kivy-ios/pull/214

I doubt it's possible for you to test now, but would have been nice to know...


Reply all
Reply to author
Forward
0 new messages