【问题标题】:链接框架“Pods_Runner.framework”缺少此目标所需的一个或多个架构:x86_64
【发布时间】:2022-01-23 14:01:04
【问题描述】:

我在通过 M1 Macbook pro 在 IOS 模拟器中构建我的颤振应用程序时遇到以下错误。我正在使用 VS 代码进行编辑。 在我的 iPhone 连接到 Mac 的情况下构建时,我对构建没有任何问题。 知道如何解决这个问题。

Launching lib/main.dart on IPhone 13 Simulator in debug mode...
lib/main.dart:1
Xcode build done.                                            1.5s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[10488]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c42c8). One of the two will be used. Which one is undefined.
    objc[10488]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c4318). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **
Xcode's output:
↳
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/aravindganesh/Documents/Development/myproject/ios/Runner.xcodeproj: error: The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on IPhone 13 Simulator.
Exited (sigterm)

我在下面添加 x-code 配置:

【问题讨论】:

    标签: ios xcode flutter dart visual-studio-code


    【解决方案1】:

    问题与 Xcode 配置有关。转到项目工作区,然后打开 Runner 目标排除架构并添加 arm64 以便您可以在模拟器上运行应用程序。您的问题与此问题密切相关。

    【讨论】:

    • 我做了更改。仍然得到同样的错误。 /Users/aravindganesh/Documents/Development/sydneyiskcon/ios/Runner.xcodeproj:错误:链接框架“Pods_Runner.framework”缺少此目标所需的一个或多个架构:x86_64。 (在项目“Runner”的目标“Runner”中)
    • 您的问题与为您的模拟器运行的架构(排除的架构)以及您包含在架构中的架构密切相关。请检查架构中是否包含 $(ARCHS_STANDART)。默认情况下应该是这样。另外,请对 Xcode 配置中包含的架构(i386、x86_64、armv7、arm64、i386)进行更多研究,这是其中的一些,通常在您排除的那些中,您应该添加任何 iOS 模拟器 SDK arm64 和 i386。希望对您有所帮助。
    • 我在问题中包含了 IOS 构建设置。
    猜你喜欢
    • 1970-01-01
    • 2021-01-17
    • 2022-07-27
    • 2021-03-29
    • 1970-01-01
    • 2016-02-03
    • 1970-01-01
    • 2021-01-07
    • 2015-10-10
    相关资源
    最近更新 更多