Join GitHub today
build x86 version for simulator too #9
Because i don't always have the physical devices to test it on, it would be great to be able to test the apps on the xcode simulator.
It shouldnt be difficult to create a separate
But i don't get any idea how these two builds should integrate into the xcode project
Can you give some pointers/warnings ?
I would love to see a iOS Simulator compatible version of Kivy too.
I updated the build settings of the generated XCode project (updating the script that generates the XCode project makes more sense but...):
But the libraries built are not Universal, just armv7 it seems.
So I started working on building Python for i386 in hopes of then creating a Universal / fat library for use in the iOS Simulator.
Python is building but I am stuck on this:
I am certainly not an expert on building Python from source so any help would be appreciated!
referenced this issue
Feb 11, 2013
I got the same issue after trying to compile the i386 version, even with using the cross compilation approach.
just pushed iphonesimulator branch: https://github.com/kivy/kivy-ios/tree/iphonesimulator
the link command used by Xcode:
got it workin:
made changes to the build scripts in order to compile using iphonesimulator platform and arch i386.
open Xcode, adjust following project settings:
run the simulator....works!
I also had to change main.m to load main.py instead of main.pyo, and edit the populate-project script.
there is still a main.pyo created, but when I run the project, the simulator starts, quits right away with error:
not sure whats going on here yet...maybe i screwed up the host-python build somehow?
Actually, just leaving build setting on iPad, and using iPad simulator seems to work fine too :)
Now to figure out a good way to integrate doing the native and simulator build:
referenced this issue
Oct 28, 2013
I took the branch "iphonesimulator" code. The build was successful. When I'm running the Xcode project I'm getting following errors -
Undefined symbols for architecture i386:
In my build settings I set following -
Build Settings -> "Supported Platforms" should be "iOS" instead of "iphoneos"
I'm using -
Is the code ready for i386 based MAC OSX iPhone simulator? Or I'm doing something wrong?
I tried this too. It created the project OK, but it took me ages to find the Build Settings -> "Supported Platforms"
I haven't found 'General -> Deployment Info -> Device should be "iPhone" instead of "iPad"'
When I try to run it, I get (twice) "File /Users/cropleyb/Library/Developer/Xcode/DerivedData/tracer-gbmewstiiygtnyeuyuwmqyrgbbxt/Build/Products/Debug-iphonesimulator/tracer.app depends on itself. This target might include its own product."
To get around "This target might include its own product.", I followed the advice at http://stackoverflow.com/questions/7970794/how-to-fix-xcode-4-error-app-depends-on-itself-this-target-might-include-its-o and deleted the product. Now I'm hitting the same problem as atanudey above.