迁移到Apple组织帐户后对Flutter应用程序签名时出错

evrscar2  于 2023-05-29  发布在  Flutter
关注(0)|答案(1)|浏览(344)

我们有个Flutter申请

environment:
  sdk: ">=2.8.0 <3.0.0"

最新的Xcode和MacOS,运行在Mac m1 air上,PC上安装的Flutter版本为3.3.9
在迁移到ios组织之前,我们没有遇到任何问题,但在迁移之后,我无法通过flutter build ios --release对应用程序进行签名
错误是

Failed to build iOS app
Error output from Xcode build:
↳
    2023-05-27 03:53:19.246 xcodebuild[32202:165759] DVTCoreDeviceEnabledState:
    DVTCoreDeviceEnabledState_Disabled set via user default
    (DVTEnableCoreDevice=disabled)
    2023-05-27 03:55:32.079 xcodebuild[32202:165808]  DVTAssertions: Warning in
    /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot7/ActiveBuildRoot/Libra
    ry/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21677/DTDe
    viceKitBase/DTDKRemoteDeviceData.m:382
    Details:  (null) deviceType from 00008101-001870180441401E was NULL when
    -platform called.
    Object:   <DTDKMobileDeviceToken: 0x14772e890>
    Method:   -platform
    Thread:   <NSThread: 0x600002691380>{number = 2, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning
    message and any useful information you can provide.
    2023-05-27 03:55:32.208 xcodebuild[32202:168121]  DVTAssertions: Warning in
    /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot7/ActiveBuildRoot/Libra
    ry/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21677/DTDe
    viceKitBase/DTDKRemoteDeviceData.m:382
    Details:  (null) deviceType from 00008101-001870180441401E was NULL when
    -platform called.
    Object:   <DTDKMobileDeviceToken: 0x14772e890>
    Method:   -platform
    Thread:   <NSThread: 0x6000029bec80>{number = 20, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning
    message and any useful information you can provide.
    xcodebuild: error: Scheme Runner is not currently configured for the build
    action.

════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a 
Provisioning Profile. Please ensure that a Development Team is selected by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected under Signing & Capabilities >
  Team.
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again

For more information, please visit:
  https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Encountered error while building for device.

我已经尝试从Flutter缓存中清除旧密钥,我将签名设置添加到podfile。我知道如何发布到ios,我已经发布了大约10个以前的版本。此问题在迁移到Apple组织帐户后开始发生。
证书由apple自动管理。简而言之,在迁移到apple组织帐户后,每当我尝试运行flutter build ios --release时都会出现该错误

83qze16e

83qze16e1#

Reddit用户帮助我fix this issue。我不得不从Xcode中删除该帐户并再次添加它。
在这里留下一个答案,也许它可以帮助最近切换到Apple组织帐户并面临同样问题的用户。

相关问题