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
Related
I am trying to figure out how to change the hardware version and the device itself through the simulator on Xcode. Ever since downloading the new version of Xcode I don't have access to 5.0 software and so it is hard to continue on previous work whilst adapting to iOS 6. Does anyone know how to find and download it?
Go to Xcode ->Preferences->Downloads->Components.
There you can download previous simulators
I ran it fine, did all the certification hassle and my sister updates the iPhone and next day I can't test anything, Xcode doesn't simply recognize the damn iPhone. Please help. There is literally nothing I have found that solves this problem..
I should say that it worked fine a day ago. I'm so damn angry and frustrated I can't type..
Apple does a really really poor job of being clear what to do.
EDIT: I also see this "You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”."
What version of Xcode do you have and what iOS-version does the test-device have?
To test applications with Xcode 4.2.1, the device has to be of iOS 5.0.1 or down. If you updated to the iOS 5.1 beta, you will need to download Xcode 4.3 beta as well, as Xcode 4.2.1 does not have the required DeviceSupport-files for the beta.
EDIT:
Since you have Xcode 4.2, you will need to update to 4.2.1 to be able to test your applications on an iOS 5.0.1-device.
You'll need Xcode 4.2.1 if your iPhone is version 5.0.1.
I had the same problem,
Here is my solution!
First Update both Xcode and phone with the latest software.
Then go to the organizer and enable iPhone for development.
Done ..
I'm working with a legacy app with a deployment target of 3.0. I have a crash being reported on iOS 3.1.3 for iPhone. In xcode 4 the only 3.x simulator I see listed is iPad 3.2
How do I test iOS 3.1.3 for iPhone?
See Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs for an extended discussion of this topic. Also, links to older Xcode and iOS SDK versions can be found at http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/.
Buy a used iPhone or iPod Touch that has 3.1.3 installed and don't update the iOS on it. I have a 3G with 313, no cell service and just use it for testing on wifi. This is also useful to see check what the performance is like on a slower phone.
However, many 3.1.3 crashes are caused by using a 4.0 API call or object that is only in 4.0. You can find those problems on the 3.2 simulator.
It's not possible actually with Xcode4. If you can get old version of Xcode3.1 with iOS SDK 3.1 and install it side by side with Xcode4 then it may be possible.
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
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.