Forum Archive

Including External Libraries / Multiple Python Files in XCODE Export

montedavis

I have the following challenge.

I have built an application in pythonista. It depends on some additional code that I have written, Jinja2, and BeautifulSoup4. It works in pythonista perfectly. (My first line on the main web-form adds a library directory to the sys.path where all of this code sits.)

When I select to export XCODE project, I get the project but when I hit run and the iOS simulator opens, I get an import error for the associated libraries.

Is there a specific way to export so that all the dependencies are also exported?

Is there a way to add these dependencies to the Xcode project manually?

Thanks,
Monte

montedavis

It looks like I got this working by adding files into Support Files / pylib in the Xcode project. I still have another problem. But that's another post.