kivy-iOS Build Fails - What am I missing?

624 views
Skip to first unread message

NFG

unread,
Mar 29, 2017, 10:12:20 PM3/29/17
to Kivy users support
So I am following the information to build an iOS app here:


My app is extremely simple - A Carousel and some images, but unfortunately I am in a hurry to prove that Kivy is a feasible solution for requirements.

Frustratingly kivy-ios keeps dying with this error and I am at a loss since all the files reverenced are generated by kivy-ios.
Is there more prep that needs to be done?
Should I be trying to provide a manifest of some kind somewhere?
Is this some fault of my code?

I have no idea where to start. Can somebody push me in the right direction?

Error :

----------------------------------------------------------------------
The project need to have:
iOS
Frameworks: []
iOS
Libraries: []
iOS
local Frameworks: []
Libraries: []
Sources to link: []
----------------------------------------------------------------------
Analysis of /xxxxxxxxx/kivy-ios/mediademo-ios/mediademo.xcodeproj/project.pbxproj
2017-03-29 22:55:16.339 plutil[32549:894462] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 36. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
/xxxxxxxxx/kivy-ios/mediademo-ios/mediademo.xcodeproj/project.pbxproj: Property List error: Unexpected character / at line 1 / JSON error: JSON text did not start with array or object and option to allow fragments not set.


Traceback (most recent call last):
 
File "./toolchain.py", line 1318, in <module>
   
ToolchainCL()
 
File "./toolchain.py", line 1088, in __init__
    getattr
(self, args.command)()
 
File "./toolchain.py", line 1202, in create
    update_pbxproj
(filename)
 
File "./toolchain.py", line 1028, in update_pbxproj
   
group = project.get_or_create_group("Frameworks")
AttributeError: 'NoneType' object has no attribute 'get_or_create_group'



ZenCODE

unread,
Mar 29, 2017, 11:23:12 PM3/29/17
to Kivy users support
Okay, let's calm down and start from the beginning :-). What exact command have you entered? At what exact step of packaging did you get this error?

NFG

unread,
Mar 30, 2017, 12:16:07 AM3/30/17
to Kivy users support
I assure you I am very very calm.

Actually that error finally came down to a directory with an @ in its name causing confusion in the script.

Now xCode tells me that the build failed:

Command /bin/sh failed with exit code 24

So I clean the build folder and build again.

then it says:

/Users/me/Library/Developer/Xcode/DerivedData/mediademo-fobokzlfwmkiheficeutnuqlvjzz/Build/Intermediates/mediademo.build/Debug-iphonesimulator/mediademo.build/Script-113D17E2153E3DB5001310A6.sh: line 2: /Users/me/Documents/Aquarium/kivy-ios/dist/hostpython/bin/python: No such file or directory

Python is missing? I find that hard to believe.
Yet none of that path is there after ... /dist/

NFG

unread,
Mar 30, 2017, 10:45:14 AM3/30/17
to Kivy users support
So I determined that part of the problem was that the Xcode CLI tools were not installed correctly.
There is a disconnect there when running Xcode 8 with OSX El Capitan. There may be ways to make it work in El Capitan but I went ahead an upgraded to Sierra.
That fixed the CLI tools issue.

For the record the way to know if the CLI tools are wrong is to say
> brew doctor

Homebrew will tell you if the CLI tools are out of synch.

Now I did a fresh install of kivy-ios and rebuilt it. hostpython appeared in the directory. Hurrah!

Created my xCode project with:
../kivy-ios/toolchain.py create org.kivy.mediademo /Users/xxx/Documents/_Work/MediaDemo

This works

Open the project and build.

The first error is the same as before:

rsync warning: some files vanished before they could be transferred (code 24) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]

Command /bin/sh failed with exit code 24

From what I can tell the missing files appear to be various jpegs, so maybe I can ignore this?

Just for fun: Clean the build folder

Build again

kivy-ios/dist/root/python/lib: No such file or directory

So at the moment there is nothing in kivy-ios/dist/root/ 

Is this looking for the same set of files located in kivy-ios/dist/hostpython/lib ?

Can I just do a link to these files or copy them? 
Or is some other nefarious business at work here?


Worth mentioning is that there are four fatal errors during the build and they are all very similar:
checking whether cpp computation of bit length in ftconfig.in works... In file included from conftest.c:6:
./ftconfig.in:149:10: fatal error: 'errno.h' file not found
#include <errno.h>
         
^
1 error generated.


ZenCODE

unread,
Mar 30, 2017, 2:54:34 PM3/30/17
to Kivy users support
The line you posted for the 'create' command appears wrong. The docs clearly state you must be in the directory and run it using './toolchain.py create ...'. Try that?

NFG

unread,
Mar 30, 2017, 9:47:56 PM3/30/17
to Kivy users support
Thanks,

This time completely reloaded again just to be superstitious.

Re-ran the install on all the dependencies according to the guide https://kivy.org/docs/guide/packaging-ios.html
All seems correct.

>> brew install autoconf automake libtool pkg-config

Warning: autoconf-2.69 already installed
Warning: automake-1.15 already installed
Error: libtool-2.4.6 already installed
To install this version, first `brew unlink libtool`
Error: pkg-config-0.29.1_2 already installed
To install this version, first `brew unlink pkg-config`

>> pip -V

pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)

>> python -V

Python 2.7.13


I copied the procedure exactly from the guide from git clone to open and play.
All other errors were eliminated but this most pernicious one:

/kivy-ios/dist/root/python/lib: No such file or directory

/kivy-ios/dist/root/ is empty. 

On a faint hope I Disabled Bitcode, necessary but not related to this.
The error is the same.
What should I be finding in that folder?

NFG

unread,
Apr 1, 2017, 8:35:49 AM4/1/17
to Kivy users support
Can anybody tell me what is supposed to be in the folder /kivy-ios/dist/root/ after the Kivy build, or after xCode project creation?
For me the directory is empty. In the project it shows up under Resources as "lib" and marked red because it's missing.
What is this file?

I am thinking that this gets installed by this file here:
kivy-ios/build/hostpython/x86_64/Python-2.7.1/Lib/distutils/command/install_lib.py

My guess is that I can change an option and maybe force the point.
But haven't time right now to read through it.

Any ideas on what I might be looking for would be very helpful.
Message has been deleted

ZenCODE

unread,
Apr 13, 2017, 4:55:10 AM4/13/17
to Kivy users support
The a python folder, with header folder further down. But I'm not sure how that would help you.

Please post the full output of the command "./toolchain.py build kivy"

harryx...@gmail.com

unread,
Jul 31, 2017, 12:16:15 PM7/31/17
to Kivy users support
I encountered the same issue. Nothing in the folder /kivy-ios/dist/root. (the error is called PBXCp Error: .../kivy-ios/dist/root/python/lib: No such file or directory)
Also, in the project, under Resources, the file lib is marked red.

在 2017年4月13日星期四 UTC-4上午4:55:10,ZenCODE写道:

ZenCODE

unread,
Aug 2, 2017, 10:13:58 PM8/2/17
to Kivy users support
As mentioned, can't really help without the command and full output....
Reply all
Reply to author
Forward
0 new messages