[해결방법] 플러터 iOS 빌드에러, Your session has expired. Please log in.

Flutter에서 iOS 빌드를 할때 아래와 같은 에러가 발생하는 경우가 있다.

 

Error output from Xcode build:

    2023-03-29 17:52:43.422 xcodebuild[74210:1568477] [MT] IDEFileReferenceDebug: [Load] <IDESwiftPackageCore.IDESwiftPackageSpecialFolderFileReference, 0x6000092e6000: name:Docs.docc path:group:Docs.docc> Failed to load container at path: /Users/hercules/Library/Developer/Xcode/DerivedData/Runner-euogrsxqehguwdcuwnuyypclfmdp/SourcePackages/checkouts/swift-protobuf/Sources/protoc-gen-swift/Docs.docc, Error: Error Domain=com.apple.dt.IDEContainerErrorDomain Code=6 "Cannot open "Docs.docc" as a "Swift Package Folder" because it is already open as a "Folder"." UserInfo={NSLocalizedDescription=Cannot open "Docs.docc" as a "Swift Package Folder" because it is already open as a "Folder".}
    2023-03-29 17:52:46.808 xcodebuild[74210:1568556]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x60001bbefd40; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
    2023-03-29 17:52:46.808 xcodebuild[74210:1568556]  DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
        creationTimestamp = "2023-03-29T08:52:46Z";
        httpCode = 200;
        protocolVersion = QH65B2;
        requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
        responseId = "8bd62948-d46f-4541-b374-9e5b5bf1ccc7";
        resultCode = 1100;
        resultString = "Your session has expired. Please log in.";
        userLocale = "en_US";
        userString = "Your session has expired. Please log in.";
    }, NSLocalizedDescription=Your session has expired. Please log in.}
    ** BUILD FAILED **

 

해당 문제는 XCode의 Accounts 정보가 없어서 발생한것이다.

빨간 네모 위치의 + 버튼을 눌러 Apple ID를 로그인하면 해당 문제가 사라진다.

 


 

728x90