iPad does not show in xcode - xcode

I have just updated my iPad with iOS 5 and now when I am connecting my device to my macbook it does not appear in xcode. It used to appear in xcode earlier when I had not updated my iPad but now it just does not show in xcode. can someone please help me?
Thanks
Pankaj

I didn't knew after updation of os in iPad i had t again make changes through Organiser and click on button use for development. I just did it and it started working. :):)

there is an option called use for development.You have to do that now.

Related

Xcode 12 - Storyboard screens showing up empty/black (using m1 macbook)

We have tried both iOS 14 and 13. In both cases, the storyboard screens show up like this.
Has anyone else faced this issue and was able to solve it? Or should we revert back to xcode 11 or 10 in order to solve this?
Empty storyboard screens
I have similar issue with Xcode 12.4 on M1 Macbook Pro. As a workaround disable Rosetta Mode when working with storyboard. Follow the below steps
Quit Xcode and open finder and go to Applications folder
Right click on Xcode App and select Get Info
Uncheck "Open using Rosetta" option
Open Xcode, storyboard will work now
Note: With Rosetta Disabled, I wasn't able to build/run the app. So I was toggling the Rosetta mode. I think Apple will fix it sooner.
UPDATE
Xcode 12.5+ fixed this issue.
I tried on Xcode 12.5 beta on my M1 pro is work well. That's Xcode issue with 12.4 on M1.
Selected a device from the list in Device in Xcode fixed it for me:
Tap Device:
Then select a device:

Xcode 11 can't launch CarPlay audio application

In Xcode 11 GM Version can't launch Car Play audio application in the simulator.
Simulator stuck on the loading screen, then show "Unable to connect" error. Sometimes shows only black screen or crash on app launch.
While debugging, I see that methods from MPPlayableContentDataSource and MPPlayableContentDelegate won't fire. On Xcode 10 all work fine, so it's looks like some bug in new Xcode 11. Maybe someone knows how to solve this problem?
Thanks indeed.
I submitted a radar (FB7514196) to Apple.
You can see a copy of the radar here: https://openradar.appspot.com/radar?id=4997629368860672
Just installed Xcode 11.3 and I'm still having this problem. Contacted Apple via the Feedback Assistant and the response was:
Please ensure you're providing a prompt response to
MPPlayableContentDelegate and MPPlayableContentDataSource when you app
launches on the car screen. You have a few seconds after launch before
we show this timeout screen.
The first thing I do when starting the app is to set up this delegate and data source, so that's not the issue. Maybe something related to setting up CarPlay changed in the iOS 13 SDK.
Xcode 11 and Xcode 11.1 seem to contain a broken CarPlay implementation. Xcode 11.2 (beta-1) seems to work much better here. That said, the CarPlay simulator is finicky anyways and you should really use a real head unit to test your programs. I have found simply closing and reopening the CarPlay simulator to help with many issues, btw.
Still the same issue here with XCode 11.2.1
Anybody found a solution?
The CarPlay simulator has always been a total disgrace - for years!

Xcode 10 storyboard UI components are not visible and painfully slow?

My code was working fine (showing UI properly) when I had Xcode 9 and I removed it from the application folder (could not update as it had installed using another apple id) and reinstall the Xcode 10 from the Appstore.
Now Xcode storyboard not showing any added UI elements colors or anything and I removed Xcode 10 and installed Xcode 9 again but problem remains same.
UI screen shot of storyboard.
I tried removing Xcode in this way:
/Applications/Xcode.app
/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode
~/Library/Application Support/Xcode
~/Library/Developer/Xcode
~/Library/Developer/CoreSimulator
Then I tried installing macOs Mojave and install XCode 10 again from the Appstore. Issue still remains. I tried cleaning derived data, xuserdata and everything.
Try cleaning your project using "Command + K"
and run your project again!
Hope it works!
I encountered the same issue that you are facing in my case i had xCode 10.0 installed and everything was working fine. As soon as I installed version 10.1 I faced the same issue that you're facing but the good thing was i had xCode 10.0 installed at the same time so I switched back and everything was working fine.
From my point of view my system(Mac-mini mid 2011) was lacking hardware specification that was required for xCode 10.1 also had very low graphic processor in my mac mini. If you install the same version in a MacBook or any other system having higher specification you'll face the issue. I hope that helps.
I was stuck on this all day. One of my coworkers suggested removing occurrences of IB_DESIGNABLE & #IBDesignable. This fixed the issue for me. It still lags sometimes but doesn’t go invisible anymore.
If you have multiple xib files then just try to switch between or Try moving to launchScreen storyboard and then switch to main storyboard. I think this is just loading issue.
Reinstall Xcode. That worked for me.
Click on library button(Circular Button) which is left to hamburger sign(Top Bar Right Side). Elements will be popup on your screen then you can choose elements.
try
xcrun simctl erase all
it helped me with the same problem

Xcode 5 IOS simulator black screen and app install fails

I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try to do?
Update--
With some additional research, I found that Iphone Simultor is in the Xcode.app now, but I don't know what to delete. There are many files under the iPhone Simulator Folder. If I delete the actual app, it just doesnt open. Any ideas?? I dont even get an iphone on the screen, just a black window...
Update 2:
Even when I just go to open developer tools -> iphone simulator
it still gives me just a black screen....
Update 3
I just re-installed X-code, and all works now! Strange....I have no idea what happened...But I thought I would let y'all know for others who have similar issues.
Deleting the iOS Simulator folder of the iOS version in question in
/Users/xxx/Library/Application Support/iPhone Simulator
helps, but then you always have to repeat all the settings you made in the simulator (language, for example). Try to press the home button and then delete your app like you do it on a real iOS device. You should then be able to install it again.
This seems to be a known issue.
When simulator open - Go to iOS simulator tab -> reset content and settings..
Work for me.
Perhaps this answer will help?
The simulator should be in this folder:
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app
Make sure any #try and #catch(NSException *exception) {} blocks are not commented or are working properly.
This is a version mismatch between your OS X version and your Xcode (iOS simulator)
and it seems that you have upgraded your OS X so Xcode needs to be upgraded as well, Check the versions that match with each other.
You need to upgrade your Xcode which will upgrade iOS simulator.
Good Luck,

Xcode doesn't recognize IPad after iPad reset

I have been building and running an app on an iPhone and an iPad, both with OS 5.1, on Xcode 4.2.
but today a did a reset on the iPad (by pressing and holding home+lock buttons).
Since then, xcode doesn't recognize the iPad. Organizer says that version of iOS installed on iPad doesn't match with the supported versions of xcode.
if i right click on my iPad (in organizer) and click on "add to provisionling profile", i receive a popup saying request timed out.
I've looked for some solutions on the net, please check the following problems + answers, maybe one of them is your solution too :)
First link, second link, third link (I know, that you have XCode 4.2, but maybe the methodology will be the same). and the last one.
I had the same problem after restoring ipad 1.
my fix :
going to xcode organizer,
make sure the ipad device is disconnected,
delete my ipad in the left column (organizer)
connect my ipad, press "use for development" (and maybe login to itunes connect..)

Resources