target 'iosApp' do use_frameworks! platform :ios, '16.0' pod 'shared', :path => '../shared' pod 'Masonry', '~> 1.1.0' pod 'JTCalendar', '~> 2.2.6' pod 'YYKit', '~> 1.0.9' pod 'MBProgressHUD', '~> 1.2.0' pod 'Toast' pod 'QMUIKit' pod 'MJRefresh' # for sdk pod 'DateTools' pod 'MJExtension', '~> 3.4.1' pod 'FMDB' # 添加post_install脚本来配置静态库链接 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if target.name == 'iosApp' config.build_settings['OTHER_LDFLAGS'] ||= [] config.build_settings['OTHER_LDFLAGS'] << '-lRingSDK_2.0.2' config.build_settings['LIBRARY_SEARCH_PATHS'] ||= [] config.build_settings['LIBRARY_SEARCH_PATHS'] << '$(PROJECT_DIR)/iosApp/Libs' end end end end end