web-dev-qa-db-ja.com

XcodeはiOS 13.3.1デバイスのフラッターコードのビルドに失敗しますが、13.3 iOSシミュレーターでコードを実行します

以下は、Xcode 11.3.1とiOS 13.3.1で取得しているものです。何をすればよいでしょうか?コードはiOSシミュレータで動作し、そのためのビルドは常に成功します。それで問題はどこにありますか?ここで何が問題になっていますか、またはここで何か不足していますか?ポッドをクリア/インストールする方法を試しましたが、何もうまくいきませんでした。

iMac:x me$ flutter build  ios
The plugin `device_id` is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have undefined
behaviors when Flutter is integrated into an existing app as a module.
The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/Android-plugin-migration.
Building com.x.demo for device (ios-release)...

Automatically signing iOS for device deployment using specified development team in Xcode project: MHUCCU5SX2

Running pod install...                                              5.9s
Running Xcode build...                                                  

 ├─Building Dart code...                                    61.5s
 ├─Generating dSYM file...                                   1.0s
 ├─Stripping debug symbols...                                0.9s
 ├─Assembling Flutter resources...                           1.9s
 └─Compiling, linking and signing...                        20.5s
Xcode build done.                                           239.8s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    The plugin `device_id` is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have
    undefined behaviors when Flutter is integrated into an existing app as a module.
    The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/Android-plugin-migration.
    Building AOT snapshot in release mode (ios-release)...          
    Building App.framework for arm64...

    Building App.framework for armv7...
    Building AOT snapshot in release mode (ios-release)...             60.1s
    Built to build/aot/.
    warning: parsing line table prologue at offset 0x6f697463 found unsupported version 0x00
    warning: line table parameters mismatch. Cannot emit.
    note: while processing /Users/me/AndroidStudioProjects/x/build/aot/armv7/snapshot_Assembly.o
    The plugin `device_id` is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have
    undefined behaviors when Flutter is integrated into an existing app as a module.
    The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/Android-plugin-migration.
    Project /Users/me/AndroidStudioProjects/x built and packaged successfully.
    ld: warning: ignoring file /Users/me/AndroidStudioProjects/x/ios/Flutter/App.framework/App, building for iOS-armv7 but
    attempting to link with file built for iOS Simulator-x86_64
    ld: warning: ignoring file /Users/me/AndroidStudioProjects/x/ios/Flutter/App.framework/App, building for iOS-arm64 but
    attempting to link with file built for iOS Simulator-x86_64
    error: the following command failed with exit code 0 but produced no further output
    Ld
    /Users/me/Library/Developer/Xcode/DerivedData/Runner-axlithrrzxajtgfxqkefalkhujgj/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/Objec
    ts-normal/arm64/Binary/Runner normal arm64
    /* com.Apple.actool.document.warnings */
    /Users/me/AndroidStudioProjects/x/ios/Runner/Assets.xcassets:./AppIcon.appiconset/(null)[2d][[email protected]]: warning:
    The app icon set "AppIcon" has 6 unassigned children.
    /Users/me/AndroidStudioProjects/x/ios/Runner/Assets.xcassets:./AppIcon.appiconset/(null)[2d][[email protected]]: warning:
    The app icon set "AppIcon" has 6 unassigned children.
    /* com.Apple.actool.compilation-results */
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon29x29.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/[email protected]
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon20x20~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon20x20@2x~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon29x29@2x~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon40x40@2x~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon76x76@2x~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png
    /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/Assets.car
    /Users/me/Library/Developer/Xcode/DerivedData/Runner-axlithrrzxajtgfxqkefalkhujgj/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/asset
    catalog_generated_info.plist

    Non-fat binary /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App is not
    armv7. Running lipo -info:
    Non-fat file: /Users/me/AndroidStudioProjects/x/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App is
    architecture: x86_64
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning build
    note: Constructing build description
2
princeoo7

私にとっての解決策は、レガシーモードのbuild fromNew Build`に移行することで、すべてが適切に機能しました。

0
princeoo7

この問題はiOS 13.4ベータ3(17E5241d)リリースで修正されることが確認されています。

0
ThusharaJ