https://github.com/CocoaPods/CocoaPods/issues/9275#issuecomment-691032405
Add this code in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
# Add this part ====================================
class Pod::Target::BuildSettings::AggregateTargetSettings
alias_method :ld_runpath_search_paths_original, :ld_runpath_search_paths
def ld_runpath_search_paths
return ld_runpath_search_paths_original unless configuration_name == "Debug"
return (ld_runpath_search_paths_original || []) + (framework_search_paths || [])
end
end
class Pod::Target::BuildSettings::PodTargetSettings
alias_method :ld_runpath_search_paths_original, :ld_runpath_search_paths
def ld_runpath_search_paths
return (ld_runpath_search_paths_original || []) + (framework_search_paths || [])
end
end
# Add this part ===========================
...
platform :ios, '14.1'
# Write CommonPods dependencies here
pod 'ArcGIS-Runtime-SDK-iOS', '100.10'
pod 'Alamofire', '~> 5.2'
...
target 'yourFramework' do
...
end
文档信息
- 本文作者:Yawei Wang
- 本文链接:https://pfcstyle.github.io/2021/05/17/preview-in-framework/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)