Xcode Crashes When Trying To Export To Itunes Connect For Testflight

Discussion in 'How Can I...?' started by Wings n Armor, Oct 26, 2016.

Tags:
  1. Wings n Armor

    Wings n Armor Avid Boxer

    Joined:
    Oct 1, 2015
    Messages:
    280
    Likes Received:
    125
    7.3
    Xcode Crashes When trying to export to Itunes Connect for Testflight
    Xcode does not recognize our development team and when we try to validate or export to appstore it keeps crashing
    I know there is a way to communicate with itunes and xcode to update data
    can anyone elaborate
     
  2. aayushxn

    aayushxn Boxer

    Joined:
    Aug 15, 2016
    Messages:
    72
    Likes Received:
    7
    [​IMG]
    [​IMG]
    This is a peculiarity that can happen with a particular project. To avoid the first message, select the option “Don’t reopen windows”. This will bring up the Xcode welcome screen. The second message (the almighty Crash Reporter) may still come back to haunt you when you open a particular project – and only that project.

    Looks like that project has a problem.

    There is usually a way to fix this by deleting the xcuserdata file from the project. This is one of the most annoying features for version control: this set of files keeps track of which tabs/windows are open, which groups are expanded, which methods are collapsed, and in general how your project looks like when you left it.

    The trouble is of course that this file changes every 0.000001 seconds, so every time you make a git commit it’s almost instantly outdated. The implication is that you can’t switch to or merge a branch. If you go ahead and mess with this file outside of Xcode problems can arise – usually resulting in us developers wanting to take up another hobby or calling our therapist.

    How to fix this
    To fix this problem:

    • open a Finder window and navigate to your project
    • right-click on the .xcodeproj file (it’s a package actually)
    • select Show Package Contents
    • a new window appears
    • delete a folder called xcuserdata
    Now open your project again in Xcode and it should work. Your workspace will be reset, bringing a very small amount of happiness and tranquility back into your life.

    Until this problem happens again.

    How to avoid this in the future
    In an ideal world those xcuserdata files should all be ignored by Git. And in an ideal world we should never need to use external version control tools like the command line or GitHub for Mac.

    Sadly the version control tools in Xcode are far from perfect which means that we have no other choice. You can use your external tool to ignore these files of course, but adding them to a .gitignore is not enough to make them disappear retrospectively or in other branches.

    Here’s how to do that: once added to .gitignore, you must issue the following command:


    Code:
    git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/yourUserName.xcuserdatad/UserInterfaceState.xcuserstate
    git commit -m "Removing file thats driving me insane"
     
  3. Wings n Armor

    Wings n Armor Avid Boxer

    Joined:
    Oct 1, 2015
    Messages:
    280
    Likes Received:
    125
    Thanks I have downloaded Xcode 7.3 at least 10 times. now I am trying to upload apk for testing but will not work after archiving @aayushxn
     
  4. Wings n Armor

    Wings n Armor Avid Boxer

    Joined:
    Oct 1, 2015
    Messages:
    280
    Likes Received:
    125
    I need to get this apk updated fast to send to testers and have been slowed down by technical issues wit XCODE
     
  5. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546

Share This Page