Hi, I'm currently developing an application for iPhone and it works fine on the simulator. My problem is that the "run on device" button is always disabled even if all steps have been followed (I can put my app on device via XCode). Even so, the two certificates (normal and intermediate) are not detected: the lines stay on the Titanium window even if the certificates are on KeyChain.
Maybe a clue: when I open the project with XCode, I have to change manually the SDK from 4.0 to 4.2 to make it work. Otherwise I have a "Base SDK missing" on the XCode Window that prevents the build.
Do you have an Ad-Hoc provisioning profile installed? I'm wondering if it is looking for that.
On the XCode Base SDK missing, I always get that too. I believe it's because the base project is built on 4.0.
Yes I have: I can run my app on my iPhone if I use XCode to open the project and put it on the device. It means that all required steps are fulfilled. I don't think that Titanium is looking for the provisioning profile. It clearly shows that it is looking for the certificates (those are the only remaining links above the "run on device" button).
Ok I've had the same problem a long time, I noticed when I added a provision for Distribution Ad-Hoc and the whole problem was gone.
So try to add a distribution provision and see if it works.
Thank you for your answers. The problem disappeared suddenly after a complete rebuild (deleting the content of my build/iphone directory): in fact I'm not sure that it is the trigger, but the certificates have been recognized after that.
As this manipulation fixed a lot of problems I had, I think that Titanium should add a "Rebuild all" button on the interface that does the job. It would be easier and safer than deleting files manualy.
Personally, I've never had luck with using Titanium to build to my device or for distribution. I just open the project in Xcode, set my iOS sdk version and set the target to be a device, and do it that way. Same for distribution.
The only problem is if you do a rebuild, you have to re-open the project and sometimes re-do the target setting, but its still faster to me and not as buggy. All Titanium does is say something like "install error" and no helpful information.
Think you can help? Login to answer this question!