XCode: "To download this update...". Is this dialog normal? - xcode

I'm getting a dialog box asking to enter my apple developer id & password in xcode. It just says something like "To download this update enter your information." then i goes away.
Is this normal? Seems to me that this would be the perfect way for a trojan to get my apple id and pwd!

It has just happened to me, too (with the current GM Seed version). I was creating a new project when the pop-up dialog appeared.
To be on the safe side, I changed my password immediately after the incident.
What were YOU doing in Xcode when it happened to you? Are you using Xcode 3.2.2, too?
Anybody else having this issue?
The only explanation I found is here:
http://lists.apple.com/archives/xcode-users/2010/Mar/msg00265.html
Then, under /Developer/..., I found a .docset file with a time stamp corresponding to the point in time (plus a couple of minutes) when I had entered my credentials.
However, when I tried to log out & in again, open Xcode - Preferences - Documentation and initiate another download, Xcode did NOT ask me for my Apple ID/PDW again; instead, it asked me for the admin password as usual (I mean - usual for installations; the dialog box looked a bit different). So I am still wondering ...
Regards,
Karel

Related

How to get around Xcode managed provisioning file expiration every 6 days

First, let me tell you I've browsed sooo many StackOverflow sites to solve this issue. I have found nothing that works/is relevant to Xcode 13.2.
I haven't gotten my Apple Developer account setup yet, (that's a nightmare for corporations.), so I'm trying to get around the 6-day limit for development of an app.
Thanks
After a little bit of messing with settings, I discovered a working solution that is easy to replicate, and doesn't require any excessive work.
#1. Create another Apple ID. This is free. And, unlike other solutions I've looked at, it doesn't require creating a new one each time your other provisioning file runs out. USE THE SAME CREDENTIALS OF YOUR OTHER APPLE ID!!!
#2. Open up your Xcode project. Navigate to the Project properties window.
If you've already logged in to Xcode with an ID, great. If not, do so.
#3.
Click on the 'Team' select button. Click 'Add account' and you'll get the window to add your credentials for your other ID.
Click on the newly added Apple ID.
Now, click on the "i" button next to the 'Xcode Managed Profile.'
You should see:
Just instead of 3 days, it should be 6 days.
#4. Now, you will have to change your bundle Identifier. It does not have to be major, it can simply be the difference between com.myapp.appname and com.myapp.app-name.
Now, whenever you cannot build because your Prov. file expired, switch your Team Id, and change your bundle id to what it was on that account.
Example: MyAppleId 1: B.I. = com.myapp.appname.
When that expires: MyAppleId 2: B.I. = com.myapp.app-name.
Then, repeat. By the time MyAppleID 2 has expired, MyAppleID 1 is ready again.
Cheers!

Why am I getting the error "Command /usr/bin/codesign failed with exit code 1" in Xcode 6 on Yosemite?

I'm using Xcode 6.1, OS X Yosemite preview 8, and I'm getting the following error on code signing my app:
Command /usr/bin/codesign failed with exit code 1
Reading on Google, it seems to be linked to expired certificates/provisioning profiles. I deleted all of my certificates & profiles, created a new development certificate & profile, installed both, restarted my Mac, and I’m still getting the same error.
Can anyone shed some light on how to resolve this problem?
How about this: Try Xcode -> Preferences -> Accounts -> Choose your account, and then View Details -> Refresh (button on bottom left), Refresh again, restart XCode. Sounds like voodoo but it works for me and my team! (Posting it as answer, because it DOES work, at least sometimes and for some people. Possibly related to the weather ;) )
as of Xcode 6.3.2, here's what I did.
from main project view, click on build settings and in the search bar type in certificate, a code signing tab should pop up, I chose "dont sign code". and it worked
So I've managed to fix the issue for my particular case - in the build settings, instead of automatically detecting the certificate & provisioning profile to use, I manually set them - and it works.
In my case I was getting this error while trying to build a project I downloaded from Github for my own personal use. I just went to the build settings and told it not to sign the code.
Another gotcha I noticed is that codesign will fail if run from an ordinary ssh login session. It has to be run on a MacOSX desktop GUI shell window. This catches me every time, so I've added a line to the build script to print a message about running the script on the MacOSX GUI if codesign fails.
Delete previous provisional profile and add new provisional profile.restart the machine if still its giving an error like above. when your machine shut off then automatically your device asking for permission then select Confirm and run your code....its working.
There appears to be a bug in XCode (I'm using 7.1.1) with returning to "Signing: None" after having attempted to sign with an expired identity, resulting in this codesign error even after you've apparently removed the bad signing identity.
The project.pbxproj file retains TargetAttributes for the expired identity, and Debug and Release settings both continue to show the following instead of the original empty values:
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
This persists after cmd+alt+shift+K and closing XCode. I fixed it with a git reset (if I hadn't committed before attempting to sign, I'm not sure how I would have found this).
I had to delete all my developer certificates from Keychain Access first, then use the Preferences -> Accounts -> View Details -> Download All approach to successfully re-sign my code.

Getting NSContactsUsageDescription to work in 10.8.2

I have an app with a crash reporter that autofills in the user email address by getting it from ABAddressBook. I'm trying to get an informative message of intent in the dialog that 10.8 displays asking the user for permission. Following the advice at http://www.red-sweater.com/blog/2672/can-i-get-your-address , I've added the following to the app's Info.plist:
<key>NSContactsUsageDescription</key>
<string>blah blah blah</string>
Unfortunately, this is not working. The dialog still asks, but it does not display my description text. I've tried:
Putting this in the crash reporter framework's Info.plist instead of the app's.
Signing the app with my Developer ID cert.
But, alas, no luck. Anyone gotten this to work that can give me a tip as to what I'm doing wrong?
[UPDATE] I found the real reason why restarting helps. It kills the tccd process, which looks like the culprit in charge of displaying the message on that dialog.
So, just open Activity Monitor and kill the tccd process and your new message should just show up next time the dialog shows.
[Old Answer]
I was running into the same problem and wasn't really sure why (I was doing exactly what the documentation said to do). I finally got it working after:
Deleting the container my app was living in (~/Library/Containers/com.company-name.app-name)
Cleaning the build (In Xcode: Product -> Clean)
Restarting my machine (seems a little cargo-cultish, but I think this is what fixed the problem)
Building and running my app
The next time my app tried to access the Address Book API I was presented with the dialog that included my message.
I think Apple must be caching that message somewhere (either the message you want, or an empty string if you ran your code before you had a message to show), and the only way to clear it out is to restart. I tried the first 2 steps many times with no change in the message, even after I got the message working and then tried to change it.
Solution is to run this command in the Terminal:
tccutil reset AddressBook
Source: https://developer.apple.com/library/archive/qa/qa1906/_index.html

Unable to process application Info.plist validation at this time due to a general / IO error [duplicate]

I am creating a newsstand application. the application is ready, now i am trying to upload the app in apple store using Application Loader. While uploading the zip file its showing the error message as
Unable to process application info.plist validation at this time due to a general error (1095)
I googled this in the net, but did not find the solution still.
This is clearly an Apple server issue, not an Xcode/iOS/OSX issue. Just wait patiently and Apple's servers will catch up to the traffic, or solve whatever issues they're having at their end.
If you're anxious, feel free to just sit there and restart Xcode until it works - but it's not restarting Xcode, only the time you waste that's solving the issue.
While you're waiting, run your apps in Instruments and solve some performance issues ;)
I just had this error. I waited an hour and tried again with the exact same build and it was all good. Vote for it being Apple's temporary glitch.
I had the same problem. I closed Xcode, restart my computer and it worked.
One possible problem to this is corrupted png files. The png files should not be interlaced
I found a solution to the problem.
If you're using Xcode 4+, you don't have to use Application Loader anymore. Instead you should archive your project in Xcode (Product->Archive). It will then open the organizer, where 3 buttons are displayed. Hit the submit button.
If you've created an entry for your app with Itunes Connect, you should be able to choose that from the list, and then select your distribution profile. Then hit the next button, and you should get a message, that tells you, that your app has been submitted.
At least that worked for me.
Use Application Loader.
I'm getting this a lot today.
Application Loader worked.
XCode > Project > Archive
XCode > Organizer > Distribute > Enterprise/add Hoc > Save As
Saves as YOURAPP.ipa.
Make sure Save for Enterprise Deploy remains UNCHECKED.
Download latest Application Loader.
tap 'Deliver Your App'
make sure new version in itunes connect in WAITING FOR UPLOAD state
Click on Activity... button
TIP: open Console.app to see XCode Validation errors
Click on ALL MESSAGE on list of logs on right.
Then in search enter 'XCode' or 'Application Loader'
to monitor any errors with your upload.
Note:
I did all this and still got email about missing 120x120 icons.
Forgot to update them in Build Target > General Tab
List of new icon requirements for iOS7
http://www.icenium.com/resources/forums/icenium-general-discussion/missing-recommended-icon-file
Another reason why this can happen is the duplicate product name. Despite your app names, executable names, display names or bundle IDs are different, if the product name exists in your current apps this error is gonna occur.
"The server returned an invalid response. This may indicate that a network proxy is interfering with communication, or that Apple servers are having issues. Please try your request again later.""
Reset The internet connection.
Reopen the xcode.
Set the profile again.
Clean build.
And Archive the build.
Works perfect for me (With in 5 minutes no need to wait).
Thanks
It's just the time, because you can't control Apple's Server's traffic problem, We all merely become the victim of that..So cut the long story short...
By restarting XCODE may work but everyone as in my case, i tried by restarting XCODE, SYSTEM, ROUTER and anything and everything possible, only error name had changed from "The network connection was lost" to "The request timed out" and vice Versa..!
Just think at what time less people would be accessing the sever...
PS: Only perseverance can help you in this way..keep redialing..And WAIT and WATCH:P
I solved ... :)
Please remove all your icons and splash image also remove icon Files and icons File( IOS 5 ) from info.plist and then add all your icons to app bundle ...
After this update info.plist iconFiles field add desired name of icons....
And last but not least remove Provisioning profile from developer portal and recreate it ...
Clean your build and Archive it and using Application Loader submit it to AppStore ...
it work for me and i think it may help you...
Not every time not it is Apple server issue,sometime we did some bad linking according to me :)

XCode's Documentation Complains "File Not Found" but Gives Correct Results

When I'm searching for something in the Developer Documentation of Xcode, I constantly get "File not Found"/"The requested file was not found in any documentation set."
The odd thing is, it still works. E.g., if I search for NSSound, I can find NSSound.
The error dialogue is invoked whenever it attempts to search as I type, which makes it particularly annoying.
This only happens when I select certain documentation sets (e.g., "iPhone OS 3.1 Library"). I tried deleting it & re-installing, but the same result. (Perhaps I didn't remove everything?)
I put up a post to fix this over here:
http://allens-techlog.blogspot.com/2009/11/fixing-xcode-requested-file-was-not.html
Another fix is to change your searching from "All Doc Sets" to "Apple iPhone OS 3.1". Once you've done that, select the "Apple iPhone OS 3.0" docset. Although it's old you won't get the error and in a month or two you can change it back.
This error is occurring again with Xcode 5+ and Mavericks doc sets. For example:
The requested file cannot be found:
/var/folders/l5/g1r3n28s1v38t5ntjqb_1dq80000gn/T/xcdocui.css.
When it appears try in this order:
Restart Xcode
Log out / log in
Restart
If you don't want to log out or restart, you can delete the temporary parent folder of the CSS file that cannot be found (T stands for 'temporary'), then quit and restart Xcode. But note this will also delete temporary files other running apps might be using, so you might get similar "file cannot be found" messages from other apps, until they are also restarted. Also see this Apple Mailing List post.
I get this problem even in Mavericks and Xcode5, almost 5 years later!
Here's maybe a less scary method than just deleting the rather populated "T" directory:
get out of Xcode. Try not to do anything else either, (who knows what else writes in T?),
but quit Xcode at least.
navigate to the /var/folders/...whatever.../T/.. directory (parent of T)
hide it temporarily with
mv T xT
start up Xcode
look at some doc just to be sure
quit Xcode
look at that same dir; a new T will be there with xcdocui.css in it
cp T/xcdocui.css xT/xcdocui.css
swap it back quickly with rm -rf T ; mv xT T
restart Xcode and see if it works.
"It works for me"
This .css file is kind of small and boring to be causing such a fuss!
That was your early Thanksgiving treat from Apple. They sent a docset 3.1 "update" out about 4-5 days ago and F'ed up alot of peoples documentation. It's basically unusable for me right now...I can't do anything without having do dismiss a never-ending barage of "page not found" error dialogs. It also trashed 50% of the favorites links I had on the left panel of documents. I assume these were from the docsets it now want's me to re-subscribe to but gives an error every time I try.
Haven't seen alot of posts about it yet so I would bet that Apple will likely do nothing. If it were possible to get a human on the phone over there I would have some answers to go along with the frustration.
Happy Thanksgiving
PS. Best to turn OFF the auto-update option in documentation. If not for having that option ON I'd currently be oblivious to this issue and capable of viewing my documentation.
I am getting this as well. I am guessing it is not affecting very many people though, since searching "the requested file was not found in any documentation set" in google is still only turning up four hits. And it is affecting my desktop but not my laptop.
Have either of you tried reinstalling Xcode?

Resources