iAd Test App is missing from the iPhone Simulator - iphone

I ran into a strange issue - iAd Tester app is no longer present in iPhone Simulator so I can't test iAds on it. I am using Xcode 3.2.4 with iOS 4.1 and iAd Framework 1.1.1. I tried re-installing the whole thing (Xcode and iAd package) and resetting the content of the simulator using command from the menu and manually deleting everything from ~/Library/Application Support/iPhone Simulator.
I think this happened after updating to latest Xcode a few weeks ago when everything worked fine. Any suggestions guys on where I am going wrong or missing something?
Developer Information:
Version: 3.2 (10M2309)
Location: /Developer
Applications:
Xcode: 3.2.4 (1708)
Interface Builder: 3.2.4 (804)
Instruments: 2.7 (3014)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.5: (9L31a)
10.6: (10M2309)
iPhone OS:
3.2: (7B500)
4.1: (8B117)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A306)
4.1: (8B117)
Your help is much appreciated.

Try switching the hardware version on the iPhone Simulator:
Hardware -> Version -> 4.0.1
You may lose all of your organizational folders but once I did this I found the iAd Tester app.

I think sometimes the Apple server is just variable in serving test ads. I have an app that serves test ads sometimes in the simulator but at other times never loads them. Perhaps this is Apple's way of testing the code so that it responds appropriately to errors.

same thing is happening to me. my colleague at work can see the iAd Test app, but he has a lower version of the iPhone simulator. Not sure how to downgrade though.
...edit...
found the app, it's on "page 2". obviously I am new to iphones, let alone iphone dev.
switching the OS as described in the other answer was necessary for me too

I got the same problem. Sometime my app doesn't display Ad correctly. But I post to AppStore, it passed the review process and I can see some requests from America.
You can see it with the link: http://itunes.apple.com/ie/artist/tubiv/id383457772

Related

Testing on iOS 3.1 simulator

iOS project. Base SDK 4.2, deployment target 3.0. A customer is complaining about an issue on iOS 3.1 (he has an old device).
I tried installing Xcode 3.2.3 - the oldest there is for download. It does not offer iOS 3.1 as a test target. Does anyone know how can I enable older versions of iOS on the simulator?
The box also has Xcode 4 (in a different folder). Could it be the case that they're sharing the iOS simulator, and the backwards-incompatible one from Xcode 4 is getting in the way?
There is no substitute for testing on a real device.
I've had a problem with my iPod touch (3rd gen, ios 5.0) crashing in one app. Every day. The dev won't buy, beg, borrow or steal a real iPod touch to test it on so he can fix it. As a user this is extremely frustrating.
EDIT:
The final versions of Xcode with the iPhone SDK, as it was called then, are not available from Apple's download page, but the direct links still work.
The direct links can be found at:
http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/
If you use the latest Xcode, you can install device debugging support via the Downloads->Components section, a la: http://cl.ly/3U1V1G3W2p2E1G29342e
http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html
Some of the links are dead though. Apple is removing those old files little by little. Get them while supplies last.

Xcode 4.2 iOS 5 SDK iPhone 3G not working?

I know that there are a lot of iPhone 3G / xcode4.2 questions on here but mine is strange;
I have XCode 4.2 w/iOS 5 SDK on my Snow Leopard macbook. I already tried changing the architectures and the required device capabilities, but the real problem is my iPhone will not provision.
In XCode i get the error " Xcode has encountered an unexpected error (0xC002)
No such file or directory, at ‘/SourceCache/DTDeviceKit/DTDeviceKit-867/DTDeviceKit/DTDeviceKit_Utilities.m:864’"
According to other questions I installed iOS 3.0/3.2.2 and iOS 4.0-4.1 debugging support but even after rebooting I still get the aforementioned error.
a screenshot of organizer/error http://img717.imageshack.us/img717/3960/screenshot20111227at913.png
Is there anything I'm missing?
If it would make a difference (i doubt) I'm doing jailbreak development. However I had the same error before I tried JB dev.
Thanks!
Your question is similar to this one: Jailbroken iPhone 3G with iOS 4.2.1 can't be debugged with XCode
You need a non-jailbroken device to collect debug symbols. After this you can use your device without any problems.
xCode doesnt support 4.2.1 , restore your device back , or test on a device other than 4.2.1 , 4.2 would be ok

Xcode deployment target

If my deployment target is set to iOS 4.1 and submitted to apple, and they test the app on iOS 4.3, would that cause the app to malfunction? My app was rejected for a bug that I am unable to recreate on my iPhone 4. The exact same device model they tested the app on. I simply cannot find the bug or error in my code. Any advice would be greatly appreciated.
If you build your app to target iOS 4.1 it should run on iOS 4.3. It's possible that your app does something that works on 4.1 but causes a problem on 4.3; I had that myself with an app already in the store, and had to post an update so it worked correctly under a newer iOS release.
Note that you can tell the iOS Simulator what version iOS to simulate: on the Hardware menu, select Version, and subsequent runs will be tested against that version of the system libraries.
The simulator is not a perfect reproduction of a real device, but hopefully you can do this to reproduce the behavior that Apple has seen on their devices.
Did you test it on your iPhone 4 with iOS 4.3? There's two parts to the puzzle. If they rejected it for crashing under iPhone 4, you have to check all the different iOS versions you claim to support. The target iOS 4.1 should still make it work on 4.3, you just might have a crash (which apparently you do). Through testing with that actual software version on your iPhone, you'll find the bug and hopefully squash it. Good luck!

Issues with iOS 4.2 (working on 4.1, 4.3 and 4.2.1)

I have an app that is working fine on my physical device running 4.2.1 iOS.
On the emulator it works fine in 4.1 and 4.3.. however if I try to run the app on the 4.2 emulator, some interface elements (buttons, segmented controllers etc) do not appear, at all.
I have tried changing the build targets to 4.1 and 4.2 to no avail.
I am beyond confused, obviously if I build with a 4.3 target, I can no longer run on my physical device, but if I have it set to 4.2 or 4.1 I can run it on my device running 4.2.1 no problem. Also if I build with 4.1 as the target I can run it on my 4.1 emulator as well with no problem. The problem seems purely on the 4.2 iOS emulator.
Is this a known issue? Is there something I need to worry about? What, if anything, can I do here?
is the 4.2 emulator just screwed up?
Each of the iphone simulator versions keeps its own copies of the app. try deleting the app's directory from ~/Library/Application\ Support/iPhone\ Simulator/4.2, it is possible that the nib changed, but isn't being copied in for some reason... do a clean before you build.
I am an app developer of 2 years and I can assure you if it works on the other two builds and not 4.2 the emulator is glitching... This happens alot on my apps but they always work on the phone itself. Apple will still approve your app and it will still load on other people's phones no matter what software version they have (for 4.0 +)
Don't sweat it ;)

downgrading iPhone 3GS iOS4 to OS3

I'm working on an iphone project for OS3.1.3. I updated my iPhone to iOS4 and now I can't test my project on my iPhone anymore. I tried downgrading but get "device not eligible"
What should I do now?
If I download latest XCode SDK4 will I be able to recreate my app so that it runs both on OS3 and OS4 ? It has no specific os4 features.. it should just run on both and want to test it on real iphone with os4..
Greets
First of all, downgrading your phone won't work. at least not with the "official" approach. I think once there is a Jailbreak for iOS4, downgrading your phone should be possible again.
Secondly, Creating an iOS app with XCode SDK4 that runs on your 3.x devices is no problem at all:
Just set the "iPhone OS Deployment Target" Value (Target -> Info -> Build) to "iPhone OS 3.0"
You can build with SDK4 and still target older devices running iOS 3.2 or earlier. How to do this is covered in detail in this other question here.
You can downgrade your phone OS, that's covered in this question over here.
But really the best approach is to update Xcode, compile with SDK4 and support earlier iOS versions as well.
I'm in the same situation.
What is the best ?
1 Upgrade to SDK4 and still target on IOS 3.xx . Will iPhone ios 3.1.3 users be able to download apps built with SDK4 . I don't think so.
2 Downgrade ios4 to ios3 and still work with SDK3.
PS : Someone suggested to get the lastest SDK
You can downgrade iPhones, iPod touches and iPads.
Instructions are here. If for instance you're downgrading a second generation iPod Touch from iOS4 to iOS3.1.3 you'll need the iPod2,1_3.1.3_7E18_Restore.ipsw firmware. A Google search will bring these things up.
Some downgrading references ask you to modify a "hosts" file. I don't think this is necessary, I downgraded from iOS4.2 to iOS3.0 (and to iOS2.0 for fun) without having to do this.
Good luck.