【问题标题】:Android Studio Flutter Unable To Compile To iOSAndroid Studio Flutter 无法编译到 iOS
【发布时间】:2018-10-11 16:24:16
【问题描述】:

我在 Android Studio 中使用 Flutter 制作了一个可以在我的 android 设备上运行的应用,但尝试在 iOS 上这样做只会导致以下错误。从本质上讲,它似乎是在说我没有登录并且我的会话已过期。我进入了 Xcode->Preferences->Accounts,有时它说我的会话已过期,但通常不会。

到目前为止我已经尝试过:

  • 退出 Xcode
  • 关闭和重新打开 Xcode
  • 在终端中杀死 Xcode。
  • 确保我已在线登录以及我能想到的任何其他地方! (iTunes 等)

我上周确实设法在另一台 iOS 设备上安装。

有什么想法吗?

Launching lib/main.dart on Caroline’s iPhone in debug mode...
Signing iOS app for device deployment using developer identity: "iPhone Developer: mike.ashelby@gmail.com (V8CM7C23TN)"
Running Xcode clean...
Starting Xcode build...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
    2018-05-01 12:32:44.639 xcodebuild[42223:480929]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7ffab7f64160; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
    2018-05-01 12:32:44.640 xcodebuild[42223:480929]  DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired.  Please log in." UserInfo={payload=<CFBasicHash 0x7ffab816b030 [0x7fff90e4eaf0]>{type = mutable dict, count = 9,
entries =>
        0 : responseId = <CFString 0x7ffab814f990 [0x7fff90e4eaf0]>{contents = "f45bf0e1-07c9-4a47-8afb-326537af4d8c"}
        2 : <CFString 0x7fff90d71b58 [0x7fff90e4eaf0]>{contents = "protocolVersion"} = QH65B2
        3 : <CFString 0x7ffab811b260 [0x7fff90e4eaf0]>{contents = "requestUrl"} = <CFString 0x7ffab817ff60 [0x7fff90e4eaf0]>{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
        6 : <CFString 0x7ffab81511d0 [0x7fff90e4eaf0]>{contents = "userLocale"} = en_US
        8 : resultCode = <CFNumber 0x44c37 [0x7fff90e4eaf0]>{value = +1100, type = kCFNumberSInt64Type}
        9 : userString = <CFString 0x7ffab814bd30 [0x7fff90e4eaf0]>{contents = "Your session has expired.  Please log in."}
        10 : <CFString 0x7ffab8148890 [0x7fff90e4eaf0]>{contents = "resultString"} = <CFString 0x7ffab7de29d0 [0x7fff90e4eaf0]>{contents = "authentication.failed"}
        11 : httpCode = <CFNumber 0xc837 [0x7fff90e4eaf0]>{value = +200, type = kCFNumberSInt64Type}
        12 : <CFString 0x7ffab8114340 [0x7fff90e4eaf0]>{contents = "creationTimestamp"} = <CFString 0x7ffab81299c0 [0x7fff90e4eaf0]>{contents = "2018-05-01T11:32:42Z"}
}
    , NSLocalizedDescription=Your session has expired.  Please log in.}
    2018-05-01 12:32:47.344 xcodebuild[42223:480931]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7ffab80a0c00; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
    2018-05-01 12:32:47.344 xcodebuild[42223:480931]  DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired.  Please log in." UserInfo={payload=<CFBasicHash 0x7ffab7f889d0 [0x7fff90e4eaf0]>{type = mutable dict, count = 9,
entries =>
        0 : responseId = <CFString 0x7ffab7f6c930 [0x7fff90e4eaf0]>{contents = "09bf6865-a820-442c-879d-f9f1a2e54503"}
        2 : <CFString 0x7fff90d71b58 [0x7fff90e4eaf0]>{contents = "protocolVersion"} = QH65B2
        3 : <CFString 0x7ffab7fbe590 [0x7fff90e4eaf0]>{contents = "requestUrl"} = <CFString 0x7ffab7feead0 [0x7fff90e4eaf0]>{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
        6 : <CFString 0x7ffab7f1c270 [0x7fff90e4eaf0]>{contents = "userLocale"} = en_US
        8 : resultCode = <CFNumber 0x44c37 [0x7fff90e4eaf0]>{value = +1100, type = kCFNumberSInt64Type}
        9 : userString = <CFString 0x7ffab7f22a40 [0x7fff90e4eaf0]>{contents = "Your session has expired.  Please log in."}
        10 : <CFString 0x7ffab7fed460 [0x7fff90e4eaf0]>{contents = "resultString"} = <CFString 0x7ffab7fa5a80 [0x7fff90e4eaf0]>{contents = "authentication.failed"}
        11 : httpCode = <CFNumber 0xc837 [0x7fff90e4eaf0]>{value = +200, type = kCFNumberSInt64Type}
        12 : <CFString 0x7ffab7f7d720 [0x7fff90e4eaf0]>{contents = "creationTimestamp"} = <CFString 0x7ffab7fa07d0 [0x7fff90e4eaf0]>{contents = "2018-05-01T11:32:42Z"}
}
    , NSLocalizedDescription=Your session has expired.  Please log in.}
    2018-05-01 12:32:47.505 xcodebuild[42223:480929]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7ffab7f641e0; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
    2018-05-01 12:32:47.505 xcodebuild[42223:480929]  DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired.  Please log in." UserInfo={payload=<CFBasicHash 0x7ffab8146dc0 [0x7fff90e4eaf0]>{type = mutable dict, count = 9,
entries =>
        0 : responseId = <CFString 0x7ffab81659e0 [0x7fff90e4eaf0]>{contents = "d82179cb-a7da-499a-b09d-cf07ab7e733b"}
        2 : <CFString 0x7fff90d71b58 [0x7fff90e4eaf0]>{contents = "protocolVersion"} = QH65B2
        3 : <CFString 0x7ffab814f2f0 [0x7fff90e4eaf0]>{contents = "requestUrl"} = <CFString 0x7ffab819a950 [0x7fff90e4eaf0]>{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
        6 : <CFString 0x7ffab8117620 [0x7fff90e4eaf0]>{contents = "userLocale"} = en_US
        8 : resultCode = <CFNumber 0x44c37 [0x7fff90e4eaf0]>{value = +1100, type = kCFNumberSInt64Type}
        9 : userString = <CFString 0x7ffab814d150 [0x7fff90e4eaf0]>{contents = "Your session has expired.  Please log in."}
        10 : <CFString 0x7ffab8180bc0 [0x7fff90e4eaf0]>{contents = "resultString"} = <CFString 0x7ffab8136d30 [0x7fff90e4eaf0]>{contents = "authentication.failed"}
        11 : httpCode = <CFNumber 0xc837 [0x7fff90e4eaf0]>{value = +200, type = kCFNumberSInt64Type}
        12 : <CFString 0x7ffab81958e0 [0x7fff90e4eaf0]>{contents = "creationTimestamp"} = <CFString 0x7ffab813e860 [0x7fff90e4eaf0]>{contents = "2018-05-01T11:32:45Z"}
}
    , NSLocalizedDescription=Your session has expired.  Please log in.}
** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    Code Signing Error: The operation couldn’t be completed. Unable to log in with account 'mike.ashelby@gmail.com'. The login details for account 'mike.ashelby@gmail.com' were rejected.
    Code Signing Error: No profiles for 'mikeashelby.kxDeclarations' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'mikeashelby.kxDeclarations'.
    The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'
Could not build the precompiled application for the device.

Error launching application on Caroline’s iPhone.

【问题讨论】:

  • 您是否按照flutter.io/ios-release 上的所有步骤操作。也许你遗漏了一些东西。
  • 我还没有注册。我认为无需注册就可以编写和测试应用程序(并为特权支付 79 英镑!)。正如我所说,我设法让该应用程序在另一台设备上运行;虽然只是在调试模式下,但现在我想到了它,而不是配置文件。这有什么不同吗?
  • 我相信只有你想上传到商店才会收取注册费。您可以免费在个人 iPhone 或 iPad 上运行应用程序。

标签: android ios android-studio flutter


【解决方案1】:

我刚刚遇到这个问题,在这里找到了答案:

Xcode export/upload error: Your session has expired. Please log in

我刚刚更改了开发者帐户的密码,需要再次登录 Xcode > Preferences > Accounts。

【讨论】:

  • 根据我使用 Nativescript 的经验,如果这不起作用,因为 Xcode 继续请求登录,请在联机时登录,然后禁用网络连接并进行本地构建。它应该只是构建
【解决方案2】:

从手机/模拟器中删除已安装的应用并从终端尝试

flutter clean
flutter run

【讨论】:

    【解决方案3】:

    我今天遇到了这个问题,我就是这样解决的:

    1. 运行flutter clean
    2. 重启系统
    3. 重启ios设备

    之后它又开始工作了。

    【讨论】:

      猜你喜欢
      • 2022-11-09
      • 1970-01-01
      • 1970-01-01
      • 2016-02-19
      • 1970-01-01
      • 2021-02-11
      • 2015-11-02
      • 1970-01-01
      • 2021-11-22
      相关资源
      最近更新 更多