Post

Replies

Boosts

Views

Activity

Reply to What's the correct way to add Clip target in an existing old cocoapods project?
In Clip target if we what to use 3rd party, here are 2 steps: step1. Modify Podfile --> usemodularheaders! not use_frameworks! Like this: platform :ios, '10.0' inhibit_all_warnings! use_modular_headers! def commonPods 	pod '3rd name' 	...... end target 'kt_iOS_Clip' do 	inherit! :complete 	use_modular_headers! 	commonPods end target 'kt_iOS' do		 		commonPods 		...... 		if 'modular' are not supported, use 'use_frameworks!' ...... 		use_frameworks! 		pod 'xxxxxx' end step2. Remove all flags from: Clip Target -> Build Settings -> Linking --> Other Linker Flags then add -l"SnapKit-library"
Jul ’20
Reply to What's the correct way to add Clip target in an existing old cocoapods project?
Thank you jords - https://developer.apple.com/forums/profile/jords,unfortunately dosen't work 😂 Here is my podfile: inhibit_all_warnings! target '<Main App>' do 		use_frameworks! 				pod 'Alamofire' , '4.7.3'									 				....... 	target '<Main App>Tests' do 		inherit! :search_paths 	end 	 	swift_41_pod_targets = ['Spring', 'SQLite.swift','FaveButton'] 	 	post_install do | installer | 			 			installer.pods_project.targets.each do |target| 					if target.name == 'Cache' 							target.build_configurations.each do |config| 									level = '-Osize' 									config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = level 									puts "Set #{target.name} #{config.name} to Optimization Level #{level}" 							end 					end 					if swift_41_pod_targets.include?(target.name) 							 							target.build_configurations.each do |config| 									 									config.build_settings['SWIFT_VERSION'] = '4.1' 									 							end 							 					end 					 			end 			 	end 	target '<Main App>UITests' do 		inherit! :search_paths 	end end
Jul ’20