Archive and XCode sign In failure

Hello, i'm Using 7.1 XCode.

I'm able to connect to my dev. account on Apple Developer.

In Xcode, when I try to create an archive :

...

compiling

linking

Build are OK.


When I try to export, Xcode try to fetch list of teams from the developer Portal, and displays hourglass, for 2 minutes or so.

At the end, I have the following message :


Your session has expired. Please log In.

There was an error while interacting with the

Developer Portal (1100, -1001).


In Xcode, When I try to login, using Xcode/PreferencesAccounts

I have the message Your session has expired. Please Log In


and Sign In Again

I try to enter my password, I have the final message

Une erreur de connexion au serveur d'identifiant Apple s'est produite.

(An connexion error occurs while connecting to Apple Id server)

I have the exact same issue, and it is lasting a day and a half already.

I am preparing enterprise ipas, using Yosemite and Xcode 7.1. Fetching team lists always time out. This is blocking our work team.

We've just confirmed this is an XCode 7.1 issue not reproducible in XCode 7.0.

FIXED !

===

me too.

How to fix it ?


=== solution ===

use xcode command line.

Run the script under project dir.

#### Begin ####

#工程绝对路径

#cd $1

project_path=$(pwd)

#build文件夹路径

build_path=${project_path}/build



#工程配置文件路径

project_name=$(ls | grep xcodeproj | awk -F.xcodeproj '{print $1}')

project_infoplist_path=${project_path}/${project_name}/${project_name}-Info.plist

#取版本号

bundleShortVersion=$(/usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" ${project_infoplist_path})

#取build值

bundleVersion=$(/usr/libexec/PlistBuddy -c "print CFBundleVersion" ${project_infoplist_path})

#取bundle Identifier前缀

bundlePrefix=$(/usr/libexec/PlistBuddy -c "print CFBundleIdentifier" `find . -name "*-Info.plist"` | awk -F$ '{print $1}')



cd $project_path

echo clean start ...

#删除bulid目录

if [ -d ${build_path} ];then

rm -rf ${build_path}

echo clean build_path success.

fi

#清理工程

xcodebuild clean || exit

#去掉xcode源码末尾的空格

#find . -name "*.[hm]" | xargs sed -Ee 's/ +$//g' -i ""



#编译工程

xcodebuild -configuration Release -workspace ${project_path}/${project_name}.xcworkspace \

-scheme ${project_name} \

ONLY_ACTIVE_ARCH=NO \

TARGETED_DEVICE_FAMILY=1 \

DEPLOYMENT_LOCATION=YES CONFIGURATION_BUILD_DIR=${project_path}/build/Release-iphoneos || exit





if [ -d ./ipa-build ];then

rm -rf ipa-build

fi

#打包

cd $build_path

mkdir -p ipa-build/Payload

cp -r ./Release-iphoneos/.app ./ipa-build/Payload/

cd ipa-build

zip -r ${project_name}.ipa *



echo ${build_path}/ipa-build/${project_name}.ipa

#找到桌面路径

cd ~/Desktop

#echo Desktop dir

#echo $(pwd)

#拷贝文件

cp -r ${build_path}/ipa-build/${project_name}.ipa $(pwd)

#清空bulid目录

cd ${build_path}/ipa-build

rm -rf Payload

if [ -d ${build_path} ];then

rm -rf ${build_path}

fi

Archive and XCode sign In failure
 
 
Q