![](/img/trans.png)
[英]"ignoring file...building for iOS-armv7 but attempting to link with file built for iOS-arm64"
[英]Xcode 12.5, building for iOS-armv7 but attempting to link with file built for iOS-arm64 problem
當我將其更改為 IOS 部署目標 12.0 時問題解決了
我在我的項目中遇到了同樣的錯誤。 我使用Xcode 13.3.1 。 所以我用下一種方式更新了我的Podfile (添加了排除的拱門和部署目標):
$iOSVersion = '13.1'
platform :ios, $iOSVersion
use_frameworks!
def general_pods
pod 'Some_pods_here'
end
target 'Some_target1' do
general_pods
pod 'Some_pod_here'
end
target 'Some_target2' do
general_pods
pod 'some_pod_here'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
config.build_settings["EXCLUDED_ARCHS[sdk=*]"] = "armv7"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end
end
end
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.