Welcome to the Pythonista Community Forums!

Pythonista is a Python programming environment for iOS. To learn more, head over to the Pythonista Website.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Building on XCode a Pythonista project as an stand alone application for iOS?
  • Hi,
    I have exported a project from Pythonista and tried it in XCode but I'm lost on what should I do in order to using it as an stand alone application on iOS, any hint/tutorial on this (I have tried to create a Target but without success). I would like to build it for my iPhone for example, is this possible right?
    Thanks in advance, and sorry if my english isn't good enough.

    ps: Love this App, is definitely the best App I have ever bought
  • You need to be a registered iOS developer to make this work. This costs $99 per year and you need to set up some things in order to authorize your devices for testing etc. I can't really help you much with that (it's a pretty complex topic), but if you have all these things set up, you should be able to just hit the "run" button in Xcode.
  • Hi OMZ, thanks for your answer,
    I'm already a registered iOS developer. I have done exactly what you sugest (set the desired target and running the project :), but the thing is, I am able to run the project in the iOS Simultaor but not in the actual device. When I set the target to my iPhone 4S, I get the following error output:

    ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/.../Pythonista_SampleProject/Pythonista/lib/libpythonista for architecture armv7s
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Any ideas of what could be happening?
    Thanks in advance.
  • Ah, sorry about that, it's a misconfiguration that slipped through in the last update, but it's pretty easy to fix:
    • Select the project in Xcode (the top-most item in the navigator)
    • Go to "Build Settings"
    • Double-click on the "Valid Architectures" setting (in the project column) and remove the armv7s entry from the list.
  • Wow, thanks a lot man!
    That did the trick :). Again, this is an enormous App. Congratulations for your work.