I’m using the ofxiPhone 007 pre-release on XCode 4.2, and had a lot of trouble creating an ad-hoc IPA file tonight. (On XCode 3 I had no problems creating these). I got this message when trying to share the Archive:
[Your App Name] does not contain a single-bundle application or contains multiple products.
Please select another archive, or adjust your scheme to create a single-bundle application.
I found a solution to this problem here, and adapted it a little bit to work for OF. Assuming you based your project on emptyExample or something like that.
Click on the iPhone+OF Lib.xcodeproject which should be a child of your Apps project.
Click on the Project iPhone+OF Lib and go to the Build Settings > Deployment. Set Skip Install to Yes.
Click on the Target iPhone+OF Static Library, go to the Build Settings > Deployment. Also set this Skip Install to Yes.
I’m having the same problem as you, an error re the missing libofxiphone file - how did you remove that link from the binaries? Did you simply remove the file in the finder, or did you change one of the project target link settings? I’ve looked at the project & OF library settings and can’t find a link to remove or edit, any help here would be much appreciated!
if i remember correctly this first bug, I had to sign my code using my iphone developer certificate and it worked.
In any cases, this worked:
I found a solution to this problem here, and adapted it a little bit to work for OF. Assuming you based your project on emptyExample or something like that.
Click on the iPhone+OF Lib.xcodeproject which should be a child of your Apps project.
Click on the Project iPhone+OF Lib and go to the Build Settings > Deployment. Set Skip Install to Yes.
Click on the Target iPhone+OF Static Library, go to the Build Settings > Deployment. Also set this Skip Install to Yes.