为 iOS 模拟器构建但链接为 iOS 构建的对象文件错误

问题描述 投票:0回答:1

我有一台 MacBook Air M1,我克隆了我的项目并尝试运行它,然后得到了这个,我该如何解决这个问题?

显示最近的问题 在 /Users/xxxxxxxx/Desktop/apps/iOS/newC/xxxxxxxx_xxxxxx/xxxx.xxxxxxx.Mobile.iOS/x_xxxxxxxxxx/Bolts.framework/Bolts(BFURL.o) 中,为 iOS 模拟器构建,但在为 iOS 构建的目标文件中链接,文件

'/Users/xxxxxxxx/Desktop/apps/iOS/newC/xxxxxxxx_xxxxxx/xxxx.xxxxxxx.Mobile.iOS/x_xxxxxxxxx_Mcash/Bolts.framework/Bolts' 用于架构arm64

ios xcode ios-frameworks
1个回答
0
投票

我自己解决了这个问题:

post_install do |installer|
      installer.pods_project.build_configurations.each do |config|
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end
  end

基于此页面

© www.soinside.com 2019 - 2024. All rights reserved.