Files
2026-04-10 17:43:27 +08:00

71 lines
2.7 KiB
Ruby

# Uncomment the next line to define a global platform for your project
#source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '14.0'
install! 'cocoapods', :disable_input_output_paths => true
target 'TUIKitDemo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
use_modular_headers!
# Pods for Example
pod 'TUICore','8.6.7019'
pod 'TUIChat', '8.6.7040' # support AI Chat
pod 'TIMCommon', '8.6.7040' # support AI Chat
pod 'TUIConversation', '8.6.7040' # support AI Chat
pod 'TUIContact', '8.6.7040' # support AI Chat
pod 'TUISearch', '8.6.7019'
pod 'TUIPollPlugin', '8.6.7019'
pod 'TUIGroupNotePlugin', '8.6.7019'
pod 'TUITranslationPlugin', '8.6.7019'
pod 'TUIConversationGroupPlugin', '8.6.7019'
pod 'TUIConversationMarkPlugin', '8.6.7019'
pod 'TUIVoiceToTextPlugin', '8.6.7019'
pod 'TUIEmojiPlugin', '8.6.7019'
pod 'TUIMultimediaPlugin','8.6.7019'
pod 'TIMPush', '8.6.7019'
pod 'TUICallKit_Swift'
# pod 'TUIRoomKit/Professional', '3.0.1'
pod 'MJRefresh'
pod 'Masonry'
end
target 'pushservice' do
use_frameworks!
use_modular_headers!
pod 'TIMPush', '8.6.7019'
end
#Pods config
#Fix Xcode14 Bundle target error
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
config.build_settings['ENABLE_BITCODE'] = "NO"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = "14.0"
#Fix Xcode15 other links flag -ld64
xcode_version = `xcrun xcodebuild -version | grep Xcode | cut -d' ' -f2`.to_f
if xcode_version >= 15 && xcode_version < 16
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
if xcconfig.include?("OTHER_LDFLAGS") == false
xcconfig = xcconfig + "\n" + 'OTHER_LDFLAGS = $(inherited) "-ld64"'
else
if xcconfig.include?("OTHER_LDFLAGS = $(inherited)") == false
xcconfig = xcconfig.sub("OTHER_LDFLAGS", "OTHER_LDFLAGS = $(inherited)")
end
if xcconfig.include?("-ld64") == false
xcconfig = xcconfig.sub("OTHER_LDFLAGS = $(inherited)", 'OTHER_LDFLAGS = $(inherited) "-ld64"')
end
end
File.open(xcconfig_path, "w") { |file| file << xcconfig }
end
end
end
end