xcode fetching list of team time out, member center dead - ios

Any ideas? It was working an hour ago, now everything is dead and the status page says all is good

try disconnecting any devices you have connected.
I just tried everything SO suggested, reboots, wifi restart, iphone hotspot, nothing helped, so I unplugged my device and suddenly xcode connected and teams were fetched.

Just to say, I've had this issue a few times in the past week.
I'm using Xcode 6.4 with OS X Yosemite (v10.10.2), and from time to time, it just hangs on the "Fetching list of teams" message.
Most of the time, it works fine, but then it'll start to time-out, or throw an error like this:
The solution: reboot my MacBook. It fixes the issue every time.
It's odd. All other applications can happily access the internet, but for just this one part of Xcode, it seems unable to fetch the data it needs, and only a reboot sorts it out. I didn't have this issue before.
And it's hard to identify if this is an issue with Xcode 6.4 or OS X Yosemite, and Xcode demanded that I upgrade to the latest OS before it'd let me update to 6.4 (so I could actually debug an issue with iOS 8.2) so both updates happened on the same 1-2 days.
Bug ? Bug ? Did I say "bug" ? Course not. It's an undocumented feature.
(Sigh.)
Five hours later
I've just had the same issue again...
However, this time, I turned off WiFi on my MacBook, then turned Wifi back on again.
And the problem went away.
It (almost instantly) managed to load the list of (two) teams that I belong to.
Hope this helps.

I know that is late for answer but maybe my solution could help others.
IT ALWAYS WORKS FOR ME:
Step 1:
Go to Xcode --> preferences --> accounts
Step 2:
Select your team name and click in view details
Step 3:
Click in
Final step:
Go to Window --> Organizer and try to upload again your app :D

i resolved this by deleting my accounts and setting them up again. none of the solutions above worked.

This worked for me by disconnecting from my WiFi then reconnecting.

Quit xcode and simulator. Open organizer and click on Upload again. This worked for me.
I tried adding the account again and also reconnected the wifi but it did not work for me but quitting xcode did.

Actually I think it is an issue at Apples server.
I just got through once 30 minutes ago but had set the wrong build version and now I get the same error again. I think we have to wait.

i had same issue when i had changed my account's password.
first time, i just authorized it through new passoword. (it's not working)
and then.
remove all appstore accounts on xcode
add same account with new password.
it work.

Just keep retrying, I suspect the issue is on apple's server side and retry attempts will eventually get through.
You should get the list back within a second or two, so you can cancel the attempt and retry quickly rather than wait for the timeout.
Restarting wifi seems to help some people but not others.
Check your internet connection.
Upgrade XCode, 7.2 fixed this for me.

I noticed that I had some connection problems.
The ethernet cable was not fully plugged in.
On wifi, make sure you have a good signal.

I had same issue, and I resolved it.
I got hint from #jab11
I have external storage for TimeMachine. Around a week ago TimeMachine start to fail backup my disk.
I plugged out external storage not properly When it happens.
So, try like below.
Plug in your external storage if you have one.
Check your partition's health. (In my case, I erased partition which is causing fail to backup)
open Xcode Organiser, then upload your binary.
I hope this help.

For me, I removed all accounts in XCode -> Preference -> Accounts and ADD account again, then it's working well.

Related

Fixing Xcode 9 issue: "iPhone is busy: Preparing debugger support for iPhone"

I'm looking for more information on the message below. Xcode 9 seems to be hanging for a couple minutes already...
How can I tell Xcode 9 to quickly recognize my previously used device updated to iOS 11?
.Alex’s iPhone is busy: Preparing debugger support for .Alex’s iPhone
Xcode will continue when .Alex’s iPhone is finished.
There are multiple solutions for this:
Solution 1: Patiently wait for 10 to 15 minutes. Have a tea or roam around ;-)
Solution 2: Disconnect device from the system. Restart both iPhone and Xcode and then rebuild again.
Solution 3:
Go to Windows → Devices and Simulators (Shortcut key: cmd+shift+2)
You’ll see iPhone device connected to system with message
iPhone is busy: Preparing debugger support for iPhone
Click on plus button (+) present in bottom-left corner.
This will show the device connected to system. Click on Next button.
Thereafter you’ll see ‘device setup was successful’. Click on Done button.
Solution 3 worked for me!
Solution 4:
Unpair your device and then pair it again. Thereafter follow Step 3.
I clicked ‘Cancel Running’, opened the Devices list, unpaired my iPhone, removed my USB cable and reconnected it, paired the iPhone, and then was asked on my iPhone to enter my passcode ("pin code"). Did this and then was finally able to pair my phone correctly.
Wait a few minutes. The application will start automatically
Restarting Xcode worked for me (quit and start again).
What didn't work for me:
waiting for an hour on one device
waiting for an hour on another device
restarting devices
unpairing/pairing devices
It turns out XCode opens device manager window beneath it and waits for you to hit the next button. Switch to that window, hit next and you get the progress bar for the process to show up.
In my case, iTunes was open, so
1 - open iTunes
2 - access you phone
3 - click to disconnect your phone
Now the device is ready on XCode
Hope it helps....
below solution worked for me, follow steps to resolve your issue:
Step 1: Cancel Running
Step 2 : open Window menu and select Devices and Simulators
Step 3 : Unpair the iPhone
Step 4 : Removed iPhone USB cable and reconnect to the system
Step 5 : Pair the iPhone when you connect then you will be asked to Trust or Don't Allow, Please click Truct on your iPhone and enter your passcode (Pin Code)
Note : I performed all the above steps they worked for me. The issue of my device debugger gone.
Below is the Screenshot of Devices and Simulators Menu
I unplugged my cable and saw this. After it reached the end I was able to run it no problems.
You don't have to unplug to see this; just hit cancel and you will see its progress.
On your iPhone:
Settings > Developer > Clear Trusted Computers
Wait a few seconds, it's all.
Click on Window menu
Select Device and Simulators
Select your device
Click on + button at bottom left corner
Click Next
Click Done
I found deleting the app from the device and re-installing with Xcode solved this issue.
I have been using my iPhone X to debug via Network and suddenly had this problem.
Disable "Connect via network" and try again with USB.
This trick worked for me.
I realised I had less than 100 MBs of free space on my disc. Freeing up disk space solved the issue for me!
Simple solution:
Open Window -> Devices and Simulators
Unpair iPhone on the side list
Unplug and plug again the USB cable
Press Trust in the prompt message in the device!
Then it should work! It worked for me
I had the same problem many times, these things worked for me:
restarting my phone + xCode.
checking that both your Mac and your iPhone are connected to the same Network.( has a high potential ).
repairing my phone.
When you plug a New device which is having iOS 11, Xcode 9 will Prepare Debugger Support for that device, At this time you should Wait to complete it.
Then run the project in that device it will run smoothly.
If you didn't keep patience while creating Debugger Support then it will throw the error mentioned in the question.
My setup
macOS 10.14.6
iOS 13.2.3
Xcode 11.2
Tried all the "speedrun" tips up till 2019-11-24 without luck.
The wait seemed inevitable but incredibly long in my case:
with a freshly upgraded iOS version.
I then found this comment on reddit which makes the most sense:
This is required when you connect a device with an iOS version that
the respective computer's Xcode didn't see before. It saves them in
/Users/username/Library/Developer/Xcode/iOS DeviceSupport and it does
take a while. Don't restart Xcode as it will not help you, just wait
for it to finish.
It takes quite some time because these debugger
support files occupy a lot of space (29 GB for me), though you can
safely delete any version from there, and if you connect a device with
that version again, it will re-save it from scratch.
So if you just upgraded your iOS, then the "from scratch" part could take longer than usual, also depending on your network condition. In my case, it is definitely much much longer than the "10-15min" other people claimed. I measure it by hours.
A lot of tricks seem to have worked but they neglect the fact that time goes on as you try things while Xcode keeps working on the setup in the background, and quite possibly resumes its job whenever you do a restart/reboot cycle.
This led me to noticing that my Xcode version is just one step behind the iOS point release. After upgrading my Xcode, it worked.
But it took longer because I removed the iOS DeviceSupport folder by following a tip!
So here are my suggestions:
Check your Xcode version down to the minor version to make sure it should actually support the iOS version.
Check your Mac's free disk space to make room for newly generated device support content under ~/Library/Developer/Xcode/iOS DeviceSupport as this tip suggested.
Check if you have connected your device to a fast-enough USB port, as this tip suggests.
Wait till Xcode finishes "preparing for debugging".
If it doesn't finish in a few seconds or minutes, keep waiting.
DO NOT remove any folder as some tips may suggest. Removal would simply make you wait longer!
The Best way:
Disconnect the Iphone.
Clean xcode by command+ shift + k or by going to Product -> Clean
Connect again
Run again
rebooted iPhone, closed all other open applications and unlocked phone worked
Clean : Shift-Command-K is what works for me.
For me it Worked after following the below steps
Step-1 Go to Devices and Simulator
Step-2 Deselect Show as run destination and Connect via network Options
Wait for Few seconds to Load the Xcode, If you want you can restart Xcode also.
Step-3 Follow the same steps and got to Devices and Simulators
Tick back both the options and it will be normal to install your app back.
Do this Two Task to solve your problem:
First Go to Xcode then -> Preferences -> Accounts then below click the plus icon to add apple id it must me same as your iphone device apple id.
Second Just change the cable if first solution can not work
I updated to iOS 11.0.3 then the error appeared. After restarting my iPhone and XCode, it showed "Could not launch the app", so I navigated to the phone's device management to trust, then it solved.
I had this problem because I hadn't given iTunes permissions to run on the computer. (I don't use iTunes for music, so I had foolishly just hit "decline" in annoyance whenever the EULA dialog box came up.)
Unpaired my iPhone
Removed my USB cable and reconnected it (Do make sure that you unplugged the USB and plugged it back in)
Paired the iPhone.
(3 important steps)
Xcode 10.3 Solution
The following error messages apply:
iPhone is busy: Preparing debugger support for iPhone
Xcode will continue when iPhone is finished.
An error was encountered while attempting to communicate with this device. (The service is invalid.)
Please try rebooting and reconnecting the device. (0xE8000022).
Follow the steps in Jayprakash Dubey's post above
and
Close Xcode;
Delete contents of DerivedData folder ~/Library/Developer/Xcode/DerivedData
Restart Xcode & iPhone
Pair Xcode & iPhone again
& run application
Today, I have faced the issue and tried out everything mentioned here and different pages as well. Nothing worked for me.
Lastly, I have reset the iPhone, then tried building the application and finally it worked for me.
I updated my iPhone to the latest version 11.0.3, then restarted my iPhone. Restarted my XCode 9. Then it worked.
For those looking for solution with Apple TV, I just experience the exact problem "Apple TV is busy: Preparing debugger support for Apple TV” with Apple TV 4K with my Macbook Air (Early 2015)
The solution is not to unpair or restart devices. But to switch network. I brought it to a faster and more open network and it works perfectly.
TL;DR: Settings > General > Profile & Device Management > (Under DEVELOPER APP category) click my email address that happens to be my Apple ID > Trust Developer
This might not be relevant to anyone else, as I am new to iOS development and this was my first attempt to install an application on my phone, but I'll provide the answer as it wasn't yet listed.
I went through restarting my phone, restarting Xcode, unplugging and plugging back in, clean building, and even removed the device from the Devices and Simulators menu. However, I believe the cause for me was that I hadn't added my developer certificate to the listed of trusted certificates on my device.
I am on iOS 10.3.3 so the navigation and wording in Settings on the phone might be slightly different, but the final step I took before this issue was fixed was to trust my developer certificate as an individual developer on my phone.
To do that, go Settings > General > Profile & Device Management > (Under DEVELOPER APP category) click my email address that happens to be my Apple ID > Trust Developer
Whether or not that was the cause of my problem, I am unsure. This was, however, the last step that I took before the app ran on my phone successfully after doing all of the other steps listed above.

How to avoid warning : Preparing debugger support of iPAD

I am using Xcode 9 beta and running on iPAD OS version 10.3.2. But while running Xcode is warning as in attached screenshot. It is loading and loading....
Same here.. Wait for 20 to 30 minutes and will work !!
restarting the iphone helped me in this case. Now building/running app is normal.
I waited 5 minutes and it worked! So, just be patient! :)
Tried hard-clean build (command+shift+K) and clean build folder (command+shift+opt+K), then detach and reattach the device worked for me. Not sure why, though.
In my case this happens after installing a new version of iOS, at least with betas from 11. I just wait a few minutes, as I did previously with the "Processing symbols" status whenever I attached the iPhone after an update.
in my case, for :
Preparing debugger support..
i just relaunched Xcode and reattached my device..then i got :
Amin is busy .......
and I restarted my IOS and it ask me for verification and done.
hope help you.
I waited for at least 1 hour but nothing happened. Then I restarted my device and again nothing changed. Finally! I restarted my machine and then it took only 5 minutes to get prepared for debugger. And then I was able to test the apps again on real device.
It can just be that iTunes in the background wants to connect to your device.
Close all open background apps. I did it worked for me
I think XCode is downloading the DeviceSupport folder for this particular iPhone/OS combination
Sometimes it got messed up. Normally it takes 2-15m. But it may stuck on without showing loader.
You can clear Trusted computers and reconnect the device.
Settings -> Developer -> Clear Trusted Computers
This process may speed this process.

App installation failed: Could not write to the device

In Xcode 6.3, I got this error when trying to run an iOS project written in Swift on a real device.
App installation failed
could not write to the device.
I tried to clean the project and run again, but the same error occurs.
How can I fix this error?
Deleting the app on the device and running the project again works for me.
I did a Clean and installed my app successfully.
Product->Clean(Shift-Cmd-K)
I turned off the device and turned it on again after which I did not get such error.
OK, few things you should consider that could guide us to the problem, please check and post the answers:
is your project using capabilities? are they set correctly (should be all green)
did you try with a different project (something really simple)?
are you able to install apps from the App Store?
did you check the amount of free space left in the device?
if not, another suggestion will be using exception breakpoint, there is someone that posted an explanation how to setup it, do it and post the logs
App installation failed
I hope it helps you
Got this problem twice in one week on complete different devices.
One device had no more storage left, after deleting some apps the project installed perfectly.
The other device was fixed after rebooting the device
If you are using a free developer account you may need to uninstall some other apps you have signed.
For me it was the provisioning profile - I used distribution instead of development
My issue was an embedded framework.
Go to "Build Phases" -> "Embed Frameworks" -> Check "Copy only when installing", and it got rid of the issue for me.
For me the following did not work on iOS 11 beta 10, XCode 9 beta 6:
Restart the device
Deleting the app from the device
No symlinks were in the project
There was plenty of storage available
Deleted Derived Data and voilá, it worked again
in my project this problem happened because there was a folder with symbolic link. I removed that folder and it worked properly.
This error has many potential root causes, as can be seen by the large variety of suggested answers. The best approach to troubleshooting app installation issues like this one is usually to inspect the console of the iOS device itself, as that'll often provide much more specific error messages. In Xcode open the 'Devices and Simulators' window and take a peek at the logs of the device where your app is being installed.
In my case, the "Could not write to the device" error was being caused by this:
Feb 27 10:54:58 iPhone-7-110 installd(MobileSystemServices)[46] : 0x16f92f000 -[MIBundle _validateWithError:]: 38: Failed to load Info.plist from bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ebmR6U/extracted/SampleApp.app/Frameworks/SomeFramework.framework
Which clearly hints at what's actually going on. I had forgotten to set an Info.plist file for my dynamic framework target (used by the app).
I had a symlink in my project to a file outside of the project. When I deleted this symlink the install worked fine.
I was having the same error, i just deleted the project and fixed!
Go to Window -> Project and right click, and remove from projects!
In the case of your device have an app with the same bundle identifier, Xcode will throw this error.
Try to delete potential app with the same bundle identifier.
Check your provision profile, maybe you are using the app store provision profile like me. I had to change the app store provision profile to development, now it's working.
Tried all of the above answers: Deleting the app, clearing storage space, cleaning the project...
What finally worked was bumping the build number in info.plist (General > Build)
For anyone still facing this Issue:
There are so many reasons and this is one of them as it happened to me.
I've faced the same problem and I was connected wirelessly and If you are trying to install the application in wireless connecting mode (connected through same network), this might probably because of poor internet connection. Check your internet connection and try again, it works fine...
Get rid of embedded libraries, dont' just throw it in there make sure it is embedded indeed.
If you use your iPhone for debug, maybe, because your iPhone's storage space is less than your debug App.
Clean your iPhone --- Real machine
Clean your Mac --- Simulator
This looks like another time waster courtesy of Apple's amazingly high class development team. On iOS11 Xcode9 (pick your beta, any one works) this will happen randomly. Appears to be more frequent if you dare to switch apps while compiling. Just build again and stare at xcode - it'll work the second time without fail in my experience.
Apparently this message can also appear if the system clock of device where the app is being installed is too far away from the current time.
I was doing some tests with date formatters by changing my iPhone's system clock and eventually forgot to reset it to the current time. Afterwards it always displayed the same message ("could not write to the device.") whenever I attempted to run the app. Simply resetting the clock in Settings fixed the issue.
Nothing helped me. I followed the below steps,
Clean derived data folder
Quit Xcode and disconnect device
Restart Macbook
Restart Device
Open Xcode
Clean and run the project
Finally I got it working!!
I am facing same issue then solved out follow this step and now its working.
Deleting the app from the device
Try to install another application
Remove derived data in X-code.
Restart X-Code then clean and build the project then run.
It's still not working then
Remove un-used application
Restart the device and check the Available and capacity in settings
Again app run in device
I hope its worked, enjoy it.
My problem was I had initially installed the app using a different set of developer credentials on the device. Deleting the app from the device fixed it.
Maybe it can be due to the following error App installation failed. No code signature found. In my case after a project clean the description of the error switched to "No code signature found".
In my case I created two frameworks but they had the same bundle identifier.
This caused the installation to fail, so double check the frameworks bundle identifiers and make sure that each of them have a unique bundle identifier.
Environment: Xcode 10
sometime this error occurs due to wrong certificate.Please make sure your certificate.
Also this the error shown if your machine running Xcode is low on space.
Once I had to load an App Container for debugging purposes into an iPad, said operation failed because the container was too big (18 GB) for this device (16 GB minus the OS), so that I desisted the task and completly forgot about it, leaving the failed installation in the device. Later, when trying to install a different application this error appeared, once I got rid of the failed app installation, everything got back to normal.
Basically, your Ipad might be low in storage.
One reason this can happen is if your app bundle contains broken symlinks.

fetching list of teams from developer portal - time out

Trying to export an archive for Ad Hoc distribution but getting stuck with "fetching list of teams from developer portal" that times out in a minute or so and that is it.
Cannot export.
Anybody experienced that?
I've been experiencing this a lot with Xcode 6.4, and OS X Yosemite.
All other applications on my MacBook can happily use the WiFi, but this particular Xcode screen often hangs on the "Fetching list of teams" dialog, before timing out.
My solution: turn WiFi off on your MacBook, then turn it back on again.
Fetching list of teams issue
Suddenly, Xcode bursts into life again, and is able to get the list of teams.
(Sigh.)
Update
Btw, if this doesn't work, reboot your MacBook. That also fixes the problem.
I get this all the time, never saw it before and it started happening about a week ago and now it happens frequently. It looks like something on apple's server causing the problem. Attempts will go through eventually if you keep retrying. Some of the suggestions people are posting aren't actually fixing the issue, they are just doing something random and then retrying again later and it's just luck that it worked.
You can cancel the attempt quickly as when it works it will go through in a second or two, so you don't need to wait for the timeout to try again, just cancel it and retry.
Restarting wifi might help if you are having network problems and seems to fix the issue temporarily for some people.
Hope this helps and Apple fixes it soon.
I think iTunes Connect is having a few issues today. I've had numerous upload issues.
I know this might sound weird, but deleting and creating the archive worked for me. Hope it helps someone.
It was happening for me all the day. Not 100% sure why but I removed all of apple ids associated with apple developer portal in Xcode/Preference and added again only the one I need to use to upload the app. Solved the problem.
I believe some apple ids cause problems sometimes.
Hope it helps.
I ran into this issue today on Xcode 7.1. None of the above worked for me at all. Solved the problem by updating to Xcode 7.1.1.
I had this issue right after I added an account to my Xcode preferences, I don't know if there's a limit on how many one can have (I had eight at that point), but once I deleted the recently added account, it worked straight away.
I've had this issue before, and sometimes waiting or restarting xcode fixes it, but not always, in which case you can do everything from the command line.
First, create an xcarchive
xcodebuild archive -project PROJECTNAME.xcodeproj -scheme SCHEMENAME -archivePath PROJECTNAME.xcarchive
Then, export the xcarchive. You'll need to know the name of your provisioning profile (not the filename), which you can find in the Apple Development Portal.
xcodebuild -exportArchive -archivePath PROJECTNAME.xcarchive -exportPath PROJECTNAME -exportFormat ipa -exportProvisioningProfile “PROVISIONINGPROFILENAME”
If you need additional configuration for archiving, you can read the man page for xcodebuild
Answering my our question because I found solution that works for me (same as Accepted Answer by CodeSmith):
I am still getting this problem 50% of the times, but lately I found sort of a solution:
I noticed that when fetching stays longer than ~5 sec it never finds my profile and it always returns time out, so I just cancel it if it is longer than 5sec and start export over. Sometimes it takes 3-5 restarts, but eventually it goes through fetching very quickly ~1-2sec and shows my profile.
SO, DO NOT WAIT FOR IT! IT WILL TIME OUT, JUST START OVER.
No need to restart XCode or Mac, just cancel export and start it over.
Hope it helps somebody
Simply restarting Mac immediately helped me

The network connection was lost. Xcode 5 Yosemite

Whenever I try to submit my update to the iOS app store I get an error stating
The network connection was lost.
I tried to submit from the Xcode 6 Beta but I get an error that basically says I cannot submit from Xcode 6 yet.
Does anyone know how I can fix the The network connection was lost.?
I've restarted the iOS device and my MacBook.
Yosemite right now has some bugs that we must report to Apple in order to get solved. For example I cannot drag and drop any element to .h or .m files anymore, it will crash if I do so. I would suggest you to open the console from your 'Other' folder, and try to locate where the problem is happening. Then you will get a better chance of solving it.
I have also problems connecting my WiFi network at home. My work around is to use my phone and USB-cable to connect to the internet. Not nice to have but it works here. I have to mention that I use an old MacBook Pro.

Resources